about summary refs log tree commit diff
path: root/clippy_lints/src/main_recursion.rs
AgeCommit message (Collapse)AuthorLines
2024-10-13Check MethodCall/Call arg count earlier or at allGnomedDev-1/+1
2024-04-01fix fallout from previous commity21-1/+1
2023-11-25Use absolute path for `declare_tool_lint` in `declare_clippy_lint`Alex Macleod-1/+1
2023-11-10Clean up after if chain removalAlex Macleod-3/+2
2023-11-10Run `if-to-let-chain clippy*/**/*.rs`Alex Macleod-15/+13
https://github.com/Alexendoo/if-to-let-chain
2022-05-13Tweak some words improved representationydah-1/+1
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"
2021-11-10Added `clippy::version` attribute to all normal lintsxFrednet-0/+1
So, some context for this, well, more a story. I'm not used to scripting, I've never really scripted anything, even if it's a valuable skill. I just never really needed it. Now, `@flip1995` correctly suggested using a script for this in `rust-clippy#7813`... And I decided to write a script using nushell because why not? This was a mistake... I spend way more time on this than I would like to admit. It has definitely been more than 4 hours. It shouldn't take that long, but me being new to scripting and nushell just wasn't a good mixture... Anyway, here is the script that creates another script which adds the versions. Fun... Just execute this on the `gh-pages` branch and the resulting `replacer.sh` in `clippy_lints` and it should all work. ```nu mv v0.0.212 rust-1.00.0; mv beta rust-1.57.0; mv master rust-1.58.0; let paths = (open ./rust-1.58.0/lints.json | select id id_span | flatten | select id path); let versions = ( ls | where name =~ "rust-" | select name | format {name}/lints.json | each { open $it | select id | insert version $it | str substring "5,11" version} | group-by id | rotate counter-clockwise id version | update version {get version | first 1} | flatten | select id version); $paths | each { |row| let version = ($versions | where id == ($row.id) | format {version}) let idu = ($row.id | str upcase) $"sed -i '0,/($idu),/{s/pub ($idu),/#[clippy::version = "($version)"]\n pub ($idu),/}' ($row.path)" } | str collect ";" | str find-replace --all '1.00.0' 'pre 1.29.0' | save "replacer.sh"; ``` And this still has some problems, but at this point I just want to be done -.-
2021-09-30Do not pass hir::Crate to lints.Camille GILLOT-2/+2
2021-07-29Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyupflip1995-5/+5
2021-03-25Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyupflip1995-3/+4
2021-03-09Remove hir::Crate::attrs.Camille GILLOT-2/+2
2021-01-30Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyupflip1995-2/+1
2020-07-03Use 'tcx for references to AccessLevels wherever possible.Eduard-Mihai Burtescu-3/+3
2020-04-18Add an Option<Span> argument to span_lint_and_help.xiongmao86-0/+1
2020-01-27Rename `span_help_and_lint` to `span_lint_and_help`Yuki Okushi-2/+2
2020-01-24don't fire empty_loop in no_std cratesMikhail Babenko-10/+2
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-1/+1
2020-01-04Rustup to https://github.com/rust-lang/rust/pull/67853Philipp Hansch-1/+1
Specifically caused by https://github.com/rust-lang/rust/pull/67786
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-1/+1
2019-12-22Add <'_> where necessaryflip1995-1/+1
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-11-07Rustup to rustc 1.40.0-nightly (7a76fe76f 2019-11-07)Manish Goregaokar-1/+8
2019-09-27Rustup to rust-lang/rust#64813flip1995-2/+2
2019-08-05Move expression check to LateLintPassVincent Dal Maso-24/+31
Changes: - Move from EarlyLintPass - Fix entrypoint check with function path def_id.
2019-08-05Add recursion check on main functionVincent Dal Maso-0/+55
Changes: - Add MainRecursion lint to clippy - Check for no-std setup fixes #333