chore: Enable clang-tidy misc checks (#6655)

This commit is contained in:
Alex Kremer
2026-03-31 18:29:45 +01:00
committed by GitHub
parent c3fae847f3
commit 2502befb42
469 changed files with 3915 additions and 3965 deletions

View File

@@ -191,14 +191,14 @@ public:
}
{
// Request an invalid ledger.
Json::Value args{depositAuthArgs(alice, becky, "-1")};
Json::Value const args{depositAuthArgs(alice, becky, "-1")};
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
verifyErr(
result, "invalidParams", "Invalid field 'ledger_index', not string or number.");
}
{
// Request a ledger that doesn't exist yet as a string.
Json::Value args{depositAuthArgs(alice, becky, "17")};
Json::Value const args{depositAuthArgs(alice, becky, "17")};
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
verifyErr(result, "lgrNotFound", "ledgerNotFound");
}
@@ -211,7 +211,7 @@ public:
}
{
// alice is not yet funded.
Json::Value args{depositAuthArgs(alice, becky)};
Json::Value const args{depositAuthArgs(alice, becky)};
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
verifyErr(result, "srcActNotFound", "Source account not found.");
}
@@ -219,7 +219,7 @@ public:
env.close();
{
// becky is not yet funded.
Json::Value args{depositAuthArgs(alice, becky)};
Json::Value const args{depositAuthArgs(alice, becky)};
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
verifyErr(result, "dstActNotFound", "Destination account not found.");
}
@@ -227,7 +227,7 @@ public:
env.close();
{
// Once becky is funded try it again and see it succeed.
Json::Value args{depositAuthArgs(alice, becky)};
Json::Value const args{depositAuthArgs(alice, becky)};
Json::Value const result{env.rpc("json", "deposit_authorized", args.toStyledString())};
validateDepositAuthResult(result, true);
}