Oli Scherer
5bd97ac17a
Update tests
2023-06-26 14:13:07 +00:00
Andy Caldwell
66b46749e6
Change lint name to plural
2022-07-29 19:35:39 +01:00
Andy Caldwell
2f48257cfb
Rename "blacklisted name" to "disallowed name" throughout
2022-07-29 19:35:18 +01:00
kyoto7250
46d056e2eb
check last statement
2022-06-20 11:05:40 +09:00
kyoto7250
7a83809c8c
check only first statement
2022-06-18 17:49:03 +09:00
kyoto7250
7cb4cef123
feat(fix): ignore todo! and unimplemented! in if_same_then_else
2022-06-16 21:38:47 +09:00
Dany Marcoux
9306e9a4df
Ignore bodies containing todo!()
in clippy::if_same_then_else
2022-06-16 00:36:56 +09:00
xFrednet
a6f54f5dfd
Renaming the lint to branches_sharing_code and fixing typos
2021-04-05 13:35:51 +02:00
xFrednet
d1df73228a
A new lint for shared code in if blocks
...
* Added expression check for shared_code_in_if_blocks
* Finishing touches for the shared_code_in_if_blocks lint
* Applying PR suggestions
* Update lints yay
* Moved test into subfolder
2021-04-05 13:33:45 +02:00
Eduardo Broto
a083b84b78
if_same_then_else: don't assume multiplication is always commutative
2020-06-09 23:49:21 +02:00
Linus Färnstrand
b192f2cd15
Use primitive type assoc consts in more tests
2020-04-08 00:43:27 +02:00
Yuki Okushi
dfab83fe11
Split up if_same_then_else
ui test
2020-01-19 15:04:41 +09:00
flip1995
e1d573c242
Rustup to rust-lang/rust#62672
...
try macro is deprecated now, so Clippy will drop the support for it also
2019-08-15 10:14:06 +02:00
uHOOCCOOHu
5265ab8723
Fix tests for edition 2018 compatibility
2019-07-23 03:59:09 +08:00
Vincent Dal Maso
40f36658f5
Fix breaking tests
...
Changes:
- Fix stderr breaking the tests
- Adding tests over the if arms
2019-05-21 13:08:19 +02:00
Alexander Regueiro
d43966a176
Various cosmetic improvements.
2019-03-10 18:06:28 +00:00
Félix Fischer
ddc718087f
Renamed: Cyclomatic Complexity -> Cognitive Complexity
...
* Ran automatic naming update
* Formalized rename of `cyclomatic_complexity` to `cognitive_complexity`
** Added the rename to `lib.rs`
** Added rename test
* Added warning for deprecated key `cyclomatic_complexity_threshold` and tests for it
* Added deprecation status for Clippy's builtin attribute
* Updated tests for new builtin attribute renaming
2019-03-06 10:07:38 -03:00
Philipp Hansch
1eeda35118
rustfmt
2019-02-10 10:48:24 +01:00
Philipp Hansch
83a87fb7b6
UI test cleanup: Extract match_same_arms tests
2019-02-10 10:19:24 +01:00