Skip to content

Commit

Permalink
suppressed Clang Tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Sep 8, 2024
1 parent f869cbd commit 78c923a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ namespace

public:
/*! The attributes that should be mutated to dates. */
inline static QStringList u_dates {AddedOn}; // clazy:exclude=non-pod-global-static
inline static QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init) clazy:exclude=non-pod-global-static
};
} // namespace

Expand Down
4 changes: 2 additions & 2 deletions tests/models/models/role.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class Role final : public Model<Role, User, RoleUser, RoleUser_Appends, Pivot> /
bool u_timestamps = false;

/*! The storage format of the model's date columns. */
inline static QString u_dateFormat {UnixTimestamp};
inline static QString u_dateFormat {UnixTimestamp}; // NOLINT(cppcoreguidelines-interfaces-global-init)

/*! The attributes that should be mutated to dates. */
inline static const QStringList u_dates {AddedOn};
inline static const QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init)
};

} // namespace Models
Expand Down
2 changes: 1 addition & 1 deletion tests/models/models/torrent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class Torrent final : // NOLINT(bugprone-exception-escape, misc-no-recursion)
// inline static QString u_timeFormat {u"HH:mm:ss"_s};

/*! The attributes that should be mutated to dates. */
inline static const QStringList u_dates {AddedOn, u"added_on_alt"_s};
inline static const QStringList u_dates {AddedOn, u"added_on_alt"_s}; // NOLINT(cppcoreguidelines-interfaces-global-init)

/*! All of the relationships to be touched. */
// QStringList u_touches {u"tags"_s};
Expand Down
2 changes: 1 addition & 1 deletion tests/models/models/torrent_returnrelation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Torrent_ReturnRelation final : // NOLINT(bugprone-exception-escape, misc-n
};

/*! The attributes that should be mutated to dates. */
inline static const QStringList u_dates {AddedOn};
inline static const QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init)
};

} // namespace Models
Expand Down
2 changes: 1 addition & 1 deletion tests/models/models/torrent_with_qdatetime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Torrent_With_QDateTime final : public Model<Torrent_With_QDateTime> // NOL
};

/*! The attributes that should be mutated to dates. */
inline static const QStringList u_dates {AddedOn};
inline static const QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init)
};

} // namespace Models
Expand Down
2 changes: 1 addition & 1 deletion tests/models/models/torrenteager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class TorrentEager final : public Model<TorrentEager, TorrentPreviewableFileEage
};

/*! The attributes that should be mutated to dates. */
inline static const QStringList u_dates {AddedOn};
inline static const QStringList u_dates {AddedOn}; // NOLINT(cppcoreguidelines-interfaces-global-init)
};

} // namespace Models
Expand Down

0 comments on commit 78c923a

Please sign in to comment.