Skip to content

Aplicar limite de complexidade ciclomática 10 e reduzir erros do Clippy#25

Merged
Pantani merged 1 commit into
mainfrom
Pantani/cx/configurar-complexity-em-1--v2
Jun 10, 2026
Merged

Aplicar limite de complexidade ciclomática 10 e reduzir erros do Clippy#25
Pantani merged 1 commit into
mainfrom
Pantani/cx/configurar-complexity-em-1--v2

Conversation

@Pantani

@Pantani Pantani commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Configura clippy para tratar cognitive_complexity como erro com limite máximo de 10.
  • Refatora pontos de alta complexidade em src/cli/*, src/toolchain/fix.rs e testes de integração para eliminar os avisos sem adicionar allow.
  • Mantém o escopo restrito à configuração e à redução da complexidade; sem mudanças de regra extra ou dependências.

Testing

  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo fmt --all --check
  • cargo test --locked

@ecc-tools

ecc-tools Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR.

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Pantani, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 56 minutes and 14 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 45120b94-9b7c-4a60-a8e3-867f11f52806

📥 Commits

Reviewing files that changed from the base of the PR and between ed110a4 and 4f99334.

📒 Files selected for processing (19)
  • Cargo.toml
  • clippy.toml
  • src/cli/app.rs
  • src/cli/chain.rs
  • src/cli/scaffold.rs
  • src/config/loader.rs
  • src/toolchain/fix.rs
  • tests/generate.rs
  • tests/integration_chain.rs
  • tests/integration_generate.rs
  • tests/integration_onboarding.rs
  • tests/integration_scaffold.rs
  • tests/onboarding_examples_learn.rs
  • tests/scaffold_account.rs
  • tests/scaffold_error.rs
  • tests/scaffold_event.rs
  • tests/scaffold_instruction.rs
  • tests/scaffold_program.rs
  • tests/scaffold_recipes.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Pantani Pantani merged commit 2cf1fad into main Jun 10, 2026
12 checks passed
@Pantani Pantani deleted the Pantani/cx/configurar-complexity-em-1--v2 branch June 10, 2026 06:52
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.

1 participant