Marcel Hellwig
9b55ea78c8
update dependencies
2022-05-23 09:28:49 +02:00
Jason Newcomb
f7378daf71
Add renamed lints to the changelog link list
2022-05-15 17:10:48 -04:00
ydah
4e5f69cc86
Tweak some words improved representation
...
This PR has implemented improved representation.
- Use "lib" instead of "lifb"
- Use "triggered" instead of "triggere"
- Use "blacklisted_name" instead of "blackisted_name"
- Use "stabilization" instead of "stabilisation"
- Use "behavior" instead of "behaviour"
- Use "target" instead of "tartet"
- Use "checked_add" instead of "chcked_add"
- Use "anti-pattern" instead of "antipattern"
- Use "suggestion" instead of "suggesttion"
- Use "example" instead of "exampel"
- Use "Cheat Sheet" instead of "Cheatsheet"
2022-05-13 14:20:25 +09:00
nsunderland1
fe84ff3360
New lint: [derive_partial_eq_without_eq]
2022-05-09 22:13:39 -07:00
Alex Macleod
905a951718
Pass through extra args in cargo dev lint
2022-05-06 15:36:46 +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
whodi
2be7ad5b39
initialization misspell
2022-04-15 14:19:00 -07:00
whodi
29ef80c78a
adding spell checking
2022-04-15 14:18:09 -07:00
Peter Jaszkowiak
67badbeef6
New lint format_add_strings
2022-04-13 22:48:36 -06:00
Yoav Lavi
ffde78b456
Allow passing --remove to cargo dev setup <SUBCOMMAND>
...
add missing args
unque name not needed
more descriptive help
formatting fixes
missing quote
2022-04-09 16:50:10 +02: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
bors
01ea6241ae
Auto merge of #8607 - Alexendoo:cargo-dev-lint-dir, r=flip1995,giraffate
...
Allow running `cargo dev lint` on a package directory
Allows you run the local clippy in a specified directory, e.g. allowing
```sh
# Lint a ui-cargo test
cargo dev lint tests/ui-cargo/wildcard_dependencies/fail
# Lint some other project
cargo dev lint ~/my-project
```
The `target` directory is set to a tempdir which isn't ideal for medium/large projects as it would be compiled from scratch. This is to avoid cached clippy messages where you `cargo dev lint dir`, change something in clippy, and run `cargo dev lint dir` again
changelog: Dev: `cargo dev lint` can now be run on a package directory
2022-04-05 09:33:38 +00: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
7025283f3e
Remove cargo_metadata dependency from clippy_dev
2022-04-01 23:18:47 -04:00
Jason Newcomb
b3f8415032
Remove regex dependency from clippy_dev
2022-04-01 23:18:47 -04:00
Alex Macleod
9a02386fd8
Allow running cargo dev lint on a package directory
2022-03-29 19:03:36 +01:00
Alex Macleod
04dce4aed4
Support cargo dev bless for tests with revisions
2022-02-06 13:00:17 +00:00
Jason Newcomb
7ed29c0051
Don't bless outdated files on windows
2022-01-21 23:13:09 -05:00
Cameron Steffen
3afbae33ab
Remove __CLIPPY_INTERNAL_TESTS env var
2022-01-17 12:37:05 -06:00
Cameron Steffen
d356fb9fa2
Use rustup which rustfmt
2022-01-10 17:04:38 -06:00
Cameron Steffen
7cf4f44e56
Fix output capturing
2022-01-10 15:11:25 -06:00
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_strings
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
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
Cameron Steffen
68b4a43e23
Remove stderr limit
2021-08-23 11:02:03 -05:00
Philipp Krones
464c85c8c1
Rollup merge of #7420 - xFrednet:7172-update-lint-documentation, r=flip1995
...
Update lint documentation to use markdown headlines
This PR updates all lint documentation to use markdown headlines. It additionally removed the *Known problems* section for lints without any problems. I've double-checked all automatic replacements, but a second pair of eyes is definitely appreciated!
I wasn't sure when you wanted to switch to the new metadata collection tomorrow, I therefore prepared this PR today. And that's it this is a standalone PR to keep the other related PRs reviewable.
changelog: none
r? `@flip1995`
cc: #7172
Note: This should be merged with the other metadata collection related PRs.
2021-07-28 15:06:27 +02:00
flip1995
c951a3c68d
Run cargo collect-metadata in cargo dev serve
2021-07-28 15:05:11 +02:00
xFrednet
12c61612f7
Update lint documentation to use markdown headlines
2021-07-28 14:31:59 +02:00