about summary refs log tree commit diff
path: root/README.md
AgeCommit message (Collapse)AuthorLines
2020-02-04Merge fixesThibsG-1/+1
2020-01-30decouple 'let_underscore' testsMikhail Babenko-1/+1
2020-01-30Declare lint and implement lint logic.xiongmao86-1/+1
2020-01-23add `option_as_ref_deref` lintAreredify-1/+1
2020-01-20Add `skip_while_next` lintYuki Okushi-1/+1
2020-01-12Pull master, rebase, and update_lints again.xiongmao86-1/+1
2020-01-07Span help without suggestionThibsG-1/+1
2020-01-06Add lint to detect usage of invalid atomic orderingKrishna Sai Veera Reddy-1/+1
Detect usage of invalid atomic ordering modes such as `Ordering::{Release, AcqRel}` in atomic loads and `Ordering::{Acquire, AcqRel}` in atomic stores.
2020-01-04Add lint for iter.nth(0)Brad Sherman-1/+1
- Encourage iter.next() rather than iter.nth(0), which is less readable
2019-12-31Indicate anonymous lifetimes for typesKrishna Veera Reddy-1/+1
2019-12-28Add new lint (modulo_arithmetic)mgr-inz-rafal-1/+1
2019-12-24new lint: mutable_key_typeAndre Bogus-1/+1
2019-12-22implemented `let_underscore` lintMikhail Babenko-1/+1
actually add files update lints change to pedantic
2019-12-22Auto merge of #4930 - flip1995:unused_label, r=phanschbors-1/+1
Deprecate unused_label lint This lint was uplifted/turned into warn-by-default in rustc Fixes #4925 changelog: Deprecate [`unused_label`] lint
2019-12-21Deprecate unused_label lintflip1995-1/+1
This lint was uplifted/turned into warn-by-default in rustc
2019-12-20There are no per-file copyright headers anymoreOliver Scherer @ Cosmian-1/+1
2019-12-07Add lint to detect transmutes from float to integerKrishna Veera Reddy-1/+1
Add lint that detects transmutation from a float to an integer and suggests usage of `{f32, f64}.to_bits()` instead.
2019-12-06Add lint for pub fns returning a `Result` without documenting errorsRobbieClarken-1/+1
The Rust Book recommends that functions that return a `Result` type have a doc comment with an `# Errors` section describing the kind of errors that can be returned (https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html#commonly-used-sections). This change adds a lint to enforce this. The lint is allow by default; it can be enabled with `#![warn(clippy::missing_errors_doc)]`. Closes #4854.
2019-11-25implemented `as_conversions` lintMikhail Babenko-1/+1
actuall add files add better example and change pedantic to restriction
2019-11-23Run update_lintsflip1995-1/+1
2019-11-15New lint: zst_offsetAndre Bogus-1/+1
2019-11-10Add `to_digit_is_some` lintMichael Wright-1/+1
2019-11-07Update lintsHeinz N. Gies-1/+1
2019-11-07Simplify dentry point detectionHeinz N. Gies-1/+1
2019-11-07Deprecate `into_iter_on_array` lintflip1995-1/+1
This lint was uplifted/reimplemented by rustc. Rustup to rust-lang/rust#66017
2019-10-22Add lint for debug_assert_with_mut_callMarcel Hellwig-1/+1
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-1/+1
2019-10-18Add todo and testsHeinz N. Gies-1/+1
2019-10-16Add `inefficient_to_string` lintHMPerson1-1/+1
2019-10-15Add a new lint for unused selfJames Wang-1/+1
2019-10-14new lints around `#[must_use]` fnsAndre Bogus-1/+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-10-09Auto merge of #4616 - mati865:license, r=Manishearthbors-1/+1
Fix license in Cargo.toml files Missed in https://github.com/rust-lang/rust-clippy/pull/3269 changelog: none r? @Manishearth
2019-10-09New lint: suspicious_unary_op_formattingNikos Filippakis-1/+1
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-1/+1
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-04Use new format of licensesMateusz MikuĊ‚a-1/+1
Co-Authored-By: lzutao <taolzu@gmail.com>
2019-10-02New lint: unsound_collection_transmuteAndre Bogus-1/+1
2019-10-02New lint: needless_doc_mainAndre Bogus-1/+1
2019-09-24Add a new lint for comparison chainsJames Wang-1/+1
2019-09-22Merge branch 'master' into unneeded_wildcard_patternMichael Wright-1/+1
2019-09-20new lint: mem-replace-with-uninitAndre Bogus-1/+1
2019-09-19New lint: Require `# Safety` section in pub unsafe fn docsAndre Bogus-1/+1
2019-09-12Add `unneeded-wildcard-pattern` lintMichael Wright-1/+1
2019-09-04Add manual_saturating_arithmetic lintShotaro Yamada-1/+1
2019-09-03lint against `MaybeUninit::uninit().assume_init()`Andre Bogus-1/+1
2019-08-19Add option_and_then_some lintLzu Tao-1/+1
2019-08-15Implement lint 'suspicious_map'Jeremy Stucki-1/+1
2019-08-14Deprecate unused_collect lintPhilipp Hansch-1/+1
I found this because we only had two test cases in total for this lint. It turns out the functionality is fully covered by rustc these days. [Playground Examples](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=eb8ee6db389c77180c9fb152d3c608f4) changelog: Deprecate `unused_collect` lint. This is fully covered by rustc's `#[must_use]` on `collect` cc #2846
2019-08-12Run 'update_lints'Jeremy Stucki-1/+1
2019-08-11update_lintsRalf Jung-1/+1
2019-08-08Fix HTTPS in linksAlex Touchet-2/+2