Jason Newcomb
e34c6dbae5
Refactor for using config values:
...
* Construct lint passes by taking `Conf` by reference.
* Use `HashSet` configs in less places
* Move some `check_crate` code into the pass constructor when possible.
2024-07-17 14:05:49 -04:00
Jason Newcomb
60af2585f7
Refactor disallowed_methods:
...
* Simplify `def_id` extraction.
* Use the span of the method name instead of the call.
2024-07-05 02:37:09 -04:00
y21
91f514cc83
fix fallout from previous commit
2024-04-01 15:04:45 +02:00
Alex Macleod
7093444bfa
Use absolute path for declare_tool_lint in declare_clippy_lint
2023-11-25 17:45:27 +00:00
Alex Macleod
4622203c9b
Move configuration to new clippy_config crate
2023-10-23 20:05:10 +00:00
Philipp Krones
415fdb2d1a
Merge remote-tracking branch 'upstream/master' into rustup
2023-07-14 13:36:16 +02:00
Philipp Krones
46c5a5d234
Merge commit ' f4850f7292' into clippyup
2022-11-21 20:51:52 +01:00
Alex Macleod
1e1ac2b498
Return multiple resolutions from def_path_res
2022-11-04 21:58:07 +00:00
flip1995
cd0bb7de01
Merge commit ' 4f142aa105' into clippyup
2022-10-23 15:18:45 +02:00
est31
f48d13f8d1
Replace manual let else patterns with let else
2022-10-11 00:12:16 +02:00
Philipp Krones
d75b25faab
Merge commit ' ac0e10aa68' into clippyup
2022-10-06 09:44:38 +02:00
Alex Macleod
86c86c3742
Add disallowed_macros lint
2022-10-05 13:44:06 +00:00
Yuri Astrakhan
e67b2bf732
Apply uninlined_format-args to clippy_lints
...
This change is needed for the uninlined_format-args lint to be merged.
See https://github.com/rust-lang/rust-clippy/pull/9233
2022-09-23 13:42:59 -04:00
xFrednet
4587b6628d
Merge 'rust-clippy/master' into clippyup
2022-05-21 13:24:00 +02:00
Alex Macleod
5730fd49fa
Lint indirect usages in disallowed_methods
2022-05-20 12:39:15 +00:00
flip1995
611d039814
Merge commit ' 57b3c4b90f' into clippyup
2022-02-10 18:40:06 +01:00
Cameron Steffen
cc975929c5
Rename path_to_res to def_path_res
2022-01-28 15:45:41 -06:00
flip1995
fb0142ae41
Merge commit ' 97a5daa659' into clippyup
2022-01-13 13:18:19 +01:00
Alex Macleod
04eb27aeaf
Use method name from conf::DisallowedMethod
...
Since def_path_str returns e.g. "core::f32::<impl f32>::clamp" for
"f32::clamp"
2022-01-12 16:23:22 +00:00
Taiki Endo
5f143c603e
Warn disallowed_methods and disallowed_types by default
2022-01-11 02:17:14 +09:00
flip1995
8fea1d94f3
Merge commit ' a5d597637d' into clippyup
2021-12-06 12:33:31 +01:00
flip1995
9b38fb7b71
Also pluralize disallowed_method(s) lint
...
To stay consistent with the sister lint disallowed_type, also rename the
disallowed_method lint to disallowed_methods.
2021-11-18 17:37:06 +01:00