exclude bugprone access

This commit is contained in:
Shawn Xie
2026-05-04 19:40:27 -04:00
parent 086d95aa2c
commit cd193bba31
3 changed files with 7 additions and 2 deletions

View File

@@ -57,7 +57,7 @@
namespace xrpl {
// NOLINTBEGIN(misc-const-correctness)
// NOLINTBEGIN(misc-const-correctness, bugprone-unchecked-optional-access)
class ConfidentialTransfer_test : public beast::unit_test::Suite
{
// Offset where the bulletproof begins in a send proof blob.
@@ -9820,7 +9820,7 @@ public:
testWithFeats(all);
}
};
// NOLINTEND(misc-const-correctness)
// NOLINTEND(misc-const-correctness, bugprone-unchecked-optional-access)
BEAST_DEFINE_TESTSUITE(ConfidentialTransfer, app, xrpl);
} // namespace xrpl

View File

@@ -52,6 +52,8 @@
namespace xrpl::test::jtx {
// NOLINTBEGIN(bugprone-unchecked-optional-access)
/**
* @brief Helper function to convert a PedersenProofParams into the C library struct.
*
@@ -2411,4 +2413,6 @@ MPTTester::convertBackJV(MPTConvertBack const& arg, std::uint32_t seq)
return jv;
}
// NOLINTEND(bugprone-unchecked-optional-access)
} // namespace xrpl::test::jtx

View File

@@ -349,6 +349,7 @@ class MPTTester
std::unordered_map<AccountID, Buffer> privKeys_;
public:
// NOLINTNEXTLINE(cppcoreguidelines-use-enum-class)
enum EncryptedBalanceType {
IssuerEncryptedBalance,
HolderEncryptedInbox,