Sponsored Content
Skip to content

chore: Mark empty transactor invariants as future work - #7080

Merged
bthomee merged 1 commit into
developfrom
tapanito/invariant-comments
May 6, 2026
Merged

chore: Mark empty transactor invariants as future work#7080
bthomee merged 1 commit into
developfrom
tapanito/invariant-comments

Conversation

@Tapanito

@Tapanito Tapanito commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Most transactors implement visitInvariantEntry / finalizeInvariants as no-ops — the absence of transaction-specific invariants is intentional and tracked as future work, but it consistently trips up static analysis and AI review tools that flag "this transaction has no invariants."

This PR adds a single one-line comment in each empty body so reviewers and tooling can see at a glance that the empty implementation is deliberate:

// No transaction-specific invariants yet (future work).

No behavior change — comment-only edit across 66 transactor .cpp files (covering 73 transactors; XChainBridge.cpp alone defines 8).

Test plan

  • Repo builds (SetRegularKey.cpp compiled as a smoke test; pure comment edits)
  • pre-commit hooks pass (clang-format, clang-tidy, cspell, etc.)
  • CI green

Add a one-line comment in each transactor's empty visitInvariantEntry
and finalizeInvariants to indicate the absence of transaction-specific
invariants is intentional and tracked as future work, so static
analysis and AI review tools stop flagging it.
@Tapanito Tapanito added the Trivial Simple change with minimal effect, or already tested. Only needs one approval. label May 6, 2026
@Tapanito
Tapanito requested a review from mvadari May 6, 2026 08:46

@xrplf-ai-reviewer xrplf-ai-reviewer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues.

Review by Claude Opus 4.6 · Prompt: V15

@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.1%. Comparing base (5e1c35f) to head (d9be6cd).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #7080     +/-   ##
=========================================
- Coverage     82.1%   82.1%   -0.0%     
=========================================
  Files         1010    1010             
  Lines        76024   76024             
  Branches      7383    7372     -11     
=========================================
- Hits         62401   62394      -7     
- Misses       13623   13630      +7     
Files with missing lines Coverage Δ
...c/libxrpl/tx/transactors/account/AccountDelete.cpp 95.7% <ø> (ø)
src/libxrpl/tx/transactors/account/AccountSet.cpp 98.6% <ø> (ø)
...c/libxrpl/tx/transactors/account/SetRegularKey.cpp 100.0% <ø> (ø)
...c/libxrpl/tx/transactors/account/SignerListSet.cpp 92.1% <ø> (ø)
src/libxrpl/tx/transactors/bridge/XChainBridge.cpp 91.7% <ø> (ø)
src/libxrpl/tx/transactors/check/CheckCancel.cpp 93.9% <ø> (ø)
src/libxrpl/tx/transactors/check/CheckCash.cpp 91.3% <ø> (ø)
src/libxrpl/tx/transactors/check/CheckCreate.cpp 99.1% <ø> (ø)
...pl/tx/transactors/credentials/CredentialAccept.cpp 100.0% <ø> (ø)
...pl/tx/transactors/credentials/CredentialCreate.cpp 100.0% <ø> (ø)
... and 56 more

... and 8 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Tapanito Tapanito added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label May 6, 2026
@bthomee
bthomee added this pull request to the merge queue May 6, 2026
Merged via the queue into develop with commit a4720d0 May 6, 2026
3 checks passed
@bthomee
bthomee deleted the tapanito/invariant-comments branch May 6, 2026 13:38
@mvadari mvadari added this to the 3.2.0 milestone May 20, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. Trivial Simple change with minimal effect, or already tested. Only needs one approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants