Alex Macleod
022baa5ce3
Remove check for lib.register_*
and src/docs*
in cargo dev update_lints
...
This reverts commit 22d435b26627c1085c5b761846ca08870288794f.
2023-04-23 14:25:19 +00:00
Oli Scherer
def1705a27
Update to a compiletest-rs version that requires //@
for commands
2023-04-20 14:44:03 +00:00
Yuri Astrakhan
783879e6fe
Partial no-op refactoring of #9948
...
This contains preparatory work for #9948 to keep that change to the
minimum, and make it easier to review it.
2023-03-28 21:08:06 -04:00
Jirka Vebr
0b1ae20365
Fix dogfood tests by adding type annotations
2023-02-16 13:29:38 +01:00
Alex Macleod
22d435b266
Remove lib.register_*
and src/docs*
in cargo dev update_lints
2022-10-25 13:18:50 +00:00
Alex Macleod
a201518a8a
Generate lint categories and explanations with declare_clippy_lint
...
Changes it to be a proc_macro rather than macro_rules
2022-10-23 20:32:26 +00:00
est31
f48d13f8d1
Replace manual let else patterns with let else
2022-10-11 00:12:16 +02:00
Samuel Moelius
9cc8da222b
Fix adjacent code
2022-10-07 05:07:44 -04:00
bors
cb8da67194
Auto merge of #9509 - schubart:fix_sorting, r=llogiq
...
Fix sorting in ` cargo dev update_lints` script
changelog: none
The old code cloned and sorted `usable_lints` into `sorted_usable_lints`, but then failed to do anything with `sorted_usable_lints`.
This was discovered by my new `collection_is_never_read` lint (#9267 ) that I'm working on!
Fix: I renamed the sorted vector to `usable_lints`. Therefore it now gets used where the unsorted one was used previously.
2022-10-02 07:51:45 +00:00
Yuri Astrakhan
cc6b375cd3
fallout2: rework clippy_dev & _lints fmt inlining
...
* Inline format args where possible
* simplify a few complex macros into format str
* use formatdoc!() instead format!(indoc!(...))
2022-09-23 23:08:12 -04:00
Michael Schubart
033dae9ecc
Actually use the sorted vector
2022-09-21 19:04:31 +01:00
Andre Bogus
ad72aee93c
add --explain
subcommand
2022-09-02 22:17:39 +02:00
Jason Newcomb
d4a0785464
Correctly handle unescape warnings
2022-09-01 00:00:37 -04:00
Samuel E. Moelius III
032f112745
Fix adjacent code
2022-08-16 18:34:51 -04:00
Philipp Krones
879855bbaf
Merge remote-tracking branch 'upstream/master' into rustup
2022-08-11 19:26:04 +02:00
Philipp Krones
67c405cc1d
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
2022-07-28 19:08:22 +02:00
Serial
51cd5a8667
Add --type
flag to dev new_lint
2022-07-25 22:35:28 -04:00
Philipp Krones
7d4daaa8fa
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
2022-07-18 09:39:37 +02:00
Josh Triplett
b7230d4f44
Dogfood fixes to use bool::then_some
2022-07-06 02:03:56 -07:00
Philipp Krones
09f5df5087
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
2022-06-30 10:50:09 +02:00
Jason Newcomb
5e2a2d3ac9
Fix dogfood
2022-06-28 13:02:08 -04:00
Serial
ebf77f6d7e
Fix ICE when deprecating lints in directories
2022-06-23 10:44:11 -04:00
Serial
2bd1581bbf
Add dev deprecate
2022-06-21 13:43:47 -04:00
flip1995
f8f9d01c2a
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
2022-06-16 17:39:06 +02:00
flip1995
b551928800
Auto update lint count in Clippy book
2022-06-06 16:17:58 +02:00
xFrednet
4587b6628d
Merge 'rust-clippy/master' into clippyup
2022-05-21 13:24:00 +02:00
Jason Newcomb
f7378daf71
Add renamed lints to the changelog link list
2022-05-15 17:10:48 -04:00
nsunderland1
fe84ff3360
New lint: [derive_partial_eq_without_eq
]
2022-05-09 22:13:39 -07:00
flip1995
7cd86aa1be
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
2022-05-05 15:12:52 +01:00
bors
32fe4762bf
Auto merge of #8625 - Jarcho:rename_lint, r=xFrednet
...
Add `cargo dev rename_lint`
fixes #7799
changelog: None
2022-04-30 17:22:34 +00:00
Jason Newcomb
b3de32ba3c
Add rename_lint
command
2022-04-24 09:15:26 -04:00
Peter Jaszkowiak
67badbeef6
New lint format_add_strings
2022-04-13 22:48:36 -06:00
flip1995
71131351de
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
2022-04-08 10:06:10 +01:00
flip1995
6ab4508350
Allow raw lint descriptions
...
update_lints now understands raw strings in declare_clippy_lint
descriptions.
Co-authored-by: Alex Macleod <alex@macleod.io>
2022-04-07 18:05:46 +01:00
Jason Newcomb
d5ef542d37
Generate renamed lint test
2022-04-03 22:52:42 -04:00
Jason Newcomb
4227411513
Generate deprecated lints test
2022-04-03 08:54:37 -04:00
Jason Newcomb
b3f8415032
Remove regex dependency from clippy_dev
2022-04-01 23:18:47 -04:00
flip1995
fb0142ae41
Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup
2022-01-13 13:18:19 +01:00
Cameron Steffen
e2ce4f9462
Combine internal features in clippy_lints
2022-01-09 18:35:12 -06:00
flip1995
8fea1d94f3
Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup
2021-12-06 12:33:31 +01:00
xFrednet
63cb41098b
Manually add clippy::version
attribute to deprecated lints
2021-11-10 19:48:30 +01:00
xFrednet
23ed79260b
Document new clippy::version
attribute and make it mandatory
2021-11-10 19:48:30 +01:00
xFrednet
8565fc468e
Add clippy version to Clippy's lint list
2021-11-10 19:48:30 +01:00
flip1995
7631fc5d82
Merge commit '91496c2ac6abf6454c413bb23e8becf6b6dc20ea' into clippyup
2021-10-21 13:11:36 +02:00
Samuel E. Moelius III
75e9f8cbd6
Remove redundant to_string
s
2021-10-15 12:44:49 -04:00
flip1995
5cf4984872
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
2021-10-07 11:21:30 +02:00
Michael Wright
8f075ec961
Revert update_lints
module list generating code
...
This commit reverts the module list generation code to what it was
before the change to `include!` it and generates better output.
2021-10-07 06:42:21 +02:00
Manish Goregaokar
0e481b9452
Return to generating mod declarations in lib.rs
2021-10-06 00:12:38 -07:00
mikerite
debb1f0274
Fix comment in update_lints
...
Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com>
2021-09-30 05:11:39 +02:00
Michael Wright
20abbd93f9
Add test module for update_lints
2021-09-29 05:46:43 +02:00