diff --git a/master/index.html b/master/index.html index 44149d0afd13..736062754bcb 100644 --- a/master/index.html +++ b/master/index.html @@ -193,7 +193,7 @@
(default: current version
)
Confirms that items are sorted in source files as per configuration.
Keeping a consistent ordering throughout the codebase helps with working @@ -1477,7 +1477,7 @@
(default: 25
)
Checks for collapsible else { if ... }
expressions
that can be collapsed to else if ...
.
#[derive(Ord, PartialOrd, PartialEq, Eq)]
struct Foo;
-Checks for types that derive PartialEq
and could implement Eq
.
If a type T
derives PartialEq
and all of its members implement Eq
,
@@ -2098,7 +2098,7 @@
Lints against manual PartialEq
implementations for types with a derived Hash
implementation.
Denies the configured macros in clippy.toml
Note: Even though this lint is warn-by-default, it will only trigger if macros are defined in the clippy.toml file.
@@ -2317,7 +2317,7 @@Use instead:
#![cfg_attr(doc, doc = include_str!("some_file.md"))]
-In CommonMark Markdown, the language used to write doc comments, a paragraph nested within a list or block quote does not need any line after the first one to be indented or marked. The specification calls @@ -2353,7 +2353,7 @@
Detects the syntax ['foo']
in documentation comments (notice quotes instead of backticks)
outside of code blocks
/// See also: [`foo`]
fn bar() {}
-Checks for the presence of _
, ::
or camel-case words
outside ticks in documentation.
(default: ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "MHz", "GHz", "THz", "AccessKit", "CoAP", "CoreFoundation", "CoreGraphics", "CoreText", "DevOps", "Direct2D", "Direct3D", "DirectWrite", "DirectX", "ECMAScript", "GPLv2", "GPLv3", "GitHub", "GitLab", "IPv4", "IPv6", "ClojureScript", "CoffeeScript", "JavaScript", "PostScript", "PureScript", "TypeScript", "WebAssembly", "NaN", "NaNs", "OAuth", "GraphQL", "OCaml", "OpenAL", "OpenDNS", "OpenGL", "OpenMP", "OpenSSH", "OpenSSL", "OpenStreetMap", "OpenTelemetry", "OpenType", "WebGL", "WebGL2", "WebGPU", "WebRTC", "WebSocket", "WebTransport", "WebP", "OpenExr", "YCbCr", "sRGB", "TensorFlow", "TrueType", "iOS", "macOS", "FreeBSD", "NetBSD", "OpenBSD", "TeX", "LaTeX", "BibTeX", "BibLaTeX", "MinGW", "CamelCase"]
)
Warns if a link reference definition appears at the start of a list item or quote.
Checks for double comparisons that could be simplified to a single expression.
Readability.
@@ -2648,7 +2648,7 @@Checks for empty Drop
implementations.
Empty Drop
implementations have no effect when dropping an instance of the type. They are
@@ -2756,7 +2756,7 @@
Checks for empty lines after outer attributes
The attribute may have meant to be an inner attribute (#![attr]
). If
@@ -2779,7 +2779,7 @@
Checks for empty loop
expressions.
These busy loops burn CPU cycles without doing @@ -3155,7 +3155,7 @@
Checks for dereferencing expressions which would be covered by auto-deref.
This unnecessarily complicates the code.
@@ -5907,7 +5907,7 @@#[macro_use]
use some_macro;
-Checks for recursion using the entrypoint.
Apart from special setups (which we could detect following attributes like #![no_std]), @@ -7611,7 +7611,7 @@
(default: false
)
Checks for imports that do not rename the item as specified
in the enforced-import-renames
config option.
Note: Even though this lint is warn-by-default, it will only trigger if @@ -7662,7 +7662,7 @@
(default: false
)
Checks for manual core::fmt::Debug
implementations that do not use all fields.
A common mistake is to forget to update manual Debug
implementations when adding a new field
@@ -7782,7 +7782,7 @@
(default: false
)
Checks for the doc comments of publicly visible
unsafe functions and warns if there is no # Safety
section.
(default: false
)
Checks for empty spin loops
The loop body should have something like thread::park()
or at least
@@ -8692,7 +8692,7 @@
Checks for empty else
branches.
An empty else branch does nothing and can be removed.
@@ -8945,7 +8945,7 @@Checks for usage of pub(self)
and pub(in self)
.
It’s unnecessary, omitting the pub
entirely will give the same results.
if a {}
if a != b {}
-Checks for duplicate open options as well as combinations that make no sense.
Checks for usage of panic!
.
This macro, or panics in general, may be unwanted in production code.
@@ -12799,7 +12799,7 @@Checks for formatting of else
. It lints if the else
is followed immediately by a newline or the else
seems to be missing.
Triggers when a testing function (marked with the #[test]
attribute) isn’t inside a testing module
(marked with #[cfg(test)]
).
Checks for usage of todo!
.
The todo!
macro indicates the presence of unfinished code,
@@ -13185,7 +13185,7 @@
Checks for functions with too many parameters.
Functions with lots of parameters are considered bad @@ -14408,7 +14408,7 @@
(default: false
)
Checks for imports ending in ::{self}
.
In most cases, this can be written much more cleanly by omitting ::{self}
.
Checks for imports that remove “unsafe” from an item’s name.