Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: fe21991
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Oct 18, 2023
1 parent 8ce195d commit 7217b65
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions master/lints.json
Original file line number Diff line number Diff line change
Expand Up @@ -1818,8 +1818,8 @@
{
"id": "enum_variant_names",
"id_span": {
"path": "src/enum_variants.rs",
"line": 44
"path": "src/item_name_repetitions.rs",
"line": 45
},
"group": "style",
"level": "warn",
Expand Down Expand Up @@ -5256,8 +5256,8 @@
{
"id": "module_inception",
"id_span": {
"path": "src/enum_variants.rs",
"line": 102
"path": "src/item_name_repetitions.rs",
"line": 103
},
"group": "style",
"level": "warn",
Expand All @@ -5271,8 +5271,8 @@
{
"id": "module_name_repetitions",
"id_span": {
"path": "src/enum_variants.rs",
"line": 71
"path": "src/item_name_repetitions.rs",
"line": 72
},
"group": "pedantic",
"level": "allow",
Expand Down Expand Up @@ -8430,6 +8430,21 @@
"applicability": "Unresolved"
}
},
{
"id": "struct_field_names",
"id_span": {
"path": "src/item_name_repetitions.rs",
"line": 138
},
"group": "pedantic",
"level": "allow",
"docs": "\n### What it does\nDetects struct fields that are prefixed or suffixed\nby the same characters or the name of the struct itself.\n\n### Why is this bad?\nInformation common to all struct fields is better represented in the struct name.\n\n### Limitations\nCharacters with no casing will be considered when comparing prefixes/suffixes\nThis applies to numbers and non-ascii characters without casing\ne.g. `foo1` and `foo2` is considered to have different prefixes\n(the prefixes are `foo1` and `foo2` respectively), as also `bar螃`, `bar蟹`\n\n### Example\n```rust\nstruct Cake {\n cake_sugar: u8,\n cake_flour: u8,\n cake_eggs: u8\n}\n```\nUse instead:\n```rust\nstruct Cake {\n sugar: u8,\n flour: u8,\n eggs: u8\n}\n```",
"version": "1.75.0",
"applicability": {
"is_multi_part_suggestion": false,
"applicability": "Unresolved"
}
},
{
"id": "suboptimal_flops",
"id_span": {
Expand Down

0 comments on commit 7217b65

Please sign in to comment.