1
Fork 0

add lint on File::read_to_string and File::read_to_end

This commit is contained in:
Jacob Meyers 2020-03-04 21:13:57 -05:00
parent 3d0f0e33af
commit 0f7f30711e
8 changed files with 147 additions and 2 deletions

View file

@ -6,7 +6,7 @@ pub use lint::Lint;
pub use lint::LINT_LEVELS;
// begin lint list, do not remove this comment, its 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",