mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Remove RustPython fork (#523)
This commit is contained in:
parent
b060ae2f22
commit
2415d73260
173 changed files with 2071 additions and 2056 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -2248,7 +2248,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "rustpython-ast"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/charliermarsh/RustPython.git?rev=1b253a12705f84972cd76e8dc1cdaaccb233e5a5#1b253a12705f84972cd76e8dc1cdaaccb233e5a5"
|
||||
source = "git+https://github.com/RustPython/RustPython.git?rev=77b821a1941019fe34f73ce17cea013ae1b98fd0#77b821a1941019fe34f73ce17cea013ae1b98fd0"
|
||||
dependencies = [
|
||||
"num-bigint",
|
||||
"rustpython-common",
|
||||
|
@ -2258,7 +2258,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "rustpython-common"
|
||||
version = "0.0.0"
|
||||
source = "git+https://github.com/charliermarsh/RustPython.git?rev=1b253a12705f84972cd76e8dc1cdaaccb233e5a5#1b253a12705f84972cd76e8dc1cdaaccb233e5a5"
|
||||
source = "git+https://github.com/RustPython/RustPython.git?rev=77b821a1941019fe34f73ce17cea013ae1b98fd0#77b821a1941019fe34f73ce17cea013ae1b98fd0"
|
||||
dependencies = [
|
||||
"ascii",
|
||||
"cfg-if 1.0.0",
|
||||
|
@ -2281,7 +2281,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "rustpython-compiler-core"
|
||||
version = "0.1.2"
|
||||
source = "git+https://github.com/charliermarsh/RustPython.git?rev=1b253a12705f84972cd76e8dc1cdaaccb233e5a5#1b253a12705f84972cd76e8dc1cdaaccb233e5a5"
|
||||
source = "git+https://github.com/RustPython/RustPython.git?rev=77b821a1941019fe34f73ce17cea013ae1b98fd0#77b821a1941019fe34f73ce17cea013ae1b98fd0"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"bitflags",
|
||||
|
@ -2298,7 +2298,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "rustpython-parser"
|
||||
version = "0.1.2"
|
||||
source = "git+https://github.com/charliermarsh/RustPython.git?rev=1b253a12705f84972cd76e8dc1cdaaccb233e5a5#1b253a12705f84972cd76e8dc1cdaaccb233e5a5"
|
||||
source = "git+https://github.com/RustPython/RustPython.git?rev=77b821a1941019fe34f73ce17cea013ae1b98fd0#77b821a1941019fe34f73ce17cea013ae1b98fd0"
|
||||
dependencies = [
|
||||
"ahash",
|
||||
"anyhow",
|
||||
|
|
|
@ -26,9 +26,9 @@ once_cell = { version = "1.13.1" }
|
|||
path-absolutize = { version = "3.0.14", features = ["once_cell_cache", "use_unix_paths_on_wasm"] }
|
||||
rayon = { version = "1.5.3" }
|
||||
regex = { version = "1.6.0" }
|
||||
rustpython-ast = { features = ["unparse"], git = "https://github.com/charliermarsh/RustPython.git", rev = "1b253a12705f84972cd76e8dc1cdaaccb233e5a5" }
|
||||
rustpython-common = { git = "https://github.com/charliermarsh/RustPython.git", rev = "1b253a12705f84972cd76e8dc1cdaaccb233e5a5" }
|
||||
rustpython-parser = { features = ["lalrpop"], git = "https://github.com/charliermarsh/RustPython.git", rev = "1b253a12705f84972cd76e8dc1cdaaccb233e5a5" }
|
||||
rustpython-ast = { features = ["unparse"], git = "https://github.com/RustPython/RustPython.git", rev = "77b821a1941019fe34f73ce17cea013ae1b98fd0" }
|
||||
rustpython-common = { git = "https://github.com/RustPython/RustPython.git", rev = "77b821a1941019fe34f73ce17cea013ae1b98fd0" }
|
||||
rustpython-parser = { features = ["lalrpop"], git = "https://github.com/RustPython/RustPython.git", rev = "77b821a1941019fe34f73ce17cea013ae1b98fd0" }
|
||||
serde = { version = "1.0.143", features = ["derive"] }
|
||||
serde_json = { version = "1.0.83" }
|
||||
strum = { version = "0.24.1", features = ["strum_macros"] }
|
||||
|
|
5
foo.py
Normal file
5
foo.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
def function_with_nesting():
|
||||
"""Foo bar documentation."""
|
||||
@overload
|
||||
def nested_overloaded_func(a: int) -> str:
|
||||
...
|
|
@ -137,7 +137,7 @@ pub fn to_absolute(relative: &Location, base: &Location) -> Location {
|
|||
if relative.row() == 1 {
|
||||
Location::new(
|
||||
relative.row() + base.row() - 1,
|
||||
relative.column() + base.column() - 1,
|
||||
relative.column() + base.column(),
|
||||
)
|
||||
} else {
|
||||
Location::new(relative.row() + base.row() - 1, relative.column())
|
||||
|
|
|
@ -69,19 +69,18 @@ fn apply_fixes<'a>(fixes: impl Iterator<Item = &'a mut Fix>, contents: &str) ->
|
|||
|
||||
if fix.patch.location.row() > last_pos.row() {
|
||||
if last_pos.row() > 0 || last_pos.column() > 0 {
|
||||
output.push_str(&lines[last_pos.row() - 1][last_pos.column() - 1..]);
|
||||
output.push_str(&lines[last_pos.row() - 1][last_pos.column()..]);
|
||||
output.push('\n');
|
||||
}
|
||||
for line in &lines[last_pos.row()..fix.patch.location.row() - 1] {
|
||||
output.push_str(line);
|
||||
output.push('\n');
|
||||
}
|
||||
output
|
||||
.push_str(&lines[fix.patch.location.row() - 1][..fix.patch.location.column() - 1]);
|
||||
output.push_str(&lines[fix.patch.location.row() - 1][..fix.patch.location.column()]);
|
||||
output.push_str(&fix.patch.content);
|
||||
} else {
|
||||
output.push_str(
|
||||
&lines[last_pos.row() - 1][last_pos.column() - 1..fix.patch.location.column() - 1],
|
||||
&lines[last_pos.row() - 1][last_pos.column()..fix.patch.location.column()],
|
||||
);
|
||||
output.push_str(&fix.patch.content);
|
||||
}
|
||||
|
@ -95,7 +94,7 @@ fn apply_fixes<'a>(fixes: impl Iterator<Item = &'a mut Fix>, contents: &str) ->
|
|||
&& (last_pos.row() - 1) < lines.len()
|
||||
&& (last_pos.row() > 0 || last_pos.column() > 0)
|
||||
{
|
||||
output.push_str(&lines[last_pos.row() - 1][last_pos.column() - 1..]);
|
||||
output.push_str(&lines[last_pos.row() - 1][last_pos.column()..]);
|
||||
output.push('\n');
|
||||
}
|
||||
if last_pos.row() < lines.len() {
|
||||
|
@ -133,8 +132,8 @@ mod tests {
|
|||
let mut fixes = vec![Fix {
|
||||
patch: Patch {
|
||||
content: "Bar".to_string(),
|
||||
location: Location::new(1, 9),
|
||||
end_location: Location::new(1, 15),
|
||||
location: Location::new(1, 8),
|
||||
end_location: Location::new(1, 14),
|
||||
},
|
||||
applied: false,
|
||||
}];
|
||||
|
@ -159,8 +158,8 @@ mod tests {
|
|||
let mut fixes = vec![Fix {
|
||||
patch: Patch {
|
||||
content: "".to_string(),
|
||||
location: Location::new(1, 8),
|
||||
end_location: Location::new(1, 16),
|
||||
location: Location::new(1, 7),
|
||||
end_location: Location::new(1, 15),
|
||||
},
|
||||
applied: false,
|
||||
}];
|
||||
|
@ -186,16 +185,16 @@ mod tests {
|
|||
Fix {
|
||||
patch: Patch {
|
||||
content: "".to_string(),
|
||||
location: Location::new(1, 8),
|
||||
end_location: Location::new(1, 17),
|
||||
location: Location::new(1, 7),
|
||||
end_location: Location::new(1, 16),
|
||||
},
|
||||
applied: false,
|
||||
},
|
||||
Fix {
|
||||
patch: Patch {
|
||||
content: "".to_string(),
|
||||
location: Location::new(1, 17),
|
||||
end_location: Location::new(1, 24),
|
||||
location: Location::new(1, 16),
|
||||
end_location: Location::new(1, 23),
|
||||
},
|
||||
applied: false,
|
||||
},
|
||||
|
@ -222,16 +221,16 @@ mod tests {
|
|||
Fix {
|
||||
patch: Patch {
|
||||
content: "".to_string(),
|
||||
location: Location::new(1, 8),
|
||||
end_location: Location::new(1, 16),
|
||||
location: Location::new(1, 7),
|
||||
end_location: Location::new(1, 15),
|
||||
},
|
||||
applied: false,
|
||||
},
|
||||
Fix {
|
||||
patch: Patch {
|
||||
content: "ignored".to_string(),
|
||||
location: Location::new(1, 10),
|
||||
end_location: Location::new(1, 12),
|
||||
location: Location::new(1, 9),
|
||||
end_location: Location::new(1, 11),
|
||||
},
|
||||
applied: false,
|
||||
},
|
||||
|
|
|
@ -82,8 +82,8 @@ pub fn remove_stmt(stmt: &Stmt, parent: Option<&Stmt>, deleted: &[&Stmt]) -> Res
|
|||
// Otherwise, nuke the entire line.
|
||||
// TODO(charlie): This logic assumes that there are no multi-statement physical lines.
|
||||
Ok(Fix::deletion(
|
||||
Location::new(stmt.location.row(), 1),
|
||||
Location::new(stmt.end_location.unwrap().row() + 1, 1),
|
||||
Location::new(stmt.location.row(), 0),
|
||||
Location::new(stmt.end_location.unwrap().row() + 1, 0),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -387,7 +387,7 @@ where
|
|||
}
|
||||
StmtKind::Import { names } => {
|
||||
if self.settings.enabled.contains(&CheckCode::E402) {
|
||||
if self.seen_import_boundary && stmt.location.column() == 1 {
|
||||
if self.seen_import_boundary && stmt.location.column() == 0 {
|
||||
self.checks.push(Check::new(
|
||||
CheckKind::ModuleImportNotAtTopOfFile,
|
||||
self.locate_check(Range::from_located(stmt)),
|
||||
|
@ -493,7 +493,7 @@ where
|
|||
level,
|
||||
} => {
|
||||
if self.settings.enabled.contains(&CheckCode::E402) {
|
||||
if self.seen_import_boundary && stmt.location.column() == 1 {
|
||||
if self.seen_import_boundary && stmt.location.column() == 0 {
|
||||
self.checks.push(Check::new(
|
||||
CheckKind::ModuleImportNotAtTopOfFile,
|
||||
self.locate_check(Range::from_located(stmt)),
|
||||
|
|
|
@ -94,8 +94,8 @@ pub fn check_lines(
|
|||
let check = Check::new(
|
||||
CheckKind::LineTooLong(line_length, settings.line_length),
|
||||
Range {
|
||||
location: Location::new(lineno + 1, 1),
|
||||
end_location: Location::new(lineno + 1, line_length + 1),
|
||||
location: Location::new(lineno + 1, 0),
|
||||
end_location: Location::new(lineno + 1, line_length),
|
||||
},
|
||||
);
|
||||
|
||||
|
@ -164,14 +164,14 @@ pub fn check_lines(
|
|||
let mut check = Check::new(
|
||||
CheckKind::UnusedNOQA(None),
|
||||
Range {
|
||||
location: Location::new(row + 1, start + 1),
|
||||
end_location: Location::new(row + 1, end + 1),
|
||||
location: Location::new(row + 1, start),
|
||||
end_location: Location::new(row + 1, end),
|
||||
},
|
||||
);
|
||||
if autofix.patch() {
|
||||
check.amend(Fix::deletion(
|
||||
Location::new(row + 1, start + 1),
|
||||
Location::new(row + 1, lines[row].chars().count() + 1),
|
||||
Location::new(row + 1, start),
|
||||
Location::new(row + 1, lines[row].chars().count()),
|
||||
));
|
||||
}
|
||||
line_checks.push(check);
|
||||
|
@ -192,21 +192,21 @@ pub fn check_lines(
|
|||
let mut check = Check::new(
|
||||
CheckKind::UnusedNOQA(Some(invalid_codes)),
|
||||
Range {
|
||||
location: Location::new(row + 1, start + 1),
|
||||
end_location: Location::new(row + 1, end + 1),
|
||||
location: Location::new(row + 1, start),
|
||||
end_location: Location::new(row + 1, end),
|
||||
},
|
||||
);
|
||||
if autofix.patch() {
|
||||
if valid_codes.is_empty() {
|
||||
check.amend(Fix::deletion(
|
||||
Location::new(row + 1, start + 1),
|
||||
Location::new(row + 1, lines[row].chars().count() + 1),
|
||||
Location::new(row + 1, start),
|
||||
Location::new(row + 1, lines[row].chars().count()),
|
||||
));
|
||||
} else {
|
||||
check.amend(Fix::replacement(
|
||||
format!(" # noqa: {}", valid_codes.join(", ")),
|
||||
Location::new(row + 1, start + 1),
|
||||
Location::new(row + 1, lines[row].chars().count() + 1),
|
||||
Location::new(row + 1, start),
|
||||
Location::new(row + 1, lines[row].chars().count()),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ pub fn leading_space(line: &str) -> String {
|
|||
pub fn indentation<'a>(checker: &'a Checker, docstring: &Expr) -> &'a str {
|
||||
let range = Range::from_located(docstring);
|
||||
checker.locator.slice_source_code_range(&Range {
|
||||
location: Location::new(range.location.row(), 1),
|
||||
location: Location::new(range.location.row(), 0),
|
||||
end_location: Location::new(range.location.row(), range.location.column()),
|
||||
})
|
||||
}
|
||||
|
|
|
@ -6,45 +6,45 @@ expression: checks
|
|||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 5
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 7
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 16
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 18
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 21
|
||||
column: 21
|
||||
column: 20
|
||||
end_location:
|
||||
row: 22
|
||||
column: 38
|
||||
column: 37
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 30
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 32
|
||||
column: 12
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 35
|
||||
column: 13
|
||||
column: 12
|
||||
end_location:
|
||||
row: 37
|
||||
column: 16
|
||||
column: 15
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 3
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 3
|
||||
column: 28
|
||||
column: 27
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 5
|
||||
column: 23
|
||||
column: 22
|
||||
end_location:
|
||||
row: 5
|
||||
column: 44
|
||||
column: 43
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,45 +6,45 @@ expression: checks
|
|||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 3
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 3
|
||||
column: 27
|
||||
column: 26
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 11
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 11
|
||||
column: 27
|
||||
column: 26
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 15
|
||||
column: 39
|
||||
column: 38
|
||||
end_location:
|
||||
row: 17
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 17
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 17
|
||||
column: 5
|
||||
end_location:
|
||||
row: 17
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 21
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 21
|
||||
column: 28
|
||||
column: 27
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 4
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 6
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 9
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 11
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 32
|
||||
column: 31
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 6
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 6
|
||||
column: 32
|
||||
column: 31
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,27 +6,27 @@ expression: checks
|
|||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 14
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 16
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 26
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 28
|
||||
column: 12
|
||||
column: 11
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,27 +6,27 @@ expression: checks
|
|||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 2
|
||||
column: 54
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 6
|
||||
column: 9
|
||||
end_location:
|
||||
row: 6
|
||||
column: 58
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 9
|
||||
column: 29
|
||||
end_location:
|
||||
row: 9
|
||||
column: 53
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 6
|
||||
column: 8
|
||||
end_location:
|
||||
row: 6
|
||||
column: 57
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 9
|
||||
column: 28
|
||||
end_location:
|
||||
row: 9
|
||||
column: 52
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 2
|
||||
column: 57
|
||||
column: 56
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 8
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 10
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ expression: checks
|
|||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ expression: checks
|
|||
BadQuotesDocstring: double
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 1
|
||||
column: 50
|
||||
column: 49
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesInlineString: single
|
||||
location:
|
||||
row: 1
|
||||
column: 25
|
||||
column: 24
|
||||
end_location:
|
||||
row: 1
|
||||
column: 46
|
||||
column: 45
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesInlineString: single
|
||||
location:
|
||||
row: 2
|
||||
column: 25
|
||||
column: 24
|
||||
end_location:
|
||||
row: 2
|
||||
column: 47
|
||||
column: 46
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: AvoidQuoteEscape
|
||||
location:
|
||||
row: 1
|
||||
column: 26
|
||||
column: 25
|
||||
end_location:
|
||||
row: 1
|
||||
column: 48
|
||||
column: 47
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ expression: checks
|
|||
BadQuotesMultilineString: single
|
||||
location:
|
||||
row: 1
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 3
|
||||
column: 13
|
||||
column: 12
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,27 +6,27 @@ expression: checks
|
|||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 12
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 14
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 24
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 26
|
||||
column: 12
|
||||
column: 11
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,27 +6,27 @@ expression: checks
|
|||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 2
|
||||
column: 54
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 6
|
||||
column: 9
|
||||
end_location:
|
||||
row: 6
|
||||
column: 58
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 9
|
||||
column: 29
|
||||
end_location:
|
||||
row: 9
|
||||
column: 53
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 6
|
||||
column: 8
|
||||
end_location:
|
||||
row: 6
|
||||
column: 57
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 9
|
||||
column: 28
|
||||
end_location:
|
||||
row: 9
|
||||
column: 52
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 2
|
||||
column: 57
|
||||
column: 56
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 8
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 10
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ expression: checks
|
|||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ expression: checks
|
|||
BadQuotesDocstring: single
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 1
|
||||
column: 50
|
||||
column: 49
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,54 +6,54 @@ expression: checks
|
|||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 5
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 7
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 11
|
||||
column: 21
|
||||
column: 20
|
||||
end_location:
|
||||
row: 13
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 18
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 20
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 23
|
||||
column: 21
|
||||
column: 20
|
||||
end_location:
|
||||
row: 24
|
||||
column: 38
|
||||
column: 37
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 32
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 34
|
||||
column: 12
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 37
|
||||
column: 13
|
||||
column: 12
|
||||
end_location:
|
||||
row: 39
|
||||
column: 16
|
||||
column: 15
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 3
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 3
|
||||
column: 28
|
||||
column: 27
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 5
|
||||
column: 23
|
||||
column: 22
|
||||
end_location:
|
||||
row: 5
|
||||
column: 44
|
||||
column: 43
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,45 +6,45 @@ expression: checks
|
|||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 3
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 3
|
||||
column: 27
|
||||
column: 26
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 11
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 11
|
||||
column: 27
|
||||
column: 26
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 15
|
||||
column: 39
|
||||
column: 38
|
||||
end_location:
|
||||
row: 17
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 17
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 17
|
||||
column: 5
|
||||
end_location:
|
||||
row: 17
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 21
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 21
|
||||
column: 28
|
||||
column: 27
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 4
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 6
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 9
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 11
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 32
|
||||
column: 31
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 6
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 6
|
||||
column: 32
|
||||
column: 31
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BadQuotesInlineString: double
|
||||
location:
|
||||
row: 1
|
||||
column: 25
|
||||
column: 24
|
||||
end_location:
|
||||
row: 1
|
||||
column: 46
|
||||
column: 45
|
||||
fix: ~
|
||||
- kind:
|
||||
BadQuotesInlineString: double
|
||||
location:
|
||||
row: 2
|
||||
column: 25
|
||||
column: 24
|
||||
end_location:
|
||||
row: 2
|
||||
column: 47
|
||||
column: 46
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: AvoidQuoteEscape
|
||||
location:
|
||||
row: 1
|
||||
column: 26
|
||||
column: 25
|
||||
end_location:
|
||||
row: 1
|
||||
column: 48
|
||||
column: 47
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ expression: checks
|
|||
BadQuotesMultilineString: double
|
||||
location:
|
||||
row: 1
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 3
|
||||
column: 13
|
||||
column: 12
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,7 +6,10 @@ use std::path::Path;
|
|||
use anyhow::Result;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
use log::debug;
|
||||
use rustpython_ast::{Mod, Suite};
|
||||
use rustpython_parser::error::ParseError;
|
||||
use rustpython_parser::lexer::LexResult;
|
||||
use rustpython_parser::parser::Mode;
|
||||
use rustpython_parser::{lexer, parser};
|
||||
|
||||
use crate::ast::types::Range;
|
||||
|
@ -36,6 +39,17 @@ pub(crate) fn tokenize(contents: &str) -> Vec<LexResult> {
|
|||
tokens
|
||||
}
|
||||
|
||||
/// Parse a full Python program from its tokens.
|
||||
pub(crate) fn parse_program_tokens(
|
||||
lxr: Vec<LexResult>,
|
||||
source_path: &str,
|
||||
) -> Result<Suite, ParseError> {
|
||||
parser::parse_tokens(lxr, Mode::Module, source_path).map(|top| match top {
|
||||
Mod::Module { body, .. } => body,
|
||||
_ => unreachable!(),
|
||||
})
|
||||
}
|
||||
|
||||
pub(crate) fn check_path(
|
||||
path: &Path,
|
||||
contents: &str,
|
||||
|
@ -65,7 +79,7 @@ pub(crate) fn check_path(
|
|||
.iter()
|
||||
.any(|check_code| matches!(check_code.lint_source(), LintSource::AST))
|
||||
{
|
||||
match parser::parse_program_tokens(tokens, "<filename>") {
|
||||
match parse_program_tokens(tokens, "<filename>") {
|
||||
Ok(python_ast) => {
|
||||
checks.extend(check_ast(&python_ast, &locator, settings, autofix, path))
|
||||
}
|
||||
|
@ -220,7 +234,7 @@ pub fn autoformat_path(path: &Path) -> Result<()> {
|
|||
let tokens: Vec<LexResult> = tokenize(&contents);
|
||||
|
||||
// Generate the AST.
|
||||
let python_ast = parser::parse_program_tokens(tokens, "<filename>")?;
|
||||
let python_ast = parse_program_tokens(tokens, "<filename>")?;
|
||||
let mut generator: SourceGenerator = Default::default();
|
||||
generator.unparse_suite(&python_ast)?;
|
||||
write(path, generator.generate()?)?;
|
||||
|
|
20
src/noqa.rs
20
src/noqa.rs
|
@ -246,8 +246,8 @@ ghi
|
|||
let checks = vec![Check::new(
|
||||
CheckKind::UnusedVariable("x".to_string()),
|
||||
Range {
|
||||
location: Location::new(1, 1),
|
||||
end_location: Location::new(1, 1),
|
||||
location: Location::new(1, 0),
|
||||
end_location: Location::new(1, 0),
|
||||
},
|
||||
)];
|
||||
let contents = "x = 1";
|
||||
|
@ -260,15 +260,15 @@ ghi
|
|||
Check::new(
|
||||
CheckKind::AmbiguousVariableName("x".to_string()),
|
||||
Range {
|
||||
location: Location::new(1, 1),
|
||||
end_location: Location::new(1, 1),
|
||||
location: Location::new(1, 0),
|
||||
end_location: Location::new(1, 0),
|
||||
},
|
||||
),
|
||||
Check::new(
|
||||
CheckKind::UnusedVariable("x".to_string()),
|
||||
Range {
|
||||
location: Location::new(1, 1),
|
||||
end_location: Location::new(1, 1),
|
||||
location: Location::new(1, 0),
|
||||
end_location: Location::new(1, 0),
|
||||
},
|
||||
),
|
||||
];
|
||||
|
@ -282,15 +282,15 @@ ghi
|
|||
Check::new(
|
||||
CheckKind::AmbiguousVariableName("x".to_string()),
|
||||
Range {
|
||||
location: Location::new(1, 1),
|
||||
end_location: Location::new(1, 1),
|
||||
location: Location::new(1, 0),
|
||||
end_location: Location::new(1, 0),
|
||||
},
|
||||
),
|
||||
Check::new(
|
||||
CheckKind::UnusedVariable("x".to_string()),
|
||||
Range {
|
||||
location: Location::new(1, 1),
|
||||
end_location: Location::new(1, 1),
|
||||
location: Location::new(1, 0),
|
||||
end_location: Location::new(1, 0),
|
||||
},
|
||||
),
|
||||
];
|
||||
|
|
|
@ -35,8 +35,8 @@ pub fn not_missing(
|
|||
checker.add_check(Check::new(
|
||||
CheckKind::PublicModule,
|
||||
Range {
|
||||
location: Location::new(1, 1),
|
||||
end_location: Location::new(1, 1),
|
||||
location: Location::new(1, 0),
|
||||
end_location: Location::new(1, 0),
|
||||
},
|
||||
));
|
||||
}
|
||||
|
@ -47,8 +47,8 @@ pub fn not_missing(
|
|||
checker.add_check(Check::new(
|
||||
CheckKind::PublicPackage,
|
||||
Range {
|
||||
location: Location::new(1, 1),
|
||||
end_location: Location::new(1, 1),
|
||||
location: Location::new(1, 0),
|
||||
end_location: Location::new(1, 0),
|
||||
},
|
||||
));
|
||||
}
|
||||
|
@ -181,8 +181,8 @@ pub fn blank_before_after_function(checker: &mut Checker, definition: &Definitio
|
|||
if checker.patch() {
|
||||
// Delete the blank line before the docstring.
|
||||
check.amend(Fix::deletion(
|
||||
Location::new(docstring.location.row() - blank_lines_before, 1),
|
||||
Location::new(docstring.location.row(), 1),
|
||||
Location::new(docstring.location.row() - blank_lines_before, 0),
|
||||
Location::new(docstring.location.row(), 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -222,8 +222,8 @@ pub fn blank_before_after_function(checker: &mut Checker, definition: &Definitio
|
|||
if checker.patch() {
|
||||
// Delete the blank line after the docstring.
|
||||
check.amend(Fix::deletion(
|
||||
Location::new(docstring.location.row() + 1, 1),
|
||||
Location::new(docstring.location.row() + 1 + blank_lines_after, 1),
|
||||
Location::new(docstring.location.row() + 1, 0),
|
||||
Location::new(docstring.location.row() + 1 + blank_lines_after, 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -268,8 +268,8 @@ pub fn blank_before_after_class(checker: &mut Checker, definition: &Definition)
|
|||
if checker.patch() {
|
||||
// Delete the blank line before the class.
|
||||
check.amend(Fix::deletion(
|
||||
Location::new(docstring.location.row() - blank_lines_before, 1),
|
||||
Location::new(docstring.location.row(), 1),
|
||||
Location::new(docstring.location.row() - blank_lines_before, 0),
|
||||
Location::new(docstring.location.row(), 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -285,8 +285,8 @@ pub fn blank_before_after_class(checker: &mut Checker, definition: &Definition)
|
|||
// Insert one blank line before the class.
|
||||
check.amend(Fix::replacement(
|
||||
"\n".to_string(),
|
||||
Location::new(docstring.location.row() - blank_lines_before, 1),
|
||||
Location::new(docstring.location.row(), 1),
|
||||
Location::new(docstring.location.row() - blank_lines_before, 0),
|
||||
Location::new(docstring.location.row(), 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -322,10 +322,10 @@ pub fn blank_before_after_class(checker: &mut Checker, definition: &Definition)
|
|||
// Insert a blank line before the class (replacing any existing lines).
|
||||
check.amend(Fix::replacement(
|
||||
"\n".to_string(),
|
||||
Location::new(docstring.end_location.unwrap().row() + 1, 1),
|
||||
Location::new(docstring.end_location.unwrap().row() + 1, 0),
|
||||
Location::new(
|
||||
docstring.end_location.unwrap().row() + 1 + blank_lines_after,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
@ -364,8 +364,8 @@ pub fn blank_after_summary(checker: &mut Checker, definition: &Definition) {
|
|||
// Insert one blank line after the summary (replacing any existing lines).
|
||||
check.amend(Fix::replacement(
|
||||
"\n".to_string(),
|
||||
Location::new(docstring.location.row() + 1, 1),
|
||||
Location::new(docstring.location.row() + 1 + blanks_count, 1),
|
||||
Location::new(docstring.location.row() + 1, 0),
|
||||
Location::new(docstring.location.row() + 1 + blanks_count, 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -416,15 +416,15 @@ pub fn indent(checker: &mut Checker, definition: &Definition) {
|
|||
let mut check = Check::new(
|
||||
CheckKind::NoUnderIndentation,
|
||||
Range {
|
||||
location: Location::new(docstring.location.row() + i, 1),
|
||||
end_location: Location::new(docstring.location.row() + i, 1),
|
||||
location: Location::new(docstring.location.row() + i, 0),
|
||||
end_location: Location::new(docstring.location.row() + i, 0),
|
||||
},
|
||||
);
|
||||
if checker.patch() {
|
||||
check.amend(Fix::replacement(
|
||||
helpers::clean(&docstring_indent),
|
||||
Location::new(docstring.location.row() + i, 1),
|
||||
Location::new(docstring.location.row() + i, 1 + line_indent.len()),
|
||||
Location::new(docstring.location.row() + i, 0),
|
||||
Location::new(docstring.location.row() + i, line_indent.len()),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -465,18 +465,15 @@ pub fn indent(checker: &mut Checker, definition: &Definition) {
|
|||
let mut check = Check::new(
|
||||
CheckKind::NoOverIndentation,
|
||||
Range {
|
||||
location: Location::new(docstring.location.row() + i, 1),
|
||||
end_location: Location::new(docstring.location.row() + i, 1),
|
||||
location: Location::new(docstring.location.row() + i, 0),
|
||||
end_location: Location::new(docstring.location.row() + i, 0),
|
||||
},
|
||||
);
|
||||
if checker.patch() {
|
||||
check.amend(Fix::replacement(
|
||||
helpers::clean(&docstring_indent),
|
||||
Location::new(docstring.location.row() + i, 1),
|
||||
Location::new(
|
||||
docstring.location.row() + i,
|
||||
1 + line_indent.len(),
|
||||
),
|
||||
Location::new(docstring.location.row() + i, 0),
|
||||
Location::new(docstring.location.row() + i, line_indent.len()),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -492,15 +489,15 @@ pub fn indent(checker: &mut Checker, definition: &Definition) {
|
|||
let mut check = Check::new(
|
||||
CheckKind::NoOverIndentation,
|
||||
Range {
|
||||
location: Location::new(docstring.location.row() + i, 1),
|
||||
end_location: Location::new(docstring.location.row() + i, 1),
|
||||
location: Location::new(docstring.location.row() + i, 0),
|
||||
end_location: Location::new(docstring.location.row() + i, 0),
|
||||
},
|
||||
);
|
||||
if checker.patch() {
|
||||
check.amend(Fix::replacement(
|
||||
helpers::clean(&docstring_indent),
|
||||
Location::new(docstring.location.row() + i, 1),
|
||||
Location::new(docstring.location.row() + i, 1 + line_indent.len()),
|
||||
Location::new(docstring.location.row() + i, 0),
|
||||
Location::new(docstring.location.row() + i, line_indent.len()),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -921,7 +918,7 @@ fn blanks_and_section_underline(
|
|||
);
|
||||
check.amend(Fix::insertion(
|
||||
content,
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 1),
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -955,7 +952,7 @@ fn blanks_and_section_underline(
|
|||
);
|
||||
check.amend(Fix::insertion(
|
||||
content,
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 1),
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check);
|
||||
|
@ -971,13 +968,13 @@ fn blanks_and_section_underline(
|
|||
if checker.patch() {
|
||||
// Delete any blank lines between the header and content.
|
||||
check.amend(Fix::deletion(
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 1),
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 0),
|
||||
Location::new(
|
||||
docstring.location.row()
|
||||
+ context.original_index
|
||||
+ 1
|
||||
+ blank_lines_after_header,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
@ -994,13 +991,13 @@ fn blanks_and_section_underline(
|
|||
if checker.patch() {
|
||||
// Delete any blank lines between the header and the underline.
|
||||
check.amend(Fix::deletion(
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 1),
|
||||
Location::new(docstring.location.row() + context.original_index + 1, 0),
|
||||
Location::new(
|
||||
docstring.location.row()
|
||||
+ context.original_index
|
||||
+ 1
|
||||
+ blank_lines_after_header,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
@ -1036,7 +1033,7 @@ fn blanks_and_section_underline(
|
|||
+ context.original_index
|
||||
+ 1
|
||||
+ blank_lines_after_header,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
Location::new(
|
||||
docstring.location.row()
|
||||
|
@ -1044,7 +1041,7 @@ fn blanks_and_section_underline(
|
|||
+ 1
|
||||
+ blank_lines_after_header
|
||||
+ 1,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
));
|
||||
};
|
||||
|
@ -1069,7 +1066,7 @@ fn blanks_and_section_underline(
|
|||
+ context.original_index
|
||||
+ 1
|
||||
+ blank_lines_after_header,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
Location::new(
|
||||
docstring.location.row()
|
||||
|
@ -1117,7 +1114,7 @@ fn blanks_and_section_underline(
|
|||
+ context.original_index
|
||||
+ 1
|
||||
+ line_after_dashes_index,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
Location::new(
|
||||
docstring.location.row()
|
||||
|
@ -1125,7 +1122,7 @@ fn blanks_and_section_underline(
|
|||
+ 1
|
||||
+ line_after_dashes_index
|
||||
+ blank_lines_after_dashes,
|
||||
1,
|
||||
0,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
@ -1179,11 +1176,11 @@ fn common_section(
|
|||
capitalized_section_name,
|
||||
Location::new(
|
||||
docstring.location.row() + context.original_index,
|
||||
1 + section_name_start,
|
||||
*section_name_start,
|
||||
),
|
||||
Location::new(
|
||||
docstring.location.row() + context.original_index,
|
||||
1 + section_name_start + section_name_length,
|
||||
section_name_start + section_name_length,
|
||||
),
|
||||
))
|
||||
}
|
||||
|
@ -1205,10 +1202,10 @@ fn common_section(
|
|||
// Replace the existing indentation with whitespace of the appropriate length.
|
||||
check.amend(Fix::replacement(
|
||||
helpers::clean(&indentation),
|
||||
Location::new(docstring.location.row() + context.original_index, 1),
|
||||
Location::new(docstring.location.row() + context.original_index, 0),
|
||||
Location::new(
|
||||
docstring.location.row() + context.original_index,
|
||||
1 + leading_space.len(),
|
||||
leading_space.len(),
|
||||
),
|
||||
));
|
||||
};
|
||||
|
@ -1237,7 +1234,7 @@ fn common_section(
|
|||
+ context.original_index
|
||||
+ 1
|
||||
+ context.following_lines.len(),
|
||||
1,
|
||||
0,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
@ -1258,7 +1255,7 @@ fn common_section(
|
|||
+ context.original_index
|
||||
+ 1
|
||||
+ context.following_lines.len(),
|
||||
1,
|
||||
0,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
@ -1277,7 +1274,7 @@ fn common_section(
|
|||
// Add a blank line before the section.
|
||||
check.amend(Fix::insertion(
|
||||
"\n".to_string(),
|
||||
Location::new(docstring.location.row() + context.original_index, 1),
|
||||
Location::new(docstring.location.row() + context.original_index, 0),
|
||||
));
|
||||
}
|
||||
checker.add_check(check)
|
||||
|
@ -1444,11 +1441,11 @@ fn numpy_section(checker: &mut Checker, definition: &Definition, context: &Secti
|
|||
check.amend(Fix::deletion(
|
||||
Location::new(
|
||||
docstring.location.row() + context.original_index,
|
||||
1 + suffix_start,
|
||||
*suffix_start,
|
||||
),
|
||||
Location::new(
|
||||
docstring.location.row() + context.original_index,
|
||||
1 + suffix_start + suffix_length,
|
||||
suffix_start + suffix_length,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
@ -1494,11 +1491,11 @@ fn google_section(checker: &mut Checker, definition: &Definition, context: &Sect
|
|||
":".to_string(),
|
||||
Location::new(
|
||||
docstring.location.row() + context.original_index,
|
||||
1 + suffix_start,
|
||||
*suffix_start,
|
||||
),
|
||||
Location::new(
|
||||
docstring.location.row() + context.original_index,
|
||||
1 + suffix_start + suffix_length,
|
||||
suffix_start + suffix_length,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
|
|
@ -6,162 +6,162 @@ expression: checks
|
|||
BuiltinVariableShadowing: sum
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 1
|
||||
column: 19
|
||||
column: 18
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: int
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 30
|
||||
column: 29
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: print
|
||||
location:
|
||||
row: 4
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 4
|
||||
column: 6
|
||||
column: 5
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: copyright
|
||||
location:
|
||||
row: 5
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 5
|
||||
column: 10
|
||||
column: 9
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: complex
|
||||
location:
|
||||
row: 6
|
||||
column: 2
|
||||
column: 1
|
||||
end_location:
|
||||
row: 6
|
||||
column: 14
|
||||
column: 13
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: float
|
||||
location:
|
||||
row: 7
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 7
|
||||
column: 6
|
||||
column: 5
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: object
|
||||
location:
|
||||
row: 7
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 7
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: min
|
||||
location:
|
||||
row: 8
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 8
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: max
|
||||
location:
|
||||
row: 8
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 8
|
||||
column: 9
|
||||
column: 8
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: bytes
|
||||
location:
|
||||
row: 10
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 13
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: slice
|
||||
location:
|
||||
row: 13
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 16
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: ValueError
|
||||
location:
|
||||
row: 18
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 21
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: memoryview
|
||||
location:
|
||||
row: 21
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 21
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: bytearray
|
||||
location:
|
||||
row: 21
|
||||
column: 18
|
||||
column: 17
|
||||
end_location:
|
||||
row: 21
|
||||
column: 27
|
||||
column: 26
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: str
|
||||
location:
|
||||
row: 24
|
||||
column: 22
|
||||
column: 21
|
||||
end_location:
|
||||
row: 24
|
||||
column: 25
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: all
|
||||
location:
|
||||
row: 24
|
||||
column: 45
|
||||
column: 44
|
||||
end_location:
|
||||
row: 24
|
||||
column: 48
|
||||
column: 47
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: any
|
||||
location:
|
||||
row: 24
|
||||
column: 50
|
||||
column: 49
|
||||
end_location:
|
||||
row: 24
|
||||
column: 53
|
||||
column: 52
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinVariableShadowing: sum
|
||||
location:
|
||||
row: 27
|
||||
column: 8
|
||||
column: 7
|
||||
end_location:
|
||||
row: 27
|
||||
column: 11
|
||||
column: 10
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,63 +6,63 @@ expression: checks
|
|||
BuiltinArgumentShadowing: str
|
||||
location:
|
||||
row: 1
|
||||
column: 11
|
||||
column: 10
|
||||
end_location:
|
||||
row: 1
|
||||
column: 14
|
||||
column: 13
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinArgumentShadowing: type
|
||||
location:
|
||||
row: 1
|
||||
column: 19
|
||||
column: 18
|
||||
end_location:
|
||||
row: 1
|
||||
column: 23
|
||||
column: 22
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinArgumentShadowing: complex
|
||||
location:
|
||||
row: 1
|
||||
column: 26
|
||||
column: 25
|
||||
end_location:
|
||||
row: 1
|
||||
column: 33
|
||||
column: 32
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinArgumentShadowing: Exception
|
||||
location:
|
||||
row: 1
|
||||
column: 35
|
||||
column: 34
|
||||
end_location:
|
||||
row: 1
|
||||
column: 44
|
||||
column: 43
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinArgumentShadowing: getattr
|
||||
location:
|
||||
row: 1
|
||||
column: 48
|
||||
column: 47
|
||||
end_location:
|
||||
row: 1
|
||||
column: 55
|
||||
column: 54
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinArgumentShadowing: bytes
|
||||
location:
|
||||
row: 5
|
||||
column: 17
|
||||
column: 16
|
||||
end_location:
|
||||
row: 5
|
||||
column: 22
|
||||
column: 21
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinArgumentShadowing: float
|
||||
location:
|
||||
row: 9
|
||||
column: 16
|
||||
column: 15
|
||||
end_location:
|
||||
row: 9
|
||||
column: 21
|
||||
column: 20
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
BuiltinAttributeShadowing: ImportError
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 2
|
||||
column: 16
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind:
|
||||
BuiltinAttributeShadowing: str
|
||||
location:
|
||||
row: 7
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 9
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,17 +5,17 @@ expression: checks
|
|||
- kind: UnaryPrefixIncrement
|
||||
location:
|
||||
row: 15
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 15
|
||||
column: 12
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind: UnaryPrefixIncrement
|
||||
location:
|
||||
row: 20
|
||||
column: 12
|
||||
column: 11
|
||||
end_location:
|
||||
row: 20
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,89 +5,89 @@ expression: checks
|
|||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 60
|
||||
column: 25
|
||||
column: 24
|
||||
end_location:
|
||||
row: 60
|
||||
column: 34
|
||||
column: 33
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 64
|
||||
column: 30
|
||||
column: 29
|
||||
end_location:
|
||||
row: 64
|
||||
column: 32
|
||||
column: 31
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 68
|
||||
column: 20
|
||||
column: 19
|
||||
end_location:
|
||||
row: 68
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 72
|
||||
column: 19
|
||||
end_location:
|
||||
row: 72
|
||||
column: 44
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 76
|
||||
column: 31
|
||||
end_location:
|
||||
row: 76
|
||||
column: 56
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 80
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 72
|
||||
column: 20
|
||||
end_location:
|
||||
row: 72
|
||||
column: 45
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 76
|
||||
column: 32
|
||||
end_location:
|
||||
row: 76
|
||||
column: 57
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 80
|
||||
column: 26
|
||||
end_location:
|
||||
row: 80
|
||||
column: 45
|
||||
column: 44
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 85
|
||||
column: 46
|
||||
end_location:
|
||||
row: 85
|
||||
column: 70
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 89
|
||||
column: 46
|
||||
end_location:
|
||||
row: 89
|
||||
column: 73
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 93
|
||||
column: 45
|
||||
end_location:
|
||||
row: 93
|
||||
row: 85
|
||||
column: 69
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 89
|
||||
column: 45
|
||||
end_location:
|
||||
row: 89
|
||||
column: 72
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 93
|
||||
column: 44
|
||||
end_location:
|
||||
row: 93
|
||||
column: 68
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 97
|
||||
column: 33
|
||||
column: 32
|
||||
end_location:
|
||||
row: 97
|
||||
column: 35
|
||||
column: 34
|
||||
fix: ~
|
||||
- kind: MutableArgumentDefault
|
||||
location:
|
||||
row: 170
|
||||
column: 20
|
||||
column: 19
|
||||
end_location:
|
||||
row: 170
|
||||
column: 49
|
||||
column: 48
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,72 +6,72 @@ expression: checks
|
|||
UnusedLoopControlVariable: i
|
||||
location:
|
||||
row: 6
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 6
|
||||
column: 6
|
||||
column: 5
|
||||
fix:
|
||||
patch:
|
||||
content: _i
|
||||
location:
|
||||
row: 6
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 6
|
||||
column: 6
|
||||
column: 5
|
||||
applied: false
|
||||
- kind:
|
||||
UnusedLoopControlVariable: k
|
||||
location:
|
||||
row: 18
|
||||
column: 13
|
||||
column: 12
|
||||
end_location:
|
||||
row: 18
|
||||
column: 14
|
||||
column: 13
|
||||
fix:
|
||||
patch:
|
||||
content: _k
|
||||
location:
|
||||
row: 18
|
||||
column: 13
|
||||
column: 12
|
||||
end_location:
|
||||
row: 18
|
||||
column: 14
|
||||
column: 13
|
||||
applied: false
|
||||
- kind:
|
||||
UnusedLoopControlVariable: i
|
||||
location:
|
||||
row: 30
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 30
|
||||
column: 6
|
||||
column: 5
|
||||
fix:
|
||||
patch:
|
||||
content: _i
|
||||
location:
|
||||
row: 30
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 30
|
||||
column: 6
|
||||
column: 5
|
||||
applied: false
|
||||
- kind:
|
||||
UnusedLoopControlVariable: k
|
||||
location:
|
||||
row: 30
|
||||
column: 13
|
||||
column: 12
|
||||
end_location:
|
||||
row: 30
|
||||
column: 14
|
||||
column: 13
|
||||
fix:
|
||||
patch:
|
||||
content: _k
|
||||
location:
|
||||
row: 30
|
||||
column: 13
|
||||
column: 12
|
||||
end_location:
|
||||
row: 30
|
||||
column: 14
|
||||
column: 13
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,35 +5,35 @@ expression: checks
|
|||
- kind: DoNotAssertFalse
|
||||
location:
|
||||
row: 8
|
||||
column: 8
|
||||
column: 7
|
||||
end_location:
|
||||
row: 8
|
||||
column: 13
|
||||
column: 12
|
||||
fix:
|
||||
patch:
|
||||
content: raise AssertionError()
|
||||
location:
|
||||
row: 8
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 8
|
||||
column: 13
|
||||
column: 12
|
||||
applied: false
|
||||
- kind: DoNotAssertFalse
|
||||
location:
|
||||
row: 10
|
||||
column: 8
|
||||
column: 7
|
||||
end_location:
|
||||
row: 10
|
||||
column: 13
|
||||
column: 12
|
||||
fix:
|
||||
patch:
|
||||
content: "raise AssertionError('message')"
|
||||
location:
|
||||
row: 10
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 10
|
||||
column: 24
|
||||
column: 23
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ expression: checks
|
|||
RedundantTupleInExceptionHandler: ValueError
|
||||
location:
|
||||
row: 3
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 3
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -7,56 +7,56 @@ expression: checks
|
|||
- OSError
|
||||
location:
|
||||
row: 17
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 17
|
||||
column: 25
|
||||
column: 24
|
||||
fix:
|
||||
patch:
|
||||
content: "OSError,"
|
||||
location:
|
||||
row: 17
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 17
|
||||
column: 25
|
||||
column: 24
|
||||
applied: false
|
||||
- kind:
|
||||
DuplicateHandlerException:
|
||||
- MyError
|
||||
location:
|
||||
row: 28
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 28
|
||||
column: 25
|
||||
column: 24
|
||||
fix:
|
||||
patch:
|
||||
content: "MyError,"
|
||||
location:
|
||||
row: 28
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 28
|
||||
column: 25
|
||||
column: 24
|
||||
applied: false
|
||||
- kind:
|
||||
DuplicateHandlerException:
|
||||
- re.error
|
||||
location:
|
||||
row: 49
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 49
|
||||
column: 27
|
||||
column: 26
|
||||
fix:
|
||||
patch:
|
||||
content: "re.error,"
|
||||
location:
|
||||
row: 49
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 49
|
||||
column: 27
|
||||
column: 26
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: NoAssertRaisesException
|
||||
location:
|
||||
row: 22
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 25
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
DuplicateTryBlockException: ValueError
|
||||
location:
|
||||
row: 15
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 22
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
DuplicateTryBlockException: pickle.PickleError
|
||||
location:
|
||||
row: 22
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 31
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
DuplicateTryBlockException: TypeError
|
||||
location:
|
||||
row: 31
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 39
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
DuplicateTryBlockException: ValueError
|
||||
location:
|
||||
row: 31
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 39
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: UnnecessaryGeneratorList
|
||||
location:
|
||||
row: 1
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 1
|
||||
column: 30
|
||||
column: 29
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: UnnecessaryGeneratorSet
|
||||
location:
|
||||
row: 1
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 1
|
||||
column: 29
|
||||
column: 28
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: UnnecessaryGeneratorDict
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 1
|
||||
column: 31
|
||||
column: 30
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: UnnecessaryListComprehensionSet
|
||||
location:
|
||||
row: 1
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 1
|
||||
column: 31
|
||||
column: 30
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: UnnecessaryListComprehensionDict
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 1
|
||||
column: 33
|
||||
column: 32
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
UnnecessaryLiteralSet: list
|
||||
location:
|
||||
row: 1
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 1
|
||||
column: 17
|
||||
column: 16
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralSet: tuple
|
||||
location:
|
||||
row: 2
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 2
|
||||
column: 17
|
||||
column: 16
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralSet: list
|
||||
location:
|
||||
row: 3
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 3
|
||||
column: 13
|
||||
column: 12
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralSet: tuple
|
||||
location:
|
||||
row: 4
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 4
|
||||
column: 13
|
||||
column: 12
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
UnnecessaryLiteralDict: list
|
||||
location:
|
||||
row: 1
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 1
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralDict: tuple
|
||||
location:
|
||||
row: 2
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 2
|
||||
column: 21
|
||||
column: 20
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralDict: list
|
||||
location:
|
||||
row: 3
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 3
|
||||
column: 14
|
||||
column: 13
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralDict: tuple
|
||||
location:
|
||||
row: 4
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 4
|
||||
column: 14
|
||||
column: 13
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
UnnecessaryCollectionCall: tuple
|
||||
location:
|
||||
row: 1
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 1
|
||||
column: 12
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryCollectionCall: list
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 2
|
||||
column: 10
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryCollectionCall: dict
|
||||
location:
|
||||
row: 3
|
||||
column: 5
|
||||
end_location:
|
||||
row: 3
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryCollectionCall: dict
|
||||
location:
|
||||
row: 3
|
||||
column: 6
|
||||
end_location:
|
||||
row: 3
|
||||
column: 12
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryCollectionCall: dict
|
||||
location:
|
||||
row: 4
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 4
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,27 +6,27 @@ expression: checks
|
|||
UnnecessaryLiteralWithinTupleCall: list
|
||||
location:
|
||||
row: 1
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 1
|
||||
column: 19
|
||||
column: 18
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralWithinTupleCall: tuple
|
||||
location:
|
||||
row: 2
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 2
|
||||
column: 19
|
||||
column: 18
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralWithinTupleCall: list
|
||||
location:
|
||||
row: 3
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 3
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
UnnecessaryLiteralWithinListCall: list
|
||||
location:
|
||||
row: 1
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 1
|
||||
column: 18
|
||||
column: 17
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralWithinListCall: tuple
|
||||
location:
|
||||
row: 2
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 2
|
||||
column: 18
|
||||
column: 17
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralWithinListCall: list
|
||||
location:
|
||||
row: 3
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 3
|
||||
column: 14
|
||||
column: 13
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryLiteralWithinListCall: tuple
|
||||
location:
|
||||
row: 4
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 4
|
||||
column: 14
|
||||
column: 13
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: UnnecessaryListCall
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 21
|
||||
column: 20
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,27 +6,27 @@ expression: checks
|
|||
UnnecessaryCallAroundSorted: list
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 16
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryCallAroundSorted: reversed
|
||||
location:
|
||||
row: 3
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryCallAroundSorted: reversed
|
||||
location:
|
||||
row: 4
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 4
|
||||
column: 34
|
||||
column: 33
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -8,76 +8,76 @@ expression: checks
|
|||
- list
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 14
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- tuple
|
||||
- list
|
||||
location:
|
||||
row: 3
|
||||
column: 1
|
||||
end_location:
|
||||
row: 3
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- list
|
||||
- tuple
|
||||
location:
|
||||
row: 4
|
||||
column: 1
|
||||
end_location:
|
||||
row: 4
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- tuple
|
||||
- tuple
|
||||
location:
|
||||
row: 5
|
||||
column: 1
|
||||
end_location:
|
||||
row: 5
|
||||
column: 16
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- set
|
||||
- set
|
||||
location:
|
||||
row: 6
|
||||
column: 1
|
||||
end_location:
|
||||
row: 6
|
||||
column: 12
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- list
|
||||
- set
|
||||
location:
|
||||
row: 7
|
||||
column: 1
|
||||
end_location:
|
||||
row: 7
|
||||
column: 13
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- tuple
|
||||
- list
|
||||
location:
|
||||
row: 3
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 14
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- list
|
||||
- tuple
|
||||
location:
|
||||
row: 4
|
||||
column: 0
|
||||
end_location:
|
||||
row: 4
|
||||
column: 14
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- tuple
|
||||
- tuple
|
||||
location:
|
||||
row: 5
|
||||
column: 0
|
||||
end_location:
|
||||
row: 5
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- set
|
||||
- set
|
||||
location:
|
||||
row: 6
|
||||
column: 0
|
||||
end_location:
|
||||
row: 6
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- list
|
||||
- set
|
||||
location:
|
||||
row: 7
|
||||
column: 0
|
||||
end_location:
|
||||
row: 7
|
||||
column: 12
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
- tuple
|
||||
- set
|
||||
location:
|
||||
row: 8
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 8
|
||||
column: 14
|
||||
column: 13
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
|
@ -85,10 +85,10 @@ expression: checks
|
|||
- set
|
||||
location:
|
||||
row: 9
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 9
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
|
@ -96,10 +96,10 @@ expression: checks
|
|||
- set
|
||||
location:
|
||||
row: 10
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 10
|
||||
column: 17
|
||||
column: 16
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
|
@ -107,10 +107,10 @@ expression: checks
|
|||
- sorted
|
||||
location:
|
||||
row: 11
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 11
|
||||
column: 16
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
|
@ -118,10 +118,10 @@ expression: checks
|
|||
- sorted
|
||||
location:
|
||||
row: 12
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 12
|
||||
column: 17
|
||||
column: 16
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
|
@ -129,10 +129,10 @@ expression: checks
|
|||
- sorted
|
||||
location:
|
||||
row: 13
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 13
|
||||
column: 18
|
||||
column: 17
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryDoubleCastOrProcess:
|
||||
|
@ -140,9 +140,9 @@ expression: checks
|
|||
- sorted
|
||||
location:
|
||||
row: 14
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 14
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
UnnecessarySubscriptReversal: set
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 2
|
||||
column: 19
|
||||
column: 18
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessarySubscriptReversal: reversed
|
||||
location:
|
||||
row: 3
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 3
|
||||
column: 24
|
||||
column: 23
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessarySubscriptReversal: sorted
|
||||
location:
|
||||
row: 4
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 4
|
||||
column: 22
|
||||
column: 21
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessarySubscriptReversal: sorted
|
||||
location:
|
||||
row: 5
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 5
|
||||
column: 36
|
||||
column: 35
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
UnnecessaryComprehension: list
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryComprehension: set
|
||||
location:
|
||||
row: 3
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 15
|
||||
column: 14
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,72 +6,72 @@ expression: checks
|
|||
UnnecessaryMap: generator
|
||||
location:
|
||||
row: 2
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 2
|
||||
column: 27
|
||||
column: 26
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: generator
|
||||
location:
|
||||
row: 3
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 3
|
||||
column: 28
|
||||
column: 27
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: list
|
||||
location:
|
||||
row: 4
|
||||
column: 1
|
||||
end_location:
|
||||
row: 4
|
||||
column: 33
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: generator
|
||||
location:
|
||||
row: 4
|
||||
column: 6
|
||||
column: 0
|
||||
end_location:
|
||||
row: 4
|
||||
column: 32
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: generator
|
||||
location:
|
||||
row: 4
|
||||
column: 5
|
||||
end_location:
|
||||
row: 4
|
||||
column: 31
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: set
|
||||
location:
|
||||
row: 5
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 5
|
||||
column: 37
|
||||
column: 36
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: generator
|
||||
location:
|
||||
row: 5
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 5
|
||||
column: 36
|
||||
column: 35
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: dict
|
||||
location:
|
||||
row: 6
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 6
|
||||
column: 37
|
||||
column: 36
|
||||
fix: ~
|
||||
- kind:
|
||||
UnnecessaryMap: generator
|
||||
location:
|
||||
row: 6
|
||||
column: 6
|
||||
column: 5
|
||||
end_location:
|
||||
row: 6
|
||||
column: 36
|
||||
column: 35
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: PublicModule
|
||||
location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 1
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: PublicClass
|
||||
location:
|
||||
row: 14
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 67
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,25 +5,25 @@ expression: checks
|
|||
- kind: PublicMethod
|
||||
location:
|
||||
row: 22
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 25
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind: PublicMethod
|
||||
location:
|
||||
row: 51
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 54
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind: PublicMethod
|
||||
location:
|
||||
row: 63
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 67
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: PublicFunction
|
||||
location:
|
||||
row: 395
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 396
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: MagicMethod
|
||||
location:
|
||||
row: 59
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 62
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,17 +5,17 @@ expression: checks
|
|||
- kind: PublicInit
|
||||
location:
|
||||
row: 55
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 58
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind: PublicInit
|
||||
location:
|
||||
row: 529
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 533
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
NoBlankLineBeforeFunction: 1
|
||||
location:
|
||||
row: 132
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 132
|
||||
column: 25
|
||||
column: 24
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 131
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 132
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
NoBlankLineBeforeFunction: 1
|
||||
location:
|
||||
row: 146
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 146
|
||||
column: 38
|
||||
column: 37
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 145
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 146
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
NoBlankLineAfterFunction: 1
|
||||
location:
|
||||
row: 137
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 137
|
||||
column: 25
|
||||
column: 24
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 138
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 139
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
NoBlankLineAfterFunction: 1
|
||||
location:
|
||||
row: 146
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 146
|
||||
column: 38
|
||||
column: 37
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 147
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 148
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,54 +6,54 @@ expression: checks
|
|||
OneBlankLineBeforeClass: 0
|
||||
location:
|
||||
row: 156
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 156
|
||||
column: 33
|
||||
column: 32
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 156
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 156
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
OneBlankLineBeforeClass: 0
|
||||
location:
|
||||
row: 187
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 187
|
||||
column: 46
|
||||
column: 45
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 187
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 187
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
OneBlankLineBeforeClass: 0
|
||||
location:
|
||||
row: 521
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 527
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 521
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 521
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
OneBlankLineAfterClass: 0
|
||||
location:
|
||||
row: 176
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 176
|
||||
column: 25
|
||||
column: 24
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 177
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 177
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
OneBlankLineAfterClass: 0
|
||||
location:
|
||||
row: 187
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 187
|
||||
column: 46
|
||||
column: 45
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 188
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 188
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,35 +5,35 @@ expression: checks
|
|||
- kind: BlankLineAfterSummary
|
||||
location:
|
||||
row: 195
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 198
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 196
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 196
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind: BlankLineAfterSummary
|
||||
location:
|
||||
row: 205
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 210
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 206
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 208
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,35 +5,35 @@ expression: checks
|
|||
- kind: NoUnderIndentation
|
||||
location:
|
||||
row: 227
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 227
|
||||
column: 1
|
||||
column: 0
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 227
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 227
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind: NoUnderIndentation
|
||||
location:
|
||||
row: 435
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 435
|
||||
column: 1
|
||||
column: 0
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 435
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 435
|
||||
column: 5
|
||||
column: 4
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,52 +5,52 @@ expression: checks
|
|||
- kind: NoOverIndentation
|
||||
location:
|
||||
row: 247
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 247
|
||||
column: 1
|
||||
column: 0
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 247
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 247
|
||||
column: 7
|
||||
applied: false
|
||||
- kind: NoOverIndentation
|
||||
location:
|
||||
row: 259
|
||||
column: 0
|
||||
end_location:
|
||||
row: 259
|
||||
column: 0
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 259
|
||||
column: 0
|
||||
end_location:
|
||||
row: 259
|
||||
column: 8
|
||||
applied: false
|
||||
- kind: NoOverIndentation
|
||||
location:
|
||||
row: 259
|
||||
column: 1
|
||||
end_location:
|
||||
row: 259
|
||||
column: 1
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 259
|
||||
column: 1
|
||||
end_location:
|
||||
row: 259
|
||||
column: 9
|
||||
applied: false
|
||||
- kind: NoOverIndentation
|
||||
location:
|
||||
row: 267
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 267
|
||||
column: 1
|
||||
column: 0
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 267
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 267
|
||||
column: 9
|
||||
column: 8
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,18 +5,18 @@ expression: checks
|
|||
- kind: NewLineAfterLastParagraph
|
||||
location:
|
||||
row: 276
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 278
|
||||
column: 20
|
||||
column: 19
|
||||
fix:
|
||||
patch:
|
||||
content: "\n "
|
||||
location:
|
||||
row: 278
|
||||
column: 17
|
||||
column: 16
|
||||
end_location:
|
||||
row: 278
|
||||
column: 17
|
||||
column: 16
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,52 +5,52 @@ expression: checks
|
|||
- kind: NoSurroundingWhitespace
|
||||
location:
|
||||
row: 283
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 283
|
||||
column: 34
|
||||
column: 33
|
||||
fix:
|
||||
patch:
|
||||
content: Whitespace at the end.
|
||||
location:
|
||||
row: 283
|
||||
column: 8
|
||||
column: 7
|
||||
end_location:
|
||||
row: 283
|
||||
column: 31
|
||||
column: 30
|
||||
applied: false
|
||||
- kind: NoSurroundingWhitespace
|
||||
location:
|
||||
row: 288
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 288
|
||||
column: 38
|
||||
column: 37
|
||||
fix:
|
||||
patch:
|
||||
content: Whitespace at everywhere.
|
||||
location:
|
||||
row: 288
|
||||
column: 8
|
||||
column: 7
|
||||
end_location:
|
||||
row: 288
|
||||
column: 35
|
||||
column: 34
|
||||
applied: false
|
||||
- kind: NoSurroundingWhitespace
|
||||
location:
|
||||
row: 294
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 297
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: Whitespace at the beginning.
|
||||
location:
|
||||
row: 294
|
||||
column: 8
|
||||
column: 7
|
||||
end_location:
|
||||
row: 294
|
||||
column: 37
|
||||
column: 36
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
NoBlankLineBeforeClass: 1
|
||||
location:
|
||||
row: 165
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 165
|
||||
column: 30
|
||||
column: 29
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 164
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 165
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
NoBlankLineBeforeClass: 1
|
||||
location:
|
||||
row: 176
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 176
|
||||
column: 25
|
||||
column: 24
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 175
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 176
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: MultiLineSummaryFirstLine
|
||||
location:
|
||||
row: 124
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 126
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,129 +5,129 @@ expression: checks
|
|||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 195
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 198
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 205
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 210
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 215
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 219
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 225
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 229
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 235
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 239
|
||||
column: 4
|
||||
column: 3
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 245
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 249
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 255
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 259
|
||||
column: 12
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 265
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 269
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 276
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 278
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 294
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 297
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 338
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 343
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 378
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 381
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 387
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 391
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 433
|
||||
column: 37
|
||||
column: 36
|
||||
end_location:
|
||||
row: 436
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 445
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 449
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: MultiLineSummarySecondLine
|
||||
location:
|
||||
row: 521
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 527
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
SectionNotOverIndented: Returns
|
||||
location:
|
||||
row: 135
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 141
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 137
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 137
|
||||
column: 9
|
||||
column: 8
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,16 +6,16 @@ expression: checks
|
|||
SectionUnderlineNotOverIndented: Returns
|
||||
location:
|
||||
row: 147
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 153
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 150
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 150
|
||||
column: 9
|
||||
|
@ -24,16 +24,16 @@ expression: checks
|
|||
SectionUnderlineNotOverIndented: Returns
|
||||
location:
|
||||
row: 161
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 165
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " "
|
||||
location:
|
||||
row: 164
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 164
|
||||
column: 9
|
||||
|
|
|
@ -5,41 +5,41 @@ expression: checks
|
|||
- kind: UsesTripleQuotes
|
||||
location:
|
||||
row: 302
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 302
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
- kind: UsesTripleQuotes
|
||||
location:
|
||||
row: 307
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 307
|
||||
column: 20
|
||||
column: 19
|
||||
fix: ~
|
||||
- kind: UsesTripleQuotes
|
||||
location:
|
||||
row: 312
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 312
|
||||
column: 16
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind: UsesTripleQuotes
|
||||
location:
|
||||
row: 317
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 317
|
||||
column: 16
|
||||
column: 15
|
||||
fix: ~
|
||||
- kind: UsesTripleQuotes
|
||||
location:
|
||||
row: 323
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 323
|
||||
column: 17
|
||||
column: 16
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,129 +5,129 @@ expression: checks
|
|||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 124
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 126
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 283
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 283
|
||||
column: 34
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 288
|
||||
column: 5
|
||||
end_location:
|
||||
row: 288
|
||||
column: 38
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 350
|
||||
column: 5
|
||||
end_location:
|
||||
row: 350
|
||||
column: 18
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 401
|
||||
column: 25
|
||||
end_location:
|
||||
row: 401
|
||||
column: 40
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 405
|
||||
column: 5
|
||||
end_location:
|
||||
row: 405
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 411
|
||||
column: 5
|
||||
end_location:
|
||||
row: 411
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 417
|
||||
column: 35
|
||||
end_location:
|
||||
row: 417
|
||||
column: 50
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 424
|
||||
column: 49
|
||||
end_location:
|
||||
row: 424
|
||||
column: 64
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 465
|
||||
column: 5
|
||||
end_location:
|
||||
row: 465
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 470
|
||||
column: 5
|
||||
end_location:
|
||||
row: 470
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 475
|
||||
column: 5
|
||||
end_location:
|
||||
row: 475
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 482
|
||||
column: 5
|
||||
end_location:
|
||||
row: 482
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 504
|
||||
column: 5
|
||||
end_location:
|
||||
row: 504
|
||||
column: 35
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 509
|
||||
column: 5
|
||||
end_location:
|
||||
row: 509
|
||||
column: 34
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 515
|
||||
column: 5
|
||||
end_location:
|
||||
row: 515
|
||||
column: 33
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 288
|
||||
column: 4
|
||||
end_location:
|
||||
row: 288
|
||||
column: 37
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 350
|
||||
column: 4
|
||||
end_location:
|
||||
row: 350
|
||||
column: 17
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 401
|
||||
column: 24
|
||||
end_location:
|
||||
row: 401
|
||||
column: 39
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 405
|
||||
column: 4
|
||||
end_location:
|
||||
row: 405
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 411
|
||||
column: 4
|
||||
end_location:
|
||||
row: 411
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 417
|
||||
column: 34
|
||||
end_location:
|
||||
row: 417
|
||||
column: 49
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 424
|
||||
column: 48
|
||||
end_location:
|
||||
row: 424
|
||||
column: 63
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 465
|
||||
column: 4
|
||||
end_location:
|
||||
row: 465
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 470
|
||||
column: 4
|
||||
end_location:
|
||||
row: 470
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 475
|
||||
column: 4
|
||||
end_location:
|
||||
row: 475
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 482
|
||||
column: 4
|
||||
end_location:
|
||||
row: 482
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 504
|
||||
column: 4
|
||||
end_location:
|
||||
row: 504
|
||||
column: 34
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 509
|
||||
column: 4
|
||||
end_location:
|
||||
row: 509
|
||||
column: 33
|
||||
fix: ~
|
||||
- kind: EndsInPeriod
|
||||
location:
|
||||
row: 515
|
||||
column: 4
|
||||
end_location:
|
||||
row: 515
|
||||
column: 32
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ expression: checks
|
|||
- kind: NoSignature
|
||||
location:
|
||||
row: 373
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 373
|
||||
column: 31
|
||||
column: 30
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
CapitalizeSectionName: returns
|
||||
location:
|
||||
row: 17
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 23
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: Returns
|
||||
location:
|
||||
row: 19
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 19
|
||||
column: 12
|
||||
column: 11
|
||||
applied: false
|
||||
- kind:
|
||||
CapitalizeSectionName: Short summary
|
||||
location:
|
||||
row: 207
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 221
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: Short Summary
|
||||
location:
|
||||
row: 209
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 209
|
||||
column: 18
|
||||
column: 17
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,72 +6,72 @@ expression: checks
|
|||
NewLineAfterSectionName: Returns
|
||||
location:
|
||||
row: 30
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 36
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 32
|
||||
column: 12
|
||||
column: 11
|
||||
end_location:
|
||||
row: 32
|
||||
column: 13
|
||||
column: 12
|
||||
applied: false
|
||||
- kind:
|
||||
NewLineAfterSectionName: Raises
|
||||
location:
|
||||
row: 207
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 221
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 218
|
||||
column: 11
|
||||
column: 10
|
||||
end_location:
|
||||
row: 218
|
||||
column: 12
|
||||
column: 11
|
||||
applied: false
|
||||
- kind:
|
||||
NewLineAfterSectionName: Returns
|
||||
location:
|
||||
row: 252
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 262
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 257
|
||||
column: 12
|
||||
column: 11
|
||||
end_location:
|
||||
row: 257
|
||||
column: 13
|
||||
column: 12
|
||||
applied: false
|
||||
- kind:
|
||||
NewLineAfterSectionName: Raises
|
||||
location:
|
||||
row: 252
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 262
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 259
|
||||
column: 11
|
||||
column: 10
|
||||
end_location:
|
||||
row: 259
|
||||
column: 12
|
||||
column: 11
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,270 +6,270 @@ expression: checks
|
|||
DashedUnderlineAfterSection: Returns
|
||||
location:
|
||||
row: 42
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 47
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " -------\n"
|
||||
location:
|
||||
row: 45
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 45
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Returns
|
||||
location:
|
||||
row: 54
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 58
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " -------\n"
|
||||
location:
|
||||
row: 57
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 57
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Raises
|
||||
location:
|
||||
row: 207
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 221
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " ------\n"
|
||||
location:
|
||||
row: 219
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 219
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Returns
|
||||
location:
|
||||
row: 252
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 262
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " -------\n"
|
||||
location:
|
||||
row: 258
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 258
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Raises
|
||||
location:
|
||||
row: 252
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 262
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " ------\n"
|
||||
location:
|
||||
row: 260
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 260
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 269
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 274
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 272
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 272
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 284
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 292
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 289
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 289
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 301
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 306
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 304
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 304
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 313
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 319
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 316
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 316
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 325
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 330
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 328
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 328
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 337
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 343
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 340
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 340
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 350
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 355
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 353
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 353
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 362
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 367
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 365
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 365
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 371
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 382
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 374
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 374
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
DashedUnderlineAfterSection: Args
|
||||
location:
|
||||
row: 490
|
||||
column: 9
|
||||
column: 8
|
||||
end_location:
|
||||
row: 497
|
||||
column: 12
|
||||
column: 11
|
||||
fix:
|
||||
patch:
|
||||
content: " ----\n"
|
||||
location:
|
||||
row: 495
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 495
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
SectionUnderlineAfterName: Returns
|
||||
location:
|
||||
row: 85
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 92
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 88
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 89
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
SectionUnderlineMatchesSectionLength: Returns
|
||||
location:
|
||||
row: 99
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 105
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " -------\n"
|
||||
location:
|
||||
row: 102
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 103
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
SectionUnderlineMatchesSectionLength: Returns
|
||||
location:
|
||||
row: 207
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 221
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: " -------\n"
|
||||
location:
|
||||
row: 216
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 217
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,36 +6,36 @@ expression: checks
|
|||
BlankLineAfterSection: Returns
|
||||
location:
|
||||
row: 67
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 78
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 71
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 71
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
BlankLineAfterSection: Returns
|
||||
location:
|
||||
row: 207
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 221
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 218
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 218
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,54 +6,54 @@ expression: checks
|
|||
BlankLineBeforeSection: Yields
|
||||
location:
|
||||
row: 67
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 78
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 71
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 71
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
BlankLineBeforeSection: Returns
|
||||
location:
|
||||
row: 122
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 129
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 125
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 125
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
- kind:
|
||||
BlankLineBeforeSection: Raises
|
||||
location:
|
||||
row: 207
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 221
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: "\n"
|
||||
location:
|
||||
row: 218
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 218
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,18 +6,18 @@ expression: checks
|
|||
NoBlankLinesBetweenHeaderAndContent: Short summary
|
||||
location:
|
||||
row: 207
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 221
|
||||
column: 8
|
||||
column: 7
|
||||
fix:
|
||||
patch:
|
||||
content: ""
|
||||
location:
|
||||
row: 211
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 212
|
||||
column: 1
|
||||
column: 0
|
||||
applied: false
|
||||
|
||||
|
|
|
@ -6,45 +6,45 @@ expression: checks
|
|||
NonEmptySection: Returns
|
||||
location:
|
||||
row: 54
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 58
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
NonEmptySection: Returns
|
||||
location:
|
||||
row: 67
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 78
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
NonEmptySection: Yields
|
||||
location:
|
||||
row: 67
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 78
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
NonEmptySection: Returns
|
||||
location:
|
||||
row: 161
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 165
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind:
|
||||
NonEmptySection: Returns
|
||||
location:
|
||||
row: 252
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 262
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,121 +5,121 @@ expression: checks
|
|||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 124
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 126
|
||||
column: 8
|
||||
column: 7
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 283
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 283
|
||||
column: 33
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 288
|
||||
column: 4
|
||||
end_location:
|
||||
row: 288
|
||||
column: 37
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 350
|
||||
column: 4
|
||||
end_location:
|
||||
row: 350
|
||||
column: 17
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 401
|
||||
column: 24
|
||||
end_location:
|
||||
row: 401
|
||||
column: 39
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 405
|
||||
column: 4
|
||||
end_location:
|
||||
row: 405
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 411
|
||||
column: 4
|
||||
end_location:
|
||||
row: 411
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 417
|
||||
column: 34
|
||||
end_location:
|
||||
row: 417
|
||||
column: 49
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 424
|
||||
column: 48
|
||||
end_location:
|
||||
row: 424
|
||||
column: 63
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 465
|
||||
column: 4
|
||||
end_location:
|
||||
row: 465
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 470
|
||||
column: 4
|
||||
end_location:
|
||||
row: 470
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 475
|
||||
column: 4
|
||||
end_location:
|
||||
row: 475
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 482
|
||||
column: 4
|
||||
end_location:
|
||||
row: 482
|
||||
column: 24
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 504
|
||||
column: 4
|
||||
end_location:
|
||||
row: 504
|
||||
column: 34
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 288
|
||||
column: 5
|
||||
end_location:
|
||||
row: 288
|
||||
column: 38
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 350
|
||||
column: 5
|
||||
end_location:
|
||||
row: 350
|
||||
column: 18
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 401
|
||||
column: 25
|
||||
end_location:
|
||||
row: 401
|
||||
column: 40
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 405
|
||||
column: 5
|
||||
end_location:
|
||||
row: 405
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 411
|
||||
column: 5
|
||||
end_location:
|
||||
row: 411
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 417
|
||||
column: 35
|
||||
end_location:
|
||||
row: 417
|
||||
column: 50
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 424
|
||||
column: 49
|
||||
end_location:
|
||||
row: 424
|
||||
column: 64
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 465
|
||||
column: 5
|
||||
end_location:
|
||||
row: 465
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 470
|
||||
column: 5
|
||||
end_location:
|
||||
row: 470
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 475
|
||||
column: 5
|
||||
end_location:
|
||||
row: 475
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 482
|
||||
column: 5
|
||||
end_location:
|
||||
row: 482
|
||||
column: 25
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 504
|
||||
column: 5
|
||||
end_location:
|
||||
row: 504
|
||||
column: 35
|
||||
fix: ~
|
||||
- kind: EndsInPunctuation
|
||||
location:
|
||||
row: 515
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 515
|
||||
column: 33
|
||||
column: 32
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -7,20 +7,20 @@ expression: checks
|
|||
- y
|
||||
location:
|
||||
row: 283
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 296
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
- y
|
||||
location:
|
||||
row: 300
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 309
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
|
@ -29,10 +29,10 @@ expression: checks
|
|||
- z
|
||||
location:
|
||||
row: 324
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 332
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
|
@ -41,10 +41,10 @@ expression: checks
|
|||
- z
|
||||
location:
|
||||
row: 336
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 345
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
|
@ -53,10 +53,10 @@ expression: checks
|
|||
- z
|
||||
location:
|
||||
row: 349
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 357
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
|
@ -64,20 +64,20 @@ expression: checks
|
|||
- b
|
||||
location:
|
||||
row: 361
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 369
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
- y
|
||||
location:
|
||||
row: 389
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 401
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
|
@ -86,10 +86,10 @@ expression: checks
|
|||
- z
|
||||
location:
|
||||
row: 425
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 436
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
|
@ -98,10 +98,10 @@ expression: checks
|
|||
- z
|
||||
location:
|
||||
row: 440
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 455
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
|
@ -109,19 +109,19 @@ expression: checks
|
|||
- z
|
||||
location:
|
||||
row: 459
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 471
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind:
|
||||
DocumentAllArguments:
|
||||
- y
|
||||
location:
|
||||
row: 489
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 498
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
|
@ -5,25 +5,25 @@ expression: checks
|
|||
- kind: SkipDocstring
|
||||
location:
|
||||
row: 33
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 37
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind: SkipDocstring
|
||||
location:
|
||||
row: 85
|
||||
column: 5
|
||||
column: 4
|
||||
end_location:
|
||||
row: 89
|
||||
column: 5
|
||||
column: 4
|
||||
fix: ~
|
||||
- kind: SkipDocstring
|
||||
location:
|
||||
row: 105
|
||||
column: 1
|
||||
column: 0
|
||||
end_location:
|
||||
row: 110
|
||||
column: 1
|
||||
column: 0
|
||||
fix: ~
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue