about summary refs log tree commit diff
path: root/clippy_lints/src/cognitive_complexity.rs
AgeCommit message (Collapse)AuthorLines
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
2019-07-06Rename hir::map::local_def_id_from_hir_id to local_def_idLzu Tao-1/+1
2019-06-20Fix warnings about unnecessary lifetime boundsLzu Tao-2/+2
Rustup https://github.com/rust-lang/rust/pull/61172
2019-06-12Adds lint for integer divisionThiago Arrais-1/+2
2019-05-17Prevent symbocalypseOliver Scherer-3/+2
2019-05-14Use symbols instead of stringsOliver Scherer-2/+3
2019-05-11Rename in_macro to in_macro_or_desugarManish Goregaokar-2/+2
2019-04-17Use lint pass macrosMatthew Kraai-10/+2
Fixes #3917.
2019-03-06Renamed: Cyclomatic Complexity -> Cognitive ComplexityFélix Fischer-0/+237
* Ran automatic naming update * Formalized rename of `cyclomatic_complexity` to `cognitive_complexity` ** Added the rename to `lib.rs` ** Added rename test * Added warning for deprecated key `cyclomatic_complexity_threshold` and tests for it * Added deprecation status for Clippy's builtin attribute * Updated tests for new builtin attribute renaming