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

@@ -877,9 +877,9 @@ public:
testcase("TrackOffers");
using namespace jtx;
Env env(*this);
Account gw{"gw"};
Account alice{"alice"};
Account bob{"bob"};
Account const gw{"gw"};
Account const alice{"alice"};
Account const bob{"bob"};
auto wsc = makeWSClient(env.app().config());
env.fund(XRP(20000), alice, bob, gw);
env.close();
@@ -1186,8 +1186,8 @@ public:
testcase("BookOffersRPC Errors");
using namespace jtx;
Env env(*this);
Account gw{"gw"};
Account alice{"alice"};
Account const gw{"gw"};
Account const alice{"alice"};
env.fund(XRP(10000), alice, gw);
env.close();
auto USD = gw["USD"];
@@ -1515,7 +1515,7 @@ public:
testcase("BookOffer Limits");
using namespace jtx;
Env env{*this, asAdmin ? envconfig() : envconfig(no_admin)};
Account gw{"gw"};
Account const gw{"gw"};
env.fund(XRP(200000), gw);
// Note that calls to env.close() fail without admin permission.
if (asAdmin)
@@ -1562,7 +1562,7 @@ public:
featurePermissionedDEX};
Env env(*this, all);
PermissionedDEX permDex(env);
PermissionedDEX const permDex(env);
auto const alice = permDex.alice;
auto const bob = permDex.bob;
auto const carol = permDex.carol;
@@ -1685,7 +1685,7 @@ public:
featurePermissionedDEX};
Env env(*this, all);
PermissionedDEX permDex(env);
PermissionedDEX const permDex(env);
auto const alice = permDex.alice;
auto const bob = permDex.bob;
auto const carol = permDex.carol;