about summary refs log tree commit diff
path: root/clippy_dev/src/main.rs
AgeCommit message (Collapse)AuthorLines
2020-01-30Deprecate util/dev in favor of cargo aliasPhilipp Hansch-11/+12
If you've been using `./util/dev` before, this now becomes `cargo dev`. The key part of this change is found in `.cargo/config`. This means one less shell script and a bit more cross-platform support for contributors.
2020-01-15Generate new lints easilyBrad Sherman-0/+52
- Add option in clippy_dev to automatically generate boilerplate code for adding new lints
2019-12-23a few small cleanupsLzu Tao-4/+0
2019-11-25Enable deny-warnings feature everywhere in CIflip1995-0/+2
2019-10-24Fix dogfood findingsflip1995-0/+1
2019-10-24Run ./util/dev fmtflip1995-3/+3
2019-10-24Update clippy_devMark Rousskov-5/+15
2019-07-07Fix crash on `dev --limit-stderr-length`Michael Wright-1/+1
2019-07-07Add dev fmt subcommandMichael Wright-8/+32
2019-06-14Use replace_region_in_file for creating the lint listflip1995-16/+17
2019-06-12make it pass dogfoodJane Lusby-2/+2
2019-06-12run rustfmtJane Lusby-1/+1
2019-06-12fix padding and put clippy someplacesJane Lusby-0/+1
2019-06-12show default lint levelsJane Lusby-0/+1
2019-06-12prelim arg parseJane Lusby-2/+2
2019-06-12move Lint static def into its own moduleJane Lusby-10/+3
2019-06-12switch to sorted usable lintsJane Lusby-5/+10
2019-06-12Update clippy_dev/src/main.rsJane Lusby-1/+1
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-06-12initial commit for help improvements on clippy-driverJane Lusby-0/+22
2019-05-16Add a stderr file length check to clippy_devPhilipp Hansch-2/+10
This adds a check to `clippy_dev` that enforces a maximum line count for `stderr` files. CI will fail if the line count is exceeded. It's currently set to `320` lines. Ideally this would be implemented in `compiletest-rs` but there are plans to move Rust's `compiletest` into the `compiletest-rs` repository and I don't want to do the work in `compiletest` twice. However, I also don't want to wait until the move is done, so I added the check to `clippy_dev` until it makes sense to add it to compiletest-rs. cc #2038
2019-03-08Improve Clippy dev helpMichael Wright-2/+4
+ Print help if no subcommand is supplied + Make a short version of `update_lints` help for the subcommand listing
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-11-27Run rustfmt on clippy_devflip1995-35/+53
2018-11-22rust-lang-nursery/rust-clippy => rust-lang/rust-clippyMatthias Krüger-2/+2
2018-11-05Fix dogfoodPhilipp Hansch-10/+10
2018-11-05Update println! formattingPhilipp Krones-1/+1
Co-Authored-By: phansch <dev@phansch.net>
2018-11-05RIIR update lints: Add check mode (update_lints.py rewrite complete)Philipp Hansch-18/+41
This finishes up the rewrite of `update_lints.py` in Rust. More specifically, this * adds the `--check` flag and handling to clippy_dev * tracks file changes over the different calls to `replace_region_in_file` * only writes changes to files if the `--check` flag is *not* used * runs `./util/dev update_lints --check` on CI instead of the old script * replaces usage of the `update_lints.py` script with an error `./util/dev update_lints` behaves 99% the same as the python script. The only difference that I'm aware of is an ordering change to `clippy_lints/src/lib.rs` because underscores seem to be sorted differently in Rust and in Python. :checkered_flag:
2018-11-03Fix typoPhilipp Hansch-1/+1
2018-11-03Improve clippy_dev help textPhilipp Hansch-2/+7
2018-11-03RIIR update lints: Generate lint group registrationsPhilipp Hansch-0/+30
2018-11-03RIIR update lints: Generate modules sectionPhilipp Hansch-0/+8
2018-10-31Fix dogfood and pedantic lintsPhilipp Hansch-1/+1
2018-10-31RIIR update lints: Generate deprecated lintsPhilipp Hansch-0/+8
The update script now also generates the 'register_removed' section in `clippy_lints/src/lib.rs`. Also, instead of using `let mut store ...`, I added a new identifier line so that the replacement will continue to work in case `let mut store ...` ever changes.
2018-10-17RIIR update_lints: Update changelog linksPhilipp Hansch-2/+10
This now also updates the link list at the bottom of the changelog.
2018-10-16RIIR update_lints: Replace lint count in README.mdPhilipp Hansch-0/+20
This allows the usage of `util/dev update_lints` which will write the new lint_count to the `README.md`.
2018-10-16Rename `active_lints` to `usable_lints`Philipp Hansch-3/+5
Because now `usable_lints` will also exclude internal lints.
2018-10-15sort_by -> sort_by_keyPhilipp Hansch-1/+1
2018-10-11Use `impl Iterator` in arg position in clippy_devPhilipp Hansch-1/+1
Small refactoring pulled out of work on #3266. This should make the methods a bit more flexible.
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-05Return impl Iterator instead of Vec<Lint>Philipp Hansch-2/+2
This makes the API of `lib.rs` a bit more flexible.
2018-09-03Refactor to use into_group_map from ItertoolsPhilipp Hansch-18/+10
2018-09-03update_lints rewrite: Add structure and --print-onlyPhilipp Hansch-0/+53