Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🦀 Comprehensive Clippy run #380

Merged
merged 1 commit into from
Aug 23, 2024
Merged

🦀 Comprehensive Clippy run #380

merged 1 commit into from
Aug 23, 2024

Conversation

JuaniRios
Copy link
Contributor

@JuaniRios JuaniRios commented Aug 13, 2024

What?

Run clippy::all, which contains the default lint groups (correctness, suspicious, style, complexity, perf)

Why?

We haven't checked clippy in a long time, it provides useful feedback on code style

How?

We define in the workspace the clippy lints we want to run, and the ones we want to ignore

In certain pallets like democracy, which are forks, we don't want to check the clippy there, so we ignore everything.

Anything else?

I started trying to do both all and pedantic groups, but pedantic is huge and would have made the PR bloated.

I implemented some of those changes like the module name repetition, but then stopped.

I will in a later PR cherry pick some lints from pedantic and add them to the workspace

@JuaniRios JuaniRios force-pushed the 08-13-clippy-changes branch 2 times, most recently from aab7efe to 1a5b1c8 Compare August 14, 2024 13:01
@JuaniRios JuaniRios changed the title clippy-changes 🦀 Comprehensive Clippy run Aug 14, 2024
@JuaniRios JuaniRios force-pushed the 08-13-clippy-changes branch 2 times, most recently from 54b0e07 to 708be83 Compare August 14, 2024 14:48
@JuaniRios JuaniRios self-assigned this Aug 14, 2024
@JuaniRios JuaniRios marked this pull request as ready for review August 14, 2024 14:52
@lrazovic lrazovic force-pushed the 08-09-aws_runtime_weight_gen branch from 3553e32 to e294358 Compare August 16, 2024 13:04
@lrazovic lrazovic mentioned this pull request Aug 16, 2024
@lrazovic lrazovic force-pushed the 08-09-aws_runtime_weight_gen branch from 3553e32 to e294358 Compare August 16, 2024 13:14
Copy link
Collaborator

@vstam1 vstam1 left a comment

Choose a reason for hiding this comment

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

Lgtm

@JuaniRios JuaniRios force-pushed the 08-13-clippy-changes branch 2 times, most recently from 3b913bd to 0eb41f3 Compare August 23, 2024 09:32
Copy link
Contributor Author

JuaniRios commented Aug 23, 2024

Merge activity

  • Aug 23, 5:56 AM EDT: @JuaniRios started a stack merge that includes this pull request via Graphite.
  • Aug 23, 6:56 AM EDT: Graphite rebased this pull request as part of a merge.
  • Aug 23, 6:57 AM EDT: @JuaniRios merged this pull request with Graphite.

@JuaniRios JuaniRios changed the base branch from 08-09-aws_runtime_weight_gen to graphite-base/380 August 23, 2024 10:51
@JuaniRios JuaniRios changed the base branch from graphite-base/380 to main August 23, 2024 10:54
@JuaniRios JuaniRios merged commit ea31031 into main Aug 23, 2024
1 check passed
@JuaniRios JuaniRios deleted the 08-13-clippy-changes branch August 23, 2024 10:57
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.

2 participants