Centri3
6afb3555d3
remove revisions
2023-06-08 10:15:58 -05:00
Centri3
5da34559ee
Check if from proc macro and better tests
2023-06-07 18:34:34 -05:00
Centri3
725399a178
move to complexity
but don't lint by default
2023-06-07 18:34:34 -05:00
Centri3
378d77584a
work with lint attributes
2023-06-07 18:34:34 -05:00
Centri3
493a23e957
check non-inline modules, ignore all macros
2023-06-07 18:34:34 -05:00
Centri3
88143ac295
decided against reinventing the wheel
2023-06-07 18:34:34 -05:00
Centri3
e68dbc3308
add excessive_nesting
...
Close code block in example
2023-06-07 18:34:34 -05:00
Centri3
97c10075ec
add the excessive_*
style lints
2023-06-07 18:22:50 -05:00
y21
05f78e530a
allow the lint in a bunch of tests
2023-06-06 22:56:57 +02:00
Philipp Krones
e6dc0efc00
Merge commit '30448e8cf98d4754350db0c959644564f317bc0f' into clippyup
2023-06-02 11:41:57 +02:00
bors
50ab3ce6c9
Auto merge of #10607 - beetrees:toml-spans, r=giraffate
...
Add spans to `clippy.toml` error messages
Adds spans to errors and warnings encountered when parsing `clippy.toml`.
changelog: Errors and warnings generated when parsing `clippy.toml` now point to the location in the TOML file the error/warning occurred.
2023-06-02 08:01:31 +00:00
beetrees
6f13a37499
Add spans to clippy.toml
error messages
2023-06-02 00:56:27 +01:00
Samuel "Sam" Tardieu
e6646eb5fd
needless_else: new lint to check for empty else clauses
2023-05-22 11:52:26 +02:00
Philipp Krones
7e9abb311d
Merge commit '371120bdbf58a331db5dcfb2d9cddc040f486de8' into clippyup
2023-05-05 17:45:49 +02:00
bors
990bbdc2be
Auto merge of #10656 - Centri3:master, r=xFrednet
...
Add configuration for `semicolon_block` lints
Does exactly what it says on the tin, suggests moving a block's final semicolon inside if it's multiline and outside if it's singleline.
I don't really like how this is implemented so I'm not too sure if this is ready yet. Alas, it might be ok.
---
fixes #10654
changelog: Enhancement: [`semicolon_inside_block`]: Added `semicolon-inside-block-ignore-singleline` as a new config value.
[#10656 ](https://github.com/rust-lang/rust-clippy/pull/10656 )
changelog: Enhancement: [`semicolon_outside_block`]: Added `semicolon-outside-block-ignore-multiline` as a new config value.
[#10656 ](https://github.com/rust-lang/rust-clippy/pull/10656 )
<!-- changelog_checked -->
2023-04-25 20:12:00 +00:00
Centri3
e3ee10d428
use //@
for commands in tests
2023-04-25 11:23:02 -05:00
Centri3
aa6c27a74e
change names to not be implicitly negative
2023-04-25 11:14:52 -05:00
Philipp Krones
a1b75c5108
Merge commit 'a3ed905928a03b6e433d0b429190bf3a847128b3' into clippyup
2023-04-23 13:28:56 +02:00
Oli Scherer
def1705a27
Update to a compiletest-rs version that requires //@
for commands
2023-04-20 14:44:03 +00:00
Centri3
a3aeec4f75
config instead of new lint and don't panic
2023-04-19 21:46:13 -05:00
Lukas Lueg
4bc68f9c60
Add size-parameter to unecessary_box_returns
...
Fixes #10641
2023-04-19 14:32:05 +02:00
Philipp Krones
6b95029f17
Merge commit '83e42a2337dadac915c956d125f1d69132f36425' into clippyup
2023-04-11 15:31:08 +02:00
bors
29987062d9
Auto merge of #10536 - mkrasnitski:suggestions, r=flip1995
...
Add suggestions to `extra_unused_type_parameters`
Change the `extra_unused_type_parameters` lint to provide machine applicable suggestions rather than just help messages. Exception to this are cases when any unused type parameters appear bounded in where clauses - for now I've deemed these cases unfixable and separated them out. Future work might be able to provide suggestions in these cases.
Also, added a test case for the `avoid_breaking_exported_api` config option.
r? `@flip1995`
changelog: [`extra_unused_type_parameters`]: Now provides fixable suggestions.
2023-03-31 16:16:36 +00:00
bors
799732cbd8
Auto merge of #10414 - csmoe:large-future, r=xFrednet
...
add large future lint
Closes #5263
---
changelog: new lint: [`large_futures`]
[#10414 ](https://github.com/rust-lang/rust-clippy/pull/10414 )
<!-- changelog_checked -->
2023-03-30 08:51:29 +00:00
csmoe
4f5a019d6e
Update clippy_lints/src/large_futures.rs
...
Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
2023-03-29 08:47:32 +00:00
Alex Macleod
3259b48568
Migrate format_args.rs
to rustc_ast::FormatArgs
...
No longer lints empty precisions `{:.}` as the spans aren't available
2023-03-28 12:22:22 +00:00
Philipp Krones
8df896c076
Merge commit 'd5e2a7aca55ed49fc943b7a07a8eba05ab5a0079' into clippyup
2023-03-24 14:26:19 +01:00
Michael Krasnitski
50d92d0b60
Add suggestions to extra_unused_type_parameters
2023-03-23 23:56:31 -04:00
csmoe
4fdae81c70
add large future lint
2023-03-20 22:51:01 +08:00
J-ZhengLi
f4ccb06d69
extract is_interior_mutable_type
from [mut_key
] to clippy_utils::ty
;
...
fix configuration of [`ifs_same_cond`];
add some style improvement for [`ifs_same_cond`];
2023-03-13 20:17:30 +08:00
J-ZhengLi
f0ae2b71ca
make [ifs_same_cond
] use ignore_interior_mutablility
configuration
2023-03-13 20:13:56 +08:00
Pietro Albini
aff9b72375
move clippy tests back to their intended directory
2023-03-08 14:17:16 +01:00
Alex Macleod
2cadea5dc5
Fix array-size-threshold config deserialization error
2023-02-28 14:37:41 +00:00
Jason Newcomb
0413fb35ba
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
2023-02-25 19:28:50 -05:00
Liu Dingming
79a90248c3
bless
2023-02-22 21:49:26 +08:00
Liu Dingming
1a474d9179
Recover tests
2023-02-22 21:36:30 +08:00
Christian Poveda
c29e767ef1
Address review comments
2023-02-17 09:09:44 -05:00
Christian Poveda
64b8aaf91a
remove empty file
2023-02-16 11:45:57 -05:00
Christian Poveda
e2e23c0045
Add docs and update tests
2023-02-09 16:41:45 -05:00
Christian Poveda
8eac9e359e
bless tests
2023-02-06 15:19:26 -05:00
Christian Poveda
c6692a8b42
Add configuration to lint missing docs of pub(crate)
items
2023-02-06 14:21:37 -05:00
Philipp Krones
d21616737b
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
2023-01-12 19:48:13 +01:00
Caio
4262aebeaa
[arithmetic-side-effects] Consider negative numbers and add more tests
2023-01-06 12:25:51 -03:00
Andy Russell
9aef1a264a
reword dbg_macro labels
2023-01-02 12:09:26 -05:00
Philipp Krones
1c422524c7
Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup
2022-12-17 14:12:54 +01:00
bors
39f0719a25
Auto merge of #9840 - c410-f3r:arith-2, r=Alexendoo
...
[`arithmetic-side-effects`]: Consider user-provided pairs
Depends on https://github.com/rust-lang/rust-clippy/pull/9592 .
Because of https://github.com/rust-lang/rust-clippy/pull/9559#discussion_r985293523 , r? `@Alexendoo`
```
changelog: [`arithmetic-side-effects`]: Consider user-provided pairs
```
2022-12-09 11:27:15 +00:00
Caio
1f92f97e5a
[arithmetic-side-effects]: Consider user-provided pairs
2022-12-08 17:41:49 -03:00
naosense
eec5039f09
fix test
2022-12-03 16:06:57 +08:00
Philipp Krones
d05e2865a0
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
naosense
67a94135cb
change note style
2022-11-29 15:00:51 +08:00