Commit Graph

53 Commits

Author SHA1 Message Date
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_strings 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
Michael Wright 3f804ca6d3 Move update_lints specific code out of lib 2021-09-29 05:46:43 +02:00
Michael Wright e6747df5cd Fix lint register code format
Also change the generation functions to return `String` instead of
`Vec<String>`. This makes sense now as the updates aren't line oriented
anymore.
2021-09-29 05:46:39 +02:00
Michael Wright 50ea370619 Move code generated by update_lints to includes 2021-09-29 05:43:25 +02:00
flip1995 ebe52869a3 Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' into clippyup 2021-07-01 18:17:38 +02:00
Cameron Steffen 7e21db5b5c Add suspicious group 2021-06-25 08:53:29 -05:00
flip1995 8eca423ea1 Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup 2020-12-06 15:01:03 +01:00
Matthias Krüger 958e2e20de fix clippy-dev update_lints 2020-11-29 21:07:47 +01:00
flip1995 03f04314dd clippy: Remove now obsolete lintlist module
Also stop updating the lintlist module in clippy_dev update_lints
2020-11-24 10:37:31 +01:00
Eduardo Broto cdb555f4fc Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup 2020-10-23 22:16:59 +02:00
flip1995 98c30fea8c Build lint lists once and the reuse them to update files 2020-04-03 21:19:32 +02:00
flip1995 da679825e0 Get rid of Lint::is_internal method 2020-04-03 21:19:32 +02:00