-
Notifications
You must be signed in to change notification settings - Fork 1.7k
RFC: Add a semantically non-blocking lint level #3730
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
Open
epage
wants to merge
35
commits into
rust-lang:master
Choose a base branch
from
epage:nit-lint-level
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
95ca8a9
Add skeleton
epage a8d4932
feat: Initial draft
epage ee5c90e
fix: Rename the file for RFC#
epage 066712c
fix: Update body with RFC#
epage 91be5d2
fix: Be less prescriptive on rendering
epage 1bc7f95
feat: Add nit as an option
epage 883fb82
fix: Clarify the nit concern
epage b7093ce
feat: Add 'mention' as an option
epage 6445281
fix: Cover warning fatigue
epage 56876e2
fix: Link to the original internals thread
epage f82b8ca
fix: Avoid broken windows
epage fb61bb2
feat: Add Github prior art
epage 9e3c40a
feat: Start talking to how CI can be done
epage a03f5d2
feat(motivation): Talk to migrating allows to warns
epage 5e30760
feat(future): Discuss first-party SARIF support
epage 14faa69
feat(alt): Discuss pedantic
epage 2410bb1
feat(ref): Discuss clippy
epage 21f543a
feat(motivation): Call out the avoid-breaking-exported-api casee
epage d581438
feat(motivation): Cover soft-errors that block release
epage eaf0145
feat(rationale): Highlight the strengths of this solution
epage a9d8e56
fix(rationale): Call out that CARGO_BUILD_NITS=deny doesn't make sense
epage 9f27926
fix(rationale): Call out LSP reporting benefit
epage bf52f75
feat(ref): Discuss cargo-fix behavior
epage d7b6a82
fix: Clear up language
epage 764841d
fix: Add nitpick as an alternative
epage 24c9506
fix: Call out rust-analyzer / LSP behavior
epage 3320270
fix: Add missing period
epage 6ee328c
fix: Switch from two leading spaces to one
epage bd812a2
fix: Grammatical correction
epage 8be68a2
fix: Improve a sentence structure
epage 3c7b59c
fix: Spelling
epage 8484743
fix: Remove redundancy between config drawback and unresolved question
epage fdd4021
fix(drawback): Mention verbosity, cli control
epage 852f061
fix(question): Carry over the config table question from CARGO_BUILD_…
epage 1d7463f
fix(alt): Cover 'show nits if nothing else'
epage File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Cover warning fatigue
- Loading branch information
commit 644528155be4090cd88b9659efbc44a491bd4b17
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,6 +26,10 @@ this new lint level. | |||||
| By its name and literal usage, the `warn` level is non-blocking. | ||||||
| However, most projects treat `warn` as a soft-error. | ||||||
| It doesn't block for local development but CI blocks it from being merged. | ||||||
| This is an attempt to balance final correctness with rapid prototyping. | ||||||
| Requiring "warnings clean" code also avoids warnings fatigue where warnings | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| make it hard to see "relevant' compiler output and | ||||||
| act as proverbial [broken windows](https://en.wikipedia.org/wiki/Broken_windows_theory). | ||||||
|
epage marked this conversation as resolved.
Outdated
|
||||||
| This convention is not new with the Rust community; many C++ projects have take | ||||||
| this approach before Rust came to be with "warnings clean" being a goal for | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| correctness. | ||||||
|
joshtriplett marked this conversation as resolved.
|
||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.