chore: Enable clang-tidy coreguidelines checks (#6698)

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
Alex Kremer
2026-04-01 16:46:14 +01:00
committed by GitHub
parent ae21f53e4d
commit 29e49abd3c
117 changed files with 299 additions and 343 deletions

View File

@@ -12,7 +12,7 @@ namespace test {
namespace jtx {
namespace oracle {
Oracle::Oracle(Env& env, CreateArg const& arg, bool submit) : env_(env), documentID_{}
Oracle::Oracle(Env& env, CreateArg const& arg, bool submit) : env_(env)
{
// LastUpdateTime is checked to be in range
// {close-maxLastUpdateTimeDelta, close+maxLastUpdateTimeDelta}.

View File

@@ -8,12 +8,14 @@ namespace test {
namespace jtx {
qualityInPercent::qualityInPercent(double percent)
// NOLINTNEXTLINE(cppcoreguidelines-use-default-member-init)
: qIn_(static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
{
assert(percent <= 400 && percent >= 0);
}
qualityOutPercent::qualityOutPercent(double percent)
// NOLINTNEXTLINE(cppcoreguidelines-use-default-member-init)
: qOut_(static_cast<std::uint32_t>((percent / 100) * QUALITY_ONE))
{
assert(percent <= 400 && percent >= 0);

View File

@@ -413,7 +413,6 @@ XChainBridgeObjects::XChainBridgeObjects()
}
return r;
}())
, quorum(UT_XCHAIN_DEFAULT_QUORUM)
, reward(XRP(1))
, split_reward_quorum(divide(reward, STAmount(UT_XCHAIN_DEFAULT_QUORUM), reward.issue()))
, split_reward_everyone(divide(reward, STAmount(UT_XCHAIN_DEFAULT_NUM_SIGNERS), reward.issue()))