add lint on File::read_to_string and File::read_to_end
This commit is contained in:
parent
3d0f0e33af
commit
0f7f30711e
8 changed files with 147 additions and 2 deletions
|
@ -6,7 +6,7 @@ pub use lint::Lint;
|
|||
pub use lint::LINT_LEVELS;
|
||||
|
||||
// begin lint list, do not remove this comment, it’s used in `update_lints`
|
||||
pub const ALL_LINTS: [Lint; 360] = [
|
||||
pub const ALL_LINTS: [Lint; 361] = [
|
||||
Lint {
|
||||
name: "absurd_extreme_comparisons",
|
||||
group: "correctness",
|
||||
|
@ -2401,6 +2401,13 @@ pub const ALL_LINTS: [Lint; 360] = [
|
|||
deprecation: None,
|
||||
module: "bit_mask",
|
||||
},
|
||||
Lint {
|
||||
name: "verbose_file_reads",
|
||||
group: "complexity",
|
||||
desc: "use of `File::read_to_end` or `File::read_to_string`",
|
||||
deprecation: None,
|
||||
module: "verbose_file_reads",
|
||||
},
|
||||
Lint {
|
||||
name: "while_immutable_condition",
|
||||
group: "correctness",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue