about summary refs log tree commit diff
path: root/clippy_dev/src
AgeCommit message (Collapse)AuthorLines
2019-07-11Avoid rustfmt bug on WindowsMichael Wright-1/+5
2019-07-07Fix crash on `dev --limit-stderr-length`Michael Wright-1/+1
2019-07-07Add dev fmt subcommandMichael Wright-18/+208
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-17Collect at callsite, use eprintln instead of printlnPhilipp Hansch-4/+3
2019-05-16Add a stderr file length check to clippy_devPhilipp Hansch-2/+65
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-04-15Remove clippy::default_hash_types internal lintflip1995-2/+0
2019-03-10Various cosmetic improvements.Alexander Regueiro-2/+2
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-03-05move lint documentation into macro invocationsAndy Russell-3/+5
2019-02-10removing redundant closures in the whole projectGrzegorz-2/+2
2019-01-25dependencies: update itertools from 0.7 to 0.8Matthias Krüger-10/+15
2019-01-08Remove all copyright license headersPhilipp Hansch-18/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-25fix a couple of ftrivial typos (NFC).Matthias Krüger-2/+2
2018-11-27Run rustfmt on clippy_devflip1995-115/+181
2018-11-22rust-lang-nursery/rust-clippy => rust-lang/rust-clippyMatthias Krüger-3/+3
2018-11-05Fix dogfoodPhilipp Hansch-10/+10
2018-11-05Update println! formattingPhilipp Krones-1/+1
Co-Authored-By: phansch <dev@phansch.net>
2018-11-05Fix false positive in check mode caused by `gen_deprecated`Philipp Hansch-39/+50
`gen_deprecated` should never have created the string with linebreaks. Using a single string broke the check because the changed lines were different.
2018-11-05RIIR update lints: Add check mode (update_lints.py rewrite complete)Philipp Hansch-32/+68
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-03Merge #3399bors[bot]-4/+109
3399: RIIR update lints: Generate modules section and lint group sections r=flip1995 a=phansch This adds the last missing parts of the generating code. cc #2882 Co-authored-by: Philipp Hansch <dev@phansch.net>
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/+58
2018-11-03Test clippy_dev on CI and fix testPhilipp Hansch-3/+3
2018-11-03RIIR update lints: Generate modules sectionPhilipp Hansch-2/+44
2018-11-02clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase.Matthias Krüger-1/+0
Turn on pedantic lints in dogfood and base tests. needless_bool: fix clippy::items-after-statements redundant_pattern_matching: fix clippy::similar-names mods.rs: fix clippy::explicit-iter-loop returns.rs: allow clippy::cast-possible-wrap Fixes #3172
2018-10-31Fix dogfood and pedantic lintsPhilipp Hansch-19/+21
2018-10-31RIIR update lints: Generate deprecated lintsPhilipp Hansch-0/+41
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-3/+41
This now also updates the link list at the bottom of the changelog.
2018-10-16Fix dogfoodPhilipp Hansch-1/+2
`expect_fun_call` causes a false-positive, so I disabled it for now.
2018-10-16RIIR update_lints: Replace lint count in README.mdPhilipp Hansch-0/+139
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-9/+13
Because now `usable_lints` will also exclude internal lints.
2018-10-15Add comment on WalkDir vs. fs::read_dirPhilipp Hansch-0/+2
2018-10-15sort_by -> sort_by_keyPhilipp Hansch-1/+1
2018-10-15Some more documentation for clippy_devPhilipp Hansch-0/+2
2018-10-15Use `WalkDir` to also gather from subdirectoriesPhilipp Hansch-4/+5
`fs::read_dir` does not recurse into subdirectories.
2018-10-11Stabilize tool lintsOliver Scherer-1/+1
2018-10-11Use `impl Iterator` in arg position in clippy_devPhilipp Hansch-4/+4
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/+20
2018-09-26fix all clippy::use_self pedantic warnings found in the codebase.Matthias Krüger-4/+4
cc #3172