about summary refs log tree commit diff
path: root/clippy_lints/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2019-11-23Merge remote-tracking branch 'upstream/zst-offset' into rollup-new-lintsflip1995-0/+3
2019-11-22Remove never_type featureflip1995-1/+0
Stablized in rust-lang/rust#65355
2019-11-20Implement if_same_cond_fn lintIgor Aleksanov-0/+2
Run ./util/dev Revert changelog entry Rename lint to same_functions_in_if_condition and add a doc example Add testcases with different arg in fn invocation
2019-11-15New lint: zst_offsetAndre Bogus-0/+3
2019-11-15register new lint "tabs in doc comments" and update readmeFlorian Rohm-0/+5
2019-11-13Add new lint: large stack arrayAreredify-0/+5
added documentation minor style fix change as to ::from add ignore to doc include threshold in lint message/make suggestion more apparent/use Scalar api instead of matching style fix shange snippet_opt to snippet
2019-11-12don't warn on CRLF in `with_newline` lintsAndy Russell-0/+2
2019-11-11Auto merge of #4801 - mikerite:to_digit_is_some, r=flip1995bors-0/+5
To digit is some Add a lint that recommends replacing `to_digit().is_some()` with `is_digit()` on `char`s changelog: Add lint `to_digit_is_some`
2019-11-11Fix breakage due to rust-lang/rust#65324Michael Wright-0/+2
2019-11-10Add `to_digit_is_some` lintMichael Wright-0/+5
2019-11-07Update clippy_lints/src/lib.rsHeinz N. Gies-1/+1
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-11-07Update clippy_lints/src/lib.rsHeinz N. Gies-1/+1
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-11-07Simplify dentry point detectionHeinz N. Gies-0/+1
2019-11-07Update lintsHeinz N. Gies-0/+1
2019-11-07Add lint for exitHeinz N. Gies-0/+2
2019-11-07Deprecate `into_iter_on_array` lintflip1995-3/+4
This lint was uplifted/reimplemented by rustc. Rustup to rust-lang/rust#66017
2019-10-28rustup https://github.com/rust-lang/rust/pull/65792/Matthias Krüger-2/+0
2019-10-26Move manual_mul_add into nurseryflip1995-2/+1
2019-10-24Fix dogfood findingsflip1995-25/+25
2019-10-24Fix testsflip1995-1/+2
2019-10-24Run ./util/dev fmtflip1995-3/+3
2019-10-24Update clippy for latest rustc changesMark Rousskov-795/+1122
Specifically, this revises the clippy integration to utilize a new callback to register its lints, as the prior editing of lint store in Session is no longer possible.
2019-10-22Add lint for debug_assert_with_mut_callMarcel Hellwig-0/+4
This lint will complain when you put a mutable function/method call inside a `debug_assert` macro, because it will not be executed in release mode, therefore it will change the execution flow, which is not wanted.
2019-10-18Split out testsHeinz N. Gies-0/+2
2019-10-18Add todo and testsHeinz N. Gies-0/+3
2019-10-17Auto merge of #4683 - HMPerson1:inefficient_to_string, r=Manishearthbors-0/+2
Add `inefficient_to_string` lint Closes #4586 changelog: Add `inefficient_to_string` lint, which checks for calling `to_string` on `&&str`, which would bypass the `str`'s specialization
2019-10-17syntax::ext -> syntax_expandManish Goregaokar-0/+2
2019-10-16Add `inefficient_to_string` lintHMPerson1-0/+2
2019-10-15Change lint to be pedanticJames Wang-2/+1
2019-10-15Add a new lint for unused selfJames Wang-0/+4
2019-10-14new lints around `#[must_use]` fnsAndre Bogus-1/+6
`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-10-09New lint: suspicious_unary_op_formattingNikos Filippakis-0/+2
Lints when, on the RHS of a BinOp, there is a UnOp without a space before the operator but with a space after (e.g. foo >- 1). Signed-off-by: Nikos Filippakis <nikolaos.filippakis@cern.ch>
2019-10-08Addresses Issue #4001Ethan Lam-0/+4
Fixed typo Fixes lint name and uses appropriate linting suggestion changed lint help message Added autofixable test Added Autofixable Test Removed Broken Autofixable File updated lints Generated Autofixable/Nonfixable Test Cases Changed Suggestion Applicability Updated Lint Count
2019-10-08Auto merge of #4611 - rust-lang:doc-visibility, r=flip1995bors-1/+1
account for doc visibility This fixes #4608. Also I noticed that the lint failed to look at trait and impl items. There's a small bit of fallout in the code, too, but not enough to warrant its own commit. changelog: check docs of trait items and impl items, also make `missing_safety_doc` account for visibility
2019-10-08Auto merge of #4592 - rust-lang:transmute-collection, r=flip1995bors-0/+2
New lint: `unsound_collection_transmute` changelog: Add `unsound_collection_transmute` lint This fixes #4515
2019-10-03extern rustc_indexShotaro Yamada-0/+2
2019-10-03Fix false-positive of redundant_clone and move to clippy::perfShotaro Yamada-1/+2
2019-10-02New lint: unsound_collection_transmuteAndre Bogus-0/+2
2019-10-02account for doc visibilityAndre Bogus-1/+1
2019-10-02New lint: needless_doc_mainAndre Bogus-0/+2
2019-09-24Add a new lint for comparison chainsJames Wang-0/+4
2019-09-22Merge branch 'master' into unneeded_wildcard_patternMichael Wright-2/+5
2019-09-20new lint: mem-replace-with-uninitAndre Bogus-0/+2
2019-09-19Auto merge of #4539 - jolson88:cast-lossless-pedantic, r=flip1995bors-2/+1
Changes cast-lossless to a pedantic lint As discussed in #4528, this moves the cast-lossless lint from `all` to `pedantic`. I couldn't tell from description alone if it should also be removed from the complexity category, so I left it as part of complexity for now. I didn't see any impact to the tests from this change, but I could be wrong (as this is my first PR). fixes #4528 changelog: Moves cast-lossless from default to checking only as a `pedantic` lint.
2019-09-19New lint: Require `# Safety` section in pub unsafe fn docsAndre Bogus-0/+2
2019-09-15Changes cast-lossless to a pedantic lintJason Olson-2/+1
Fixes #4528
2019-09-12Add `unneeded-wildcard-pattern` lintMichael Wright-0/+2
2019-09-10Remove feature gate bind-by-moveLzu Tao-1/+0
2019-09-09Fix regression in case of proc-macro attribute expansionLzu Tao-0/+1
2019-09-05Fix `redundant_pattern` false positiveYuki Okushi-2/+2