Yuri Astrakhan
eb3970285b
fallout: fix tests to allow uninlined_format_args
...
In order to switch `clippy::uninlined_format_args` from pedantic to
style, all existing tests must not raise a warning. I did not want to
change the actual tests, so this is a relatively minor change that:
* add `#![allow(clippy::uninlined_format_args)]` where needed
* normalizes all allow/deny/warn attributes
* all allow attributes are grouped together
* sorted alphabetically
* the `clippy::*` attributes are listed separate from the other ones.
* deny and warn attributes are listed before the allowed ones
changelog: none
2022-10-02 15:13:22 -04:00
Jason Newcomb
2ae8b300a7
Don't lint unit_arg
when expanded from a proc-macro
2022-08-07 21:52:25 -04:00
Jason Newcomb
48bcc1d95f
Move let_unit_value
back into style
2022-04-14 21:33:32 -04:00
flip1995
54e539121d
Rename two lints to comply with our lint naming convention
...
self_named_constructor -> self_named_constructors
append_instead_of_extend -> extend_with_drain
2021-07-29 12:10:18 +02:00
Anthony Huang
357a8f0344
Add redundant_method_names lint
2021-07-05 14:15:20 -04:00
Marc Dominik Migge
cbe6eec3e6
Add original test case from issue
2021-02-25 22:03:11 +01:00
Marc Dominik Migge
9fe9d94abd
Don't lint unit args if expression kind is path
2021-02-24 13:31:04 +01:00
Marc Dominik Migge
eb476c6c70
Split up tests for unit arg expressions
2021-01-18 20:18:56 +01:00
Marc Dominik Migge
0c347d3d06
Fix false positive for unit_arg lint
2021-01-17 14:42:36 +01:00
Benjamin Sparks
ba87acb440
Implemented needless question mark lint
2021-01-04 14:51:48 +01:00
Hirochika Matsumoto
c7445d7f2c
Pluralize lint name
2020-11-18 01:28:37 +09:00
Hirochika Matsumoto
30632fb8e6
Allow this lint on lint tests
2020-11-18 01:28:37 +09:00
Tim Nielens
f3ccbef2af
unit-arg - pr comments
2020-08-27 19:36:28 +02:00
Tim Nielens
2ecc2ac864
unit-arg - improve suggestion
2020-08-21 00:42:11 +02:00
flip1995
77dd0ea62a
Add tests for empty blocks
2020-05-31 19:29:36 +02:00
flip1995
6d15a14964
Update test files
2020-05-31 18:50:33 +02:00
flip1995
380d941a04
Adapt stderr and fixed files
2020-05-31 18:48:28 +02:00
flip1995
63987aafba
Rustup to rust-lang/rust#70081
2020-04-01 20:12:36 +02:00
Michael Wright
df04238d3a
Fix unit_arg
false positive
...
Ignore arguments with the question mark operator.
Closes #2945
2019-01-29 07:22:08 +02:00
Wilco Kusee
c325137d08
Add run-rustfix to unit_arg test
2019-01-13 19:59:00 +01:00
Philipp Hansch
38d4ac7cea
Remove all copyright license headers
...
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-08 21:46:39 +01:00
Matthias Krüger
435299be30
rustfmt tests
2018-12-09 23:26:16 +01:00
Oliver Scherer
b8654eaa6c
Stabilize tool lints
2018-10-11 12:16:22 +02:00
Manish Goregaokar
e9c025ea70
Add license header to Rust files
2018-10-06 09:43:08 -07:00
flip1995
1b6f6051a8
Adapt ui-tests to the tool_lints
2018-08-29 11:08:29 -07:00
HMPerson1
8081f6fd6e
Replace is_unit_expr
2018-01-18 17:04:26 -05:00