-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add configuration to allow skipping on some certain traits
- Loading branch information
Showing
10 changed files
with
130 additions
and
51 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore `From`, `TryFrom`, `FromStr` by default | ||
# ignored-traits = [] |
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore `From`, `TryFrom`, `FromStr` by default | ||
ignored-traits = [ "..", "std::ops::Add", "renamed_function_params::MyTrait" ] |
This file contains 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
34 changes: 34 additions & 0 deletions
34
tests/ui-toml/renamed_function_params/renamed_function_params.extend.stderr
This file contains 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
error: renamed function parameter of trait impl | ||
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:30:18 | ||
| | ||
LL | fn eq(&self, rhs: &Self) -> bool { | ||
| ^^^ help: consider using the default name: `other` | ||
| | ||
= note: `-D clippy::renamed-function-params` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(clippy::renamed_function_params)]` | ||
|
||
error: renamed function parameter of trait impl | ||
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:34:18 | ||
| | ||
LL | fn ne(&self, rhs: &Self) -> bool { | ||
| ^^^ help: consider using the default name: `other` | ||
|
||
error: renamed function parameter of trait impl | ||
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:55:31 | ||
| | ||
LL | fn hash<H: Hasher>(&self, states: &mut H) { | ||
| ^^^^^^ help: consider using the default name: `state` | ||
|
||
error: renamed function parameters of trait impl | ||
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:59:30 | ||
| | ||
LL | fn hash_slice<H: Hasher>(date: &[Self], states: &mut H) { | ||
| ^^^^ ^^^^^^ | ||
| | ||
help: consider using the default names | ||
| | ||
LL | fn hash_slice<H: Hasher>(data: &[Self], state: &mut H) { | ||
| ~~~~ ~~~~~ | ||
|
||
error: aborting due to 4 previous errors | ||
|
This file contains 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
This file contains 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