about summary refs log tree commit diff
path: root/clippy_dev/src
AgeCommit message (Collapse)AuthorLines
2025-02-17Add `cargo dev setup toolchain --standalone` (#14230)Philipp Krones-8/+39
Allows creating a toolchain that's independent of the local build, for example to make two separate toolchains with slight differences without requiring two checkouts of clippy changelog: none
2025-02-16Add `cargo dev setup toolchain --standalone`Alex Macleod-8/+39
2025-02-16Add `--allow-no-vcs` to `cargo dev dogfood --fix`Samuel Tardieu-2/+11
Some developers might prefer to use alternate VCS, such as Jujutsu, which are not detected by `cargo fix`. This forwards the `--allow-no-vcs` command line argument to `cargo fix`.
2025-02-11just_underscores_and_digits: ignore empty identMichael Howell-2/+7
Empty idents come from error recovery, and should imply that a better error has already been emitted.
2025-02-07Permit specifying a non-default edition when linting fileSamuel Tardieu-3/+6
`cargo dev lint /tmp/file.rs -- --edition 2021` will select edition 2021.
2025-02-06Use edition 2024 when running `cargo dev lint`Samuel Tardieu-1/+1
2025-02-06Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-23/+33
2025-01-28Move `format_push_string` and `format_collect` to pedantic (#13894)Catherine Flores-12/+16
Closes #11434 by moving `format_push_string` and `format_collect` to pedantic. changelog: Move `format_push_string` and `format_collect` to pedantic
2025-01-28Merge commit '51d49c1ae2785b24ef18a46ef233fc1d91844666' into ↵Philipp Krones-2/+2
clippy-subtree-update
2025-01-26remove `clippy::double_neg`Kalle Wachsmuth-2/+2
2025-01-19Apply `unnecessary_semicolon` to Clippy sourcesSamuel Tardieu-2/+2
2025-01-14Address review commentsSamuel Moelius-14/+16
2025-01-09Merge commit '19e305bb57a7595f2a8d81f521c0dd8bf854e739' into ↵Philipp Krones-3/+3
clippy-subtree-update
2024-12-29Move `format_push_string` and `format_collect` to pedanticSamuel Moelius-0/+2
2024-12-26Make "all fields are shorthand" requirement configurableSamuel Moelius-3/+3
Handle field attributes in suggestions Fix adjacent code Address review comments https://github.com/rust-lang/rust-clippy/pull/13737#discussion_r1861352124 Address all review comments but one This comment is not yet addressed: https://github.com/rust-lang/rust-clippy/pull/13737#discussion_r1874544907 `initializer_suggestions` -> `lint_inconsistent_struct_field_initializers`
2024-11-28Merge commit 'ff4a26d442bead94a4c96fb1de967374bc4fbd8e' into ↵Philipp Krones-156/+254
clippy-subtree-update
2024-11-19Add `cargo dev release` subcommandPhilipp Krones-1/+47
Currently this only provides the feature to auto-update the versions in the `Cargo.toml` files. With the move to Josh, a command to get beta and stable release commits will be added.
2024-11-19Add `cargo dev sync` subcommandPhilipp Krones-1/+53
Currently this only provides the feature to auto-update the nightly version in the `rust-toolchain` file and the `clippy_utils/README.md` file. The actual sync to and from the Rust repo will be added with the move to Josh.
2024-11-18Introduce `utils` mod in clippy_devPhilipp Krones-154/+154
There was some dependence between the different subcommands of clippy_dev. And this dependence will increased with the introduction of the sync and release subcommands. This moves the common functions to a `utils` module, to decouple the other modules.
2024-11-15Rename all clippy_config::msrvs -> clippy_utils::msrvsPhilipp Krones-2/+2
2024-11-14Merge commit '786fbd6d683933cd0e567fdcd25d449a69b4320c' into ↵Philipp Krones-1/+1
clippy-subtree-update
2024-11-12new lint `unnecessary_map_or`Jacherr-1/+1
2024-11-07Merge commit 'f712eb5cdccd121d0569af12f20e6a0fabe4364d' into ↵Philipp Krones-8/+20
clippy-subtree-update
2024-11-07Fix cargo dev update_lintsPhilipp Krones-7/+13
Now that lints can add @eval_always at the end of their definition, the lint declaration might not end right after the description. The `update_lints` command can skip everything that comes after that.
2024-10-30Watch `tests/compile-test.rs` in `cargo dev serve`Alex Macleod-1/+7
2024-10-18Merge commit 'a109190d7060236e655fc75533373fa274ec5343' into ↵Philipp Krones-13/+15
clippy-subtree-update
2024-10-11Auto merge of #13269 - GuillaumeGomez:rewrite-lints-page, r=Alexendoobors-1/+3
Rewrite lints page This PR has multiple goals: * Make lints page to work without needing a web server by removing the json file. * Prepare the field to also make the page work with JS (not done in this PR but should be straightforward). * Remove angular dependency. r? `@Alexendoo` changelog: make lint page work without web server
2024-10-07Apply updated needless_raw_strings to Clippy sourcesSamuel Tardieu-12/+12
2024-09-24Merge commit '7901289135257ca0fbed3a5522526f95b0f5edba' into ↵Philipp Krones-21/+16
clippy-subtree-update
2024-09-22Update `cargo dev serve` command to look over the correct filesGuillaume Gomez-1/+3
2024-09-22Generate lint list in HTML directly instead of JSGuillaume Gomez-1/+1
2024-09-22FormattingPhilipp Krones-20/+14
2024-08-27new lint: `zombie_processes`y21-1/+2
2024-08-24Merge commit '0f8eabd6231366bfc1bb1464601297c2d48f8f68' into clippyupJason Newcomb-1/+2
2024-08-24Merge branch 'master' into rustupJason Newcomb-3/+4
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-2/+2
This lets us compare a `Token` with a `TokenKind`. It's used a lot, but can be used even more, avoiding the need for some `.kind` uses.
2024-08-12Replace the metadata collector with testsAlex Macleod-1/+1
2024-08-08Merge commit 'cb806113e0f83a8f9b47d35b453b676543bcc40e' into ↵Philipp Krones-345/+392
clippy-subtree-update
2024-08-06Auto merge of #12150 - ithinuel:add_misleading_use_of_ok, r=y21bors-5/+5
Add lint for `unused_result_ok` This PR adds a lint to capture the use of `expr.ok();` when the result is not _really_ used. This could be interpreted as the result being checked (like it is with `unwrap()` or `expect`) but it actually only ignores the result. `let _ = expr;` expresses that intent better. This was also mentionned in #8994 (although not being the main topic of that issue). changelog: [`misleading_use_of_ok`]: Add new lint to capture `.ok();` when the result is not _really_ used.
2024-08-06Use `-D warnings` instead of `deny-warnings` feature.Jason Newcomb-2/+0
2024-08-05Make `cargo dev deprecate` require a reasonJason Newcomb-9/+3
2024-08-05Store deprecated lints as an array of tuples.Jason Newcomb-225/+97
Remove legacy deprecations. Remove "View Source" link for deprecated lints.
2024-07-29Remove some miscellaneous `#[allow]`sAlex Macleod-7/+0
2024-07-29Add lint for `unused_result_ok`Wilfried Chauveau-5/+5
2024-07-28Sort the config list using `dev fmt`Jason Newcomb-101/+291
2024-07-25Merge commit '37f4fbb92913586b73a35772efd00eccd1cbbe13' into ↵Philipp Krones-4/+4
clippy-subtree-update
2024-07-17Refactor for using config values:Jason Newcomb-4/+4
* 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-11Merge commit 'b794b8e08c16517a941dc598bb1483e8e12a8592' into ↵Philipp Krones-2/+2
clippy-subtree-update
2024-06-21fix wrong msrv import in `new_lint` templateJ-ZhengLi-2/+2
2024-05-30Merge commit 'c9139bd546d9cd69df817faeab62c5f9b1a51337' into ↵Philipp Krones-1/+6
clippy-subtree-update