Skip to content

chore: add clippy.toml with project lint configuration - #203

Merged
Glittersup merged 1 commit into
TricklePay:mainfrom
DevSolex:chore/issue-157
Aug 30, 2026
Merged

chore: add clippy.toml with project lint configuration#203
Glittersup merged 1 commit into
TricklePay:mainfrom
DevSolex:chore/issue-157

Conversation

@DevSolex

Copy link
Copy Markdown
Contributor

Summary

Closes #157

Adds a clippy.toml at the repository root that records the project's deliberate Clippy configuration in one place, replacing the inline #[allow] attribute that was the only suppression in the codebase.

Changes

  • clippy.toml (new): raises too-many-arguments-threshold from the default 7 to 8. The create_stream function takes 8 parameters — all distinct fields in the public on-chain ABI — so the threshold is raised at the project level rather than suppressed at the call site.
  • contracts/stream/src/contract.rs: removes the #[allow(clippy::too_many_arguments)] attribute from create_stream since clippy.toml now covers it. A comment is left explaining the threshold decision.

Verification

cargo fmt --check          ✓
cargo clippy --all-targets -- -D warnings  ✓  (105 checks, 0 warnings)
cargo test                 ✓  (105 tests passed)

- Add clippy.toml that raises too-many-arguments-threshold to 8 so the
  create_stream entry point (8 params, all part of the on-chain ABI) is
  accommodated at the project level.
- Remove the inline #[allow(clippy::too_many_arguments)] from contract.rs
  that is now superseded by the configuration file.

Resolves TricklePay#157
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@DevSolex Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Glittersup
Glittersup merged commit fc9839e into TricklePay:main Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a clippy.toml with the project's lint configuration

2 participants