about summary refs log tree commit diff
path: root/clippy_lints/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2018-10-11Stabilize tool lintsOliver Scherer-1/+1
2018-10-08Fix cast_possible_truncation warningsDevon Hollowood-0/+1
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-10-04Reimplement the `fn_to_numeric_cast_with_truncation` lintPhilipp Hansch-0/+2
2018-10-03Reimplement the `fn_to_numeric_cast` lintPhilipp Hansch-0/+2
2018-10-02Reimplement the `map_clone` lint from scratchOliver Schneider-0/+4
2018-10-02relicensing: Remove map_cloneManish Goregaokar-4/+0
This removes the code added in https://github.com/rust-lang-nursery/rust-clippy/pull/427
2018-10-02relicensing: Remove fn_to_numeric_cast, fn_to_numeric_cast_with_truncationManish Goregaokar-4/+0
This removes the code added in https://github.com/rust-lang-nursery/rust-clippy/pull/2814
2018-09-26Implement unnecesary_filter_map lintMichael Wright-0/+2
2018-09-24Lint for chaining flatten after mapJane Lusby-0/+1
This change adds a lint to check for instances of `map(..).flatten()` that can be trivially shortened to `flat_map(..)` Closes #3196
2018-09-19mem_replace: apply update_lints tool.Jay Kickliter-0/+1
2018-09-19Add lint for `mem::replace(.., None)`.Jay Kickliter-0/+3
Suggest `Option::take()` as an alternative.
2018-09-15Add internal lint compiler_lint_functionsflip1995-2/+4
2018-09-15Reintroduce `extern crate` for non-Cargo dependencies.Eduard-Mihai Burtescu-4/+22
2018-09-13fix warnings about trivial casts, mostly {i,u}128 -> {i,u}128, such as ↵Matthias Krüger-1/+1
"i128::min_value() as i128"
2018-09-13Merge pull request #3085 from mikerite/revert-98dbcePhilipp Hansch-3/+1
Revert "Fix E0502 warnings"
2018-09-08clippy_lints: enable crate_visibility_modifier since it is used but no ↵Matthias Krüger-0/+1
longer part of 2018 edition. Fixes build with https://github.com/rust-lang/rust/pull/53999
2018-09-07Merge pull request #3129 from mipli/3091-numeric-typoOliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer-0/+2
Add lint for misstyped literal casting
2018-09-05Add lint for misstyped literal castingMichael A. Plikk-0/+2
2018-09-03Lint against needless uses of `collect()`Josh Holmer-0/+2
Handles cases of `.collect().len()`, `.collect().is_empty()`, and `.collect().contains()`. This lint is intended to be generic enough to be added to at a later time with other similar patterns that could be optimized. Closes #3034
2018-09-03iter conservation efforts: save the endangered .iter() and .into_iter()Josh Triplett-4/+2
Make explicit_iter_loop and explicit_into_iter_loop allow-by-default, so that people can turn them on if they want to enforce that style; avoid presenting them as *the* idiomatic Rust style, rather than just *a* style.
2018-09-03Make `Conf::default` availableNick Cameron-1/+1
Fixes RLS
2018-09-01Merge pull request #2977 from flip1995/tool_lintsManish Goregaokar-22/+23
Implement tool_lints
2018-08-29Merge pull request #3105 from frewsxcv/frewsxcv-privateManish Goregaokar-2/+2
Make clippy_lints::{utils,consts} modules private, remove unused items.
2018-08-29Implement backwards compatibility changes introduced by rust-lang/rust#53762flip1995-10/+10
2018-08-29Adapt codebase to the tool_lintsflip1995-2/+3
2018-08-29Switch to declare_tool_lint macroflip1995-10/+10
2018-08-29Switch to tool_lintsflip1995-20/+20
2018-08-29switch lint from 'style' to 'complexity'Corey Farwell-1/+1
2018-08-28New lint: Suggest `ptr.add([usize])` over `ptr.offset([usize] as isize)`.Corey Farwell-0/+4
First part of #3047.
2018-08-28Make clippy_lints::{utils,consts} modules private, remove unused items.Corey Farwell-2/+2
2018-08-26Merge pull request #3082 from mikerite/move-range-lintsPhilipp Krones-2/+3
Move some range lints to complexity
2018-08-26Revert "Fix E0502 warnings"Michael Wright-3/+1
This reverts commit 98dbce4fe4a6f63a4d1f9e2fdd6b2752ed097af4. The compiler no longer emits the warnings in #2982 with the original code.
2018-08-26Remove `iterator_find_map` feature attributeMichael Wright-1/+0
Closes #3083
2018-08-26Move some range lints to complexityMichael Wright-2/+3
Recategorize `range_plus_one` and `range_minus_one` to `complexity`. This moves `range_plus_one` out of the nursery as the inclusive range syntax is now stable. Both are moved to `complexity` as it is more consistent with other lints such as `int_plus_one`.
2018-08-24Merge pull request #3048 from goodmanjonathan/assign_opPhilipp Krones-1/+4
deprecate assign_ops lint
2018-08-24Add copy_iterator lint (#1534)Niklas Fiekas-0/+3
2018-08-23remove macro_vis_matcher feature gate since it is stable now.Matthias Krüger-1/+0
Warning was: warning: the feature `macro_vis_matcher` has been stable since 1.29.0 and no longer requires an attribute to enable --> src/lib.rs:4:12 | 4 | #![feature(macro_vis_matcher)] | ^^^^^^^^^^^^^^^^^ | = note: #[warn(stable_features)] on by default
2018-08-23Remove now stable tool_attributes featureflip1995-2/+0
2018-08-19Remove implied rust_2018 featureManish Goregaokar-1/+0
We are already on the edition and this feature is implied.
2018-08-16fix-2927: Update formattingMichael Wright-8/+8
2018-08-15Fix #2927Michael Wright-14/+18
2018-08-14Merge pull request #3026 from dwijnand/fxhashPhilipp Krones-0/+2
Add an internal lint for FxHashMap/FxHashSet
2018-08-14Move shadow_unrelated to pedanticDale Wijnand-1/+1
2018-08-14Avoid new_without_default_derive in DefaultHashTypesDale Wijnand-1/+1
2018-08-13deprecate assign_ops lintJonathan Goodman-1/+4
2018-08-12Add an internal lint for FxHashMap/FxHashSetDale Wijnand-0/+2
2018-08-08Merge pull request #2823 from flip1995/thingies_thingsOliver Schneider-1/+2
Replace cfg_attr(rustfmt... with rustfmt::skip
2018-08-06Fix #3000Michael Wright-1/+1
2018-08-02Replace cfg_attr(rustfmt... thingiesflip1995-1/+2