about summary refs log tree commit diff
path: root/clippy_lints/src/cognitive_complexity.rs
AgeCommit message (Collapse)AuthorLines
2023-12-01Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-syncPhilipp Krones-1/+1
2023-11-02Minimize `pub` usage in `source_map.rs`.Nicholas Nethercote-2/+1
Most notably, this commit changes the `pub use crate::*;` in that file to `use crate::*;`. This requires a lot of `use` items in other crates to be adjusted, because everything defined within `rustc_span::*` was also available via `rustc_span::source_map::*`, which is bizarre. The commit also removes `SourceMap::span_to_relative_line_string`, which is unused.
2023-03-21Use local key in providersMichael Goulet-1/+1
2023-01-28Take a LocalDefId in hir::Visitor::visit_fn.Camille GILLOT-3/+3
2022-11-21Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyupPhilipp Krones-6/+15
2022-10-06Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyupPhilipp Krones-36/+28
2022-06-04Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyupPhilipp Krones-1/+1
2022-05-21Merge 'rust-clippy/master' into clippyupxFrednet-2/+2
2022-04-23Stop visiting visibility.Camille GILLOT-1/+1
2022-01-16Fix Visitor::NestedFilter in ClippyCameron Steffen-7/+1
2021-12-06Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyupflip1995-0/+1
2021-10-02Make diangostic item names consistentCameron Steffen-1/+1
2021-09-10Keep a parent LocalDefId in SpanData.Camille GILLOT-1/+1
2021-07-29Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyupflip1995-4/+8
2021-04-08Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyupflip1995-1/+1
2021-03-25Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyupflip1995-2/+4
2021-03-09Do not store attrs in FnKind.Camille GILLOT-2/+2
2021-01-30Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyupflip1995-4/+4
2021-01-07Reintroduce hir::ExprKind::IfCaio-0/+3
2020-11-05Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyupflip1995-3/+3
2020-07-17Rename TypeckTables to TypeckResults.Valentin Lazureanu-1/+1
2020-07-03Use 'tcx for references to AccessLevels wherever possible.Eduard-Mihai Burtescu-6/+6
2020-06-26rustc_lint: only query `typeck_tables_of` when a lint needs it.Eduard-Mihai Burtescu-1/+1
2020-04-24rustup https://github.com/rust-lang/rust/pull/71215/Matthias Krüger-1/+1
2020-04-18Add an Option<Span> argument to span_lint_and_help.xiongmao86-0/+1
2020-04-12cargo dev fmtPhilipp Hansch-1/+1
2020-04-12Make use of Option/Result diagnostic itemsPhilipp Hansch-2/+2
2020-04-08Move cognitive_complexity to nurseryDavid Tolnay-1/+1
2020-03-30rustup https://github.com/rust-lang/rust/pull/70536Matthias Krüger-1/+1
2020-03-16rustup https://github.com/rust-lang/rust/pull/68944Matthias Krüger-1/+1
2020-03-01Rustup to rust-lang/rust#69592Yuki Okushi-1/+1
2020-02-21Fix falloutflip1995-1/+1
2020-01-27Rename `span_help_and_lint` to `span_lint_and_help`Yuki Okushi-2/+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-09Rustup to rust-lang/rust#67979Yuki Okushi-2/+5
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-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-30Rustup to rust-lang/rust#66942Yuki Okushi-2/+2
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-1/+1
2019-12-22Add <'_> where necessaryflip1995-2/+2
2019-12-21Reduce cognitive complexity lint spanKrishna Veera Reddy-8/+39
Currently the cognitive complexity lint spans the entire function body making it really difficult to read and refactor the code in editors. To fix this we reduce the lint span to the function name.
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-10-14new lints around `#[must_use]` fnsAndre Bogus-0/+1
`must_use_unit` lints unit-returning functions with a `#[must_use]` attribute, suggesting to remove it. `double_must_use` lints functions with a plain `#[must_use]` attribute, but which return a type which is already `#[must_use]`, so the attribute has no benefit. `must_use_candidate` is a pedantic lint that lints functions and methods that return some non-unit type that is not already `#[must_use]` and suggests to add the annotation.
2019-09-27Rustup to rust-lang/rust#64813flip1995-1/+1
2019-09-25arm.pats -> arm.patManish Goregaokar-2/+1
2019-09-08Remove use of the HIR CFGMatthew Jasper-131/+25
2019-08-29Improve cognitive_complexity lint's warning.Victor Polevoy-1/+5
Adds the value of complexity limit set for the lint to the warning. Fixes #4466 Signed-off-by: Victor Polevoy <fx@thefx.co>
2019-08-19Remove in_macro_or_desugarKRAAI, MATTHEW [VISUS]-2/+2