refactor: Enable clang-tidy readability-identifier-naming check (#6571)

This commit is contained in:
Alex Kremer
2026-05-03 11:31:53 +01:00
committed by GitHub
parent 182d844996
commit 8995564ed6
1498 changed files with 58858 additions and 58914 deletions

View File

@@ -14,14 +14,14 @@
namespace xrpl::test::jtx {
Json::Value
json::Value
trust(Account const& account, STAmount const& amount, std::uint32_t flags)
{
if (isXRP(amount))
Throw<std::runtime_error>("trust() requires IOU");
Json::Value jv;
json::Value jv;
jv[jss::Account] = account.human();
jv[jss::LimitAmount] = amount.getJson(JsonOptions::none);
jv[jss::LimitAmount] = amount.getJson(JsonOptions::KNone);
jv[jss::TransactionType] = jss::TrustSet;
jv[jss::Flags] = flags;
return jv;
@@ -31,15 +31,15 @@ trust(Account const& account, STAmount const& amount, std::uint32_t flags)
// lines. account (first function parameter) is the issuing authority, it
// authorises peer (third function parameter) to hold a certain currency
// (amount, the second function parameter)
Json::Value
json::Value
trust(Account const& account, STAmount const& amount, Account const& peer, std::uint32_t flags)
{
if (isXRP(amount))
Throw<std::runtime_error>("trust() requires IOU");
Json::Value jv;
json::Value jv;
jv[jss::Account] = account.human();
{
auto& ja = jv[jss::LimitAmount] = amount.getJson(JsonOptions::none);
auto& ja = jv[jss::LimitAmount] = amount.getJson(JsonOptions::KNone);
ja[jss::issuer] = peer.human();
}
jv[jss::TransactionType] = jss::TrustSet;
@@ -47,12 +47,12 @@ trust(Account const& account, STAmount const& amount, Account const& peer, std::
return jv;
}
Json::Value
json::Value
claw(Account const& account, STAmount const& amount, std::optional<Account> const& mptHolder)
{
Json::Value jv;
json::Value jv;
jv[jss::Account] = account.human();
jv[jss::Amount] = amount.getJson(JsonOptions::none);
jv[jss::Amount] = amount.getJson(JsonOptions::KNone);
jv[jss::TransactionType] = jss::Clawback;
if (mptHolder)