Cameron Steffen
e2ce4f9462
Combine internal features in clippy_lints
2022-01-09 18:35:12 -06:00
Alex Macleod
507030f7c4
Run rustfmt on batches of multiple files
2021-11-12 21:22:09 +00:00
Jason Newcomb
24d561f008
Use rustfmt version from rust-toolchain
2021-11-11 21:14:40 -05:00
xFrednet
94bc0a1c78
Address review feedback
2021-11-10 20:14:02 +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
Alex Macleod
b5bae09184
Add cargo dev lint
to manually run clippy on a file
...
I found the manual run command really useful, this makes it a bit easier
to type
2021-11-06 17:20:15 +00:00
Alex Macleod
bd778e216d
Register the generated lints from cargo dev new_lint
2021-10-26 19:05:29 +01:00
Samuel E. Moelius III
75e9f8cbd6
Remove redundant to_string
s
2021-10-15 12:44:49 -04:00
Michael Wright
7d9b21b90b
Use indoc
for formatting
2021-10-09 05:58:05 +02:00
Michael Wright
b8782257ae
Fix clippy::too-many-arguments
violation
2021-10-09 05:58:05 +02:00
Michael Wright
da76c06209
Add --msrv
option to new_lint
command
2021-10-09 05:58:05 +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
707494eca9
Merge remote-tracking branch 'upstream/master' into rustup
2021-09-28 10:52:31 +01:00
Matthias Krüger
c3515c301d
bump clippy crates to edition 2021
2021-09-25 22:40:58 +02:00
Samuel E. Moelius III
43ed2065cc
Update dependencies
2021-09-09 07:47:16 -04:00
Cameron Steffen
1074bad06d
Rename test_build_base to test
2021-09-08 14:07:03 -05:00
Cameron Steffen
ecaf7acd4f
Use relative path for test builds
2021-09-08 14:07:03 -05:00
Cameron Steffen
e3b171dcf0
Use relative exe paths
2021-09-08 14:07:03 -05:00
flip1995
091ed44b50
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
2021-09-08 16:31:47 +02:00
Cameron Steffen
68b4a43e23
Remove stderr limit
2021-08-23 11:02:03 -05:00
Jade
6c2199ea9f
rfc3052: Remove authors field from Cargo manifests
...
Since RFC 3052 soft deprecated the authors field anyway, hiding it from
crates.io, docs.rs, and making Cargo not add it by default, and it is
not generally up to date/useful information, we should remove it from
crates in this repo.
2021-07-29 14:56:05 -07:00
flip1995
2b20f49841
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
2021-07-29 12:16:06 +02:00
flip1995
ebe52869a3
Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' into clippyup
2021-07-01 18:17:38 +02:00
flip1995
97705b7ea6
Merge commit '9e3cd88718cd1912a515d26dbd9c4019fd5a9577' into clippyup
2021-05-20 13:07:57 +02:00
Joshua Nelson
af0dde24b9
Implement x.py test src/tools/clippy --bless
...
- Add clippy_dev to the rust workspace
Before, it would give an error that it wasn't either included or
excluded from the workspace:
```
error: current package believes it's in a workspace when it's not:
current: /home/joshua/rustc/src/tools/clippy/clippy_dev/Cargo.toml
workspace: /home/joshua/rustc/Cargo.toml
this may be fixable by adding `src/tools/clippy/clippy_dev` to the `workspace.members` array of the manifest located at: /home/joshua/rustc/Cargo.toml
Alternatively, to keep it out of the workspace, add the package to the `workspace.exclude` array, or add an empty `[workspace]` table to the package's manifest.
```
- Change clippy's copy of compiletest not to special-case
rust-lang/rust. Using OUT_DIR confused `clippy_dev` and it couldn't find
the test outputs. This is one of the reasons why `cargo dev bless` used
to silently do nothing (the others were that `CARGO_TARGET_DIR` and
`PROFILE` weren't set appropriately).
- Run clippy_dev on test failure
I tested this by removing a couple lines from a stderr file, and they
were correctly replaced.
- Fix clippy_dev warnings
2021-04-27 16:57:29 +00:00
flip1995
f6d1f368db
Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
2021-04-08 17:50:13 +02:00
flip1995
9f6b5de7de
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
2021-03-25 19:29:11 +01:00
flip1995
f2f2a005b4
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
2021-03-12 15:30:50 +01:00
flip1995
f64149dd04
Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup
2021-02-25 11:25:22 +01:00
flip1995
8b9f4a0d34
Merge commit '70c0f90453701e7d6d9b99aaa1fc6a765937b736' into clippyup
2021-02-11 15:04:38 +01:00
Manish Goregaokar
c8cb90abbd
Merge commit '3e4179766bcecd712824da04356621b8df012ea4' into sync-from-clippy
2021-02-02 20:43:30 -08:00
flip1995
ac912be984
Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyup
2021-01-30 18:06:34 +01:00
flip1995
488153ff2f
Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup
2021-01-15 10:56:44 +01:00
flip1995
ba4bf4f9c5
Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup
2021-01-02 16:29:43 +01:00
flip1995
f03edfd7a1
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
2020-12-20 17:19:49 +01:00
flip1995
8eca423ea1
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
2020-12-06 15:01:03 +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
flip1995
34244190d4
Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup
2020-11-05 14:29:48 +01:00
Eduardo Broto
cdb555f4fc
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
2020-10-23 22:16:59 +02:00
flip1995
fbf2430f02
Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup
2020-10-09 12:45:29 +02:00
flip1995
d1f9cad102
Merge commit 'e636b88aa180e8cab9e28802aac90adbc984234d' into clippyup
2020-09-24 14:49:22 +02:00
flip1995
282c59820b
Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup
2020-08-28 18:43:25 +02:00