about summary refs log tree commit diff
path: root/clippy_dev
AgeCommit message (Collapse)AuthorLines
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-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/+54
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-12new lint `unnecessary_map_or`Jacherr-1/+1
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-15bump opener to sync with rustklensy-1/+1
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-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 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-348/+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-5/+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
2024-05-30Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-1/+6
2024-05-23For restriction lints, replace “Why is this bad?” with “Why restrict ↵Kevin Reid-1/+6
this?” The `restriction` group contains many lints which are not about necessarily “bad” things, but style choices — perhaps even style choices which contradict conventional Rust style — or are otherwise very situational. This results in silly wording like “Why is this bad? It isn't, but ...”, which I’ve seen confuse a newcomer at least once. To improve this situation, this commit replaces the “Why is this bad?” section heading with “Why restrict this?”, for most, but not all, restriction lints. I left alone the ones whose placement in the restriction group is more incidental. In order to make this make sense, I had to remove the “It isn't, but” texts from the contents of the sections. Sometimes further changes were needed, or there were obvious fixes to make, and I went ahead and made those changes without attempting to split them into another commit, even though many of them are not strictly necessary for the “Why restrict this?” project.
2024-05-03Bump clap version -> 4.4Philipp Krones-1/+1
Same version as most other crates in rustc are using
2024-05-03Type safe CLI implementation for clippy-devPhilipp Krones-328/+265
Use the derive feature of `clap` to generate CLI of clippy-dev. Adding new commands will be easier in the future and we get better compile time checking through exhaustive matching.
2024-04-16Add `cargo dev setup toolchain`Alex Macleod-17/+117
2024-04-01Set `RUSTC_ICE=0` in uitests and `cargo dev lint`xFrednet-0/+4
2024-03-22Enable unused_qualifications lintAlex Macleod-4/+9
2024-03-09Update `cargo dev update_lints` command to fix new warning emitted by ↵Guillaume Gomez-0/+2
`duplicated_attributes`
2024-02-25bump itertools to 0.12klensy-1/+1
2024-02-20Stabilize `LazyCell` and `LazyLock` (`lazy_cell`)Peter Jaszkowiak-1/+0
2024-05-21Merge commit '2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2' into ↵Philipp Krones-328/+265
clippy-subtree-update
2024-04-18Merge commit 'ca3b393750ee8d870bf3215dcf6509cafa5c0445' into ↵Philipp Krones-17/+117
clippy-subtree-update
2024-04-04Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into ↵Philipp Krones-4/+13
clippy-subtree-update
2024-03-21Merge commit '9d6f41691ed9dbfaec2a2df2661c42451f2fe0d3' into ↵Philipp Krones-0/+2
clippy-subtree-update
2024-02-27Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into ↵Philipp Krones-1/+1
clippy-subtree-update
2024-01-26Rollup merge of #120345 - flip1995:clippy-subtree-update, r=ManishearthMatthias Krüger-4/+3
Clippy subtree update r? `@Manishearth` Closes https://github.com/rust-lang/rust-clippy/issues/12148
2024-01-25Merge commit '66c29b973b3b10278bd39f4e26b08522a379c2c9' into ↵Philipp Krones-4/+3
clippy-subtree-update
2024-01-25Rename the unescaping functions.Nicholas Nethercote-1/+1
`unescape_literal` becomes `unescape_unicode`, and `unescape_c_string` becomes `unescape_mixed`. Because rfc3349 will mean that C string literals will no longer be the only mixed utf8 literals.
2024-01-11Merge commit '26ac6aab023393c94edf42f38f6ad31196009643'Philipp Krones-1/+1