Rename DiagnosticKind#commit to DiagnosticKind#suggestion (#3397)

This commit is contained in:
Charlie Marsh 2023-03-08 13:06:19 -05:00 committed by GitHub
parent ffad0bcdaa
commit dfe1cad928
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
688 changed files with 3591 additions and 3585 deletions

View file

@ -214,7 +214,7 @@ pub fn check(contents: &str, options: JsValue) -> Result<JsValue, JsValue> {
end_location: message.end_location,
fix: message.fix.map(|fix| ExpandedFix {
content: fix.content,
message: message.kind.commit,
message: message.kind.suggestion,
location: fix.location,
end_location: fix.end_location,
}),

View file

@ -891,7 +891,7 @@ pub struct DiagnosticKind {
/// The message body to display to the user, to explain the diagnostic.
pub body: String,
/// The message to display to the user, to explain the suggested fix.
pub commit: Option<String>,
pub suggestion: Option<String>,
/// Whether the diagnostic is automatically fixable.
pub fixable: bool,
}

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: CommentedOutCode
body: Found commented-out code
commit: Remove commented-out code
suggestion: Remove commented-out code
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: CommentedOutCode
body: Found commented-out code
commit: Remove commented-out code
suggestion: Remove commented-out code
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: CommentedOutCode
body: Found commented-out code
commit: Remove commented-out code
suggestion: Remove commented-out code
fixable: true
location:
row: 3
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: CommentedOutCode
body: Found commented-out code
commit: Remove commented-out code
suggestion: Remove commented-out code
fixable: true
location:
row: 5
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: CommentedOutCode
body: Found commented-out code
commit: Remove commented-out code
suggestion: Remove commented-out code
fixable: true
location:
row: 12

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersionSlice3Referenced
body: "`sys.version[:3]` referenced (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersionSlice3Referenced
body: "`sys.version[:3]` referenced (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: SysVersionSlice3Referenced
body: "`sys.version[:3]` referenced (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 8

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersion2Referenced
body: "`sys.version[2]` referenced (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersion2Referenced
body: "`sys.version[2]` referenced (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr3
body: "`sys.version` compared to string (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr3
body: "`sys.version` compared to string (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr3
body: "`sys.version` compared to string (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr3
body: "`sys.version` compared to string (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr3
body: "`sys.version` compared to string (python3.10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 8

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersionInfo0Eq3Referenced
body: "`sys.version_info[0] == 3` referenced (python4), use `>=`"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersionInfo0Eq3Referenced
body: "`sys.version_info[0] == 3` referenced (python4), use `>=`"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: SysVersionInfo0Eq3Referenced
body: "`sys.version_info[0] == 3` referenced (python4), use `>=`"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: SysVersionInfo0Eq3Referenced
body: "`sys.version_info[0] == 3` referenced (python4), use `>=`"
commit: ~
suggestion: ~
fixable: false
location:
row: 10

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SixPY3Referenced
body: "`six.PY3` referenced (python4), use `not six.PY2`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SixPY3Referenced
body: "`six.PY3` referenced (python4), use `not six.PY2`"
commit: ~
suggestion: ~
fixable: false
location:
row: 6

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersionInfo1CmpInt
body: "`sys.version_info[1]` compared to integer (python4), compare `sys.version_info` to tuple"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersionInfo1CmpInt
body: "`sys.version_info[1]` compared to integer (python4), compare `sys.version_info` to tuple"
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersionInfoMinorCmpInt
body: "`sys.version_info.minor` compared to integer (python4), compare `sys.version_info` to tuple"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersionInfoMinorCmpInt
body: "`sys.version_info.minor` compared to integer (python4), compare `sys.version_info` to tuple"
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersion0Referenced
body: "`sys.version[0]` referenced (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersion0Referenced
body: "`sys.version[0]` referenced (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr10
body: "`sys.version` compared to string (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr10
body: "`sys.version` compared to string (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr10
body: "`sys.version` compared to string (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr10
body: "`sys.version` compared to string (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: SysVersionCmpStr10
body: "`sys.version` compared to string (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 8

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SysVersionSlice1Referenced
body: "`sys.version[:1]` referenced (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SysVersionSlice1Referenced
body: "`sys.version[:1]` referenced (python10), use `sys.version_info`"
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `bar`"
commit: ~
suggestion: ~
fixable: false
location:
row: 29

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `a`"
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `a`"
commit: ~
suggestion: ~
fixable: false
location:
row: 40
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `foo_method`"
commit: ~
suggestion: ~
fixable: false
location:
row: 44

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: MissingTypeFunctionArgument
body: "Missing type annotation for function argument `a`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: MissingTypeFunctionArgument
body: "Missing type annotation for function argument `b`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: MissingTypeFunctionArgument
body: "Missing type annotation for function argument `b`"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: MissingTypeFunctionArgument
body: "Missing type annotation for function argument `b`"
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `a`"
commit: ~
suggestion: ~
fixable: false
location:
row: 44
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 49
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `*args`"
commit: ~
suggestion: ~
fixable: false
location:
row: 54
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`"
commit: ~
suggestion: ~
fixable: false
location:
row: 54
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `*args`"
commit: ~
suggestion: ~
fixable: false
location:
row: 59
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`"
commit: ~
suggestion: ~
fixable: false
location:
row: 64
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: MissingTypeSelf
body: "Missing type annotation for `self` in method"
commit: ~
suggestion: ~
fixable: false
location:
row: 74
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `a`"
commit: ~
suggestion: ~
fixable: false
location:
row: 78
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 82
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `*params`"
commit: ~
suggestion: ~
fixable: false
location:
row: 86
@ -239,7 +239,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `**options`"
commit: ~
suggestion: ~
fixable: false
location:
row: 86
@ -252,7 +252,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `*params`"
commit: ~
suggestion: ~
fixable: false
location:
row: 90
@ -265,7 +265,7 @@ expression: diagnostics
- kind:
name: AnyType
body: "Dynamically typed expressions (typing.Any) are disallowed in `**options`"
commit: ~
suggestion: ~
fixable: false
location:
row: 94
@ -278,7 +278,7 @@ expression: diagnostics
- kind:
name: MissingTypeCls
body: "Missing type annotation for `cls` in classmethod"
commit: ~
suggestion: ~
fixable: false
location:
row: 104
@ -291,7 +291,7 @@ expression: diagnostics
- kind:
name: MissingTypeSelf
body: "Missing type annotation for `self` in method"
commit: ~
suggestion: ~
fixable: false
location:
row: 108

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `error_partially_typed_1`"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: MissingTypeFunctionArgument
body: "Missing type annotation for function argument `b`"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: MissingTypeFunctionArgument
body: "Missing type annotation for function argument `b`"
commit: ~
suggestion: ~
fixable: false
location:
row: 28
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `error_partially_typed_3`"
commit: ~
suggestion: ~
fixable: false
location:
row: 32
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `error_typed_self`"
commit: ~
suggestion: ~
fixable: false
location:
row: 43

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypeSpecialMethod
body: "Missing return type annotation for special method `__init__`"
commit: "Add `None` return type"
suggestion: "Add `None` return type"
fixable: true
location:
row: 5
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypeSpecialMethod
body: "Missing return type annotation for special method `__init__`"
commit: "Add `None` return type"
suggestion: "Add `None` return type"
fixable: true
location:
row: 11
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePrivateFunction
body: "Missing return type annotation for private function `__init__`"
commit: ~
suggestion: ~
fixable: false
location:
row: 40
@ -58,7 +58,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypeSpecialMethod
body: "Missing return type annotation for special method `__init__`"
commit: "Add `None` return type"
suggestion: "Add `None` return type"
fixable: true
location:
row: 47

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 45
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: MissingReturnTypePublicFunction
body: "Missing return type annotation for public function `foo`"
commit: ~
suggestion: ~
fixable: false
location:
row: 50
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: MissingTypeFunctionArgument
body: "Missing type annotation for function argument `a`"
commit: ~
suggestion: ~
fixable: false
location:
row: 59

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: Assert
body: "Use of `assert` detected"
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: Assert
body: "Use of `assert` detected"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: Assert
body: "Use of `assert` detected"
commit: ~
suggestion: ~
fixable: false
location:
row: 11

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: ExecBuiltin
body: "Use of `exec` detected"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: ExecBuiltin
body: "Use of `exec` detected"
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o227` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o7` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o777` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o770` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o776` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o777` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o777` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o777` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o777` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o777` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o777` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o10` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 20
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: BadFilePermissions
body: "`os.chmod` setting a permissive mask `0o2` on file or directory"
commit: ~
suggestion: ~
fixable: false
location:
row: 22

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HardcodedBindAllInterfaces
body: Possible binding to all interfaces
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: HardcodedBindAllInterfaces
body: Possible binding to all interfaces
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: HardcodedBindAllInterfaces
body: Possible binding to all interfaces
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: HardcodedBindAllInterfaces
body: Possible binding to all interfaces
commit: ~
suggestion: ~
fixable: false
location:
row: 18

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 20
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 22
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 23
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 25
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 26
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 28
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 29
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 30
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 31
@ -239,7 +239,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 32
@ -252,7 +252,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 33
@ -265,7 +265,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 37
@ -278,7 +278,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 41
@ -291,7 +291,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 42
@ -304,7 +304,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 43
@ -317,7 +317,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 44
@ -330,7 +330,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 45
@ -343,7 +343,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 46
@ -356,7 +356,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 47
@ -369,7 +369,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 49
@ -382,7 +382,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 50
@ -395,7 +395,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 51
@ -408,7 +408,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 52
@ -421,7 +421,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 53
@ -434,7 +434,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 54
@ -447,7 +447,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 55
@ -460,7 +460,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 56
@ -473,7 +473,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"1\\n2\""
commit: ~
suggestion: ~
fixable: false
location:
row: 58
@ -486,7 +486,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"3\\t4\""
commit: ~
suggestion: ~
fixable: false
location:
row: 61
@ -499,7 +499,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordString
body: "Possible hardcoded password: \"5\\r6\""
commit: ~
suggestion: ~
fixable: false
location:
row: 64

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordFuncArg
body: "Possible hardcoded password: \"s3cr3t\""
commit: ~
suggestion: ~
fixable: false
location:
row: 14

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordDefault
body: "Possible hardcoded password: \"default\""
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordDefault
body: "Possible hardcoded password: \"posonly\""
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordDefault
body: "Possible hardcoded password: \"kwonly\""
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordDefault
body: "Possible hardcoded password: \"posonly\""
commit: ~
suggestion: ~
fixable: false
location:
row: 29
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: HardcodedPasswordDefault
body: "Possible hardcoded password: \"kwonly\""
commit: ~
suggestion: ~
fixable: false
location:
row: 29

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HardcodedTempFile
body: "Probable insecure usage of temporary file or directory: \"/tmp/abc\""
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: HardcodedTempFile
body: "Probable insecure usage of temporary file or directory: \"/var/tmp/123\""
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: HardcodedTempFile
body: "Probable insecure usage of temporary file or directory: \"/dev/shm/unit/test\""
commit: ~
suggestion: ~
fixable: false
location:
row: 11

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HardcodedTempFile
body: "Probable insecure usage of temporary file or directory: \"/tmp/abc\""
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: HardcodedTempFile
body: "Probable insecure usage of temporary file or directory: \"/var/tmp/123\""
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: HardcodedTempFile
body: "Probable insecure usage of temporary file or directory: \"/dev/shm/unit/test\""
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: HardcodedTempFile
body: "Probable insecure usage of temporary file or directory: \"/foo/bar\""
commit: ~
suggestion: ~
fixable: false
location:
row: 15

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: TryExceptPass
body: "`try`-`except`-`pass` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: TryExceptPass
body: "`try`-`except`-`pass` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 8

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: TryExceptPass
body: "`try`-`except`-`pass` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: TryExceptPass
body: "`try`-`except`-`pass` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: TryExceptPass
body: "`try`-`except`-`pass` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 13

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: TryExceptContinue
body: "`try`-`except`-`continue` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: TryExceptContinue
body: "`try`-`except`-`continue` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: TryExceptContinue
body: "`try`-`except`-`continue` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: TryExceptContinue
body: "`try`-`except`-`continue` detected, consider logging the exception"
commit: ~
suggestion: ~
fixable: false
location:
row: 18

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: Probable use of requests call without timeout
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: "Probable use of requests call with timeout set to `None`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: Probable use of requests call without timeout
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: "Probable use of requests call with timeout set to `None`"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: Probable use of requests call without timeout
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: "Probable use of requests call with timeout set to `None`"
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: Probable use of requests call without timeout
commit: ~
suggestion: ~
fixable: false
location:
row: 12
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: "Probable use of requests call with timeout set to `None`"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: Probable use of requests call without timeout
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: "Probable use of requests call with timeout set to `None`"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: Probable use of requests call without timeout
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: "Probable use of requests call with timeout set to `None`"
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: Probable use of requests call without timeout
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: RequestWithoutTimeout
body: "Probable use of requests call with timeout set to `None`"
commit: ~
suggestion: ~
fixable: false
location:
row: 22

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `md5`"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `md4`"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `md5`"
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `MD4`"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `sha1`"
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `sha1`"
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `sha`"
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `SHA`"
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `sha`"
commit: ~
suggestion: ~
fixable: false
location:
row: 23
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `md5`"
commit: ~
suggestion: ~
fixable: false
location:
row: 25
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `sha1`"
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `sha1`"
commit: ~
suggestion: ~
fixable: false
location:
row: 29
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: HashlibInsecureHashFunction
body: "Probable use of insecure hash functions in `hashlib`: `sha1`"
commit: ~
suggestion: ~
fixable: false
location:
row: 32

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 20
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 22
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 26
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 28
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 30
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 32
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 34
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 36
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 38
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: RequestWithNoCertValidation
body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks"
commit: ~
suggestion: ~
fixable: false
location:
row: 40

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnsafeYAMLLoad
body: "Probable use of unsafe `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`."
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UnsafeYAMLLoad
body: "Probable use of unsafe loader `Loader` with `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`."
commit: ~
suggestion: ~
fixable: false
location:
row: 24

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SnmpInsecureVersion
body: The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able.
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SnmpInsecureVersion
body: The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able.
commit: ~
suggestion: ~
fixable: false
location:
row: 4

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SnmpWeakCryptography
body: "You should not use SNMPv3 without encryption. `noAuthNoPriv` & `authNoPriv` is insecure."
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: SnmpWeakCryptography
body: "You should not use SNMPv3 without encryption. `noAuthNoPriv` & `authNoPriv` is insecure."
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 12
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 20
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 22
@ -239,7 +239,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -252,7 +252,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 25
@ -265,7 +265,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 26
@ -278,7 +278,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -291,7 +291,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 28
@ -304,7 +304,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 30
@ -317,7 +317,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 31
@ -330,7 +330,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 32
@ -343,7 +343,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 33
@ -356,7 +356,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 34
@ -369,7 +369,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 36
@ -382,7 +382,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 37
@ -395,7 +395,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 38
@ -408,7 +408,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 39
@ -421,7 +421,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 41
@ -434,7 +434,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 42
@ -447,7 +447,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 43
@ -460,7 +460,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 44
@ -473,7 +473,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 48
@ -486,7 +486,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 55
@ -499,7 +499,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 62
@ -512,7 +512,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 69
@ -525,7 +525,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 77
@ -538,7 +538,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 83
@ -551,7 +551,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 84
@ -564,7 +564,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 85
@ -577,7 +577,7 @@ expression: diagnostics
- kind:
name: HardcodedSQLExpression
body: Possible SQL injection vector through string-based query construction
commit: ~
suggestion: ~
fixable: false
location:
row: 86

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: LoggingConfigInsecureListen
body: "Use of insecure `logging.config.listen` detected"
commit: ~
suggestion: ~
fixable: false
location:
row: 3

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: Jinja2AutoescapeFalse
body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function."
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: Jinja2AutoescapeFalse
body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function."
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: Jinja2AutoescapeFalse
body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function."
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: Jinja2AutoescapeFalse
body: "By default, jinja2 sets `autoescape` to `False`. Consider using `autoescape=True` or the `select_autoescape` function to mitigate XSS vulnerabilities."
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: Jinja2AutoescapeFalse
body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function."
commit: ~
suggestion: ~
fixable: false
location:
row: 29

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `BaseException`"
commit: ~
suggestion: ~
fixable: false
location:
row: 25
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `Exception`"
commit: ~
suggestion: ~
fixable: false
location:
row: 31
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `Exception`"
commit: ~
suggestion: ~
fixable: false
location:
row: 42
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `BaseException`"
commit: ~
suggestion: ~
fixable: false
location:
row: 45
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `Exception`"
commit: ~
suggestion: ~
fixable: false
location:
row: 54
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `Exception`"
commit: ~
suggestion: ~
fixable: false
location:
row: 60
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `BaseException`"
commit: ~
suggestion: ~
fixable: false
location:
row: 62
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `Exception`"
commit: ~
suggestion: ~
fixable: false
location:
row: 69
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `Exception`"
commit: ~
suggestion: ~
fixable: false
location:
row: 75
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: BlindExcept
body: "Do not catch blind exception: `Exception`"
commit: ~
suggestion: ~
fixable: false
location:
row: 81

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalArgInFunctionDefinition
body: Boolean positional arg in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 81

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BooleanDefaultValueInFunctionDefinition
body: Boolean default value in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 12
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BooleanDefaultValueInFunctionDefinition
body: Boolean default value in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BooleanDefaultValueInFunctionDefinition
body: Boolean default value in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BooleanDefaultValueInFunctionDefinition
body: Boolean default value in function definition
commit: ~
suggestion: ~
fixable: false
location:
row: 15

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalValueInFunctionCall
body: Boolean positional value in function call
commit: ~
suggestion: ~
fixable: false
location:
row: 42
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalValueInFunctionCall
body: Boolean positional value in function call
commit: ~
suggestion: ~
fixable: false
location:
row: 57
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BooleanPositionalValueInFunctionCall
body: Boolean positional value in function call
commit: ~
suggestion: ~
fixable: false
location:
row: 57

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnaryPrefixIncrement
body: Python does not support the unary prefix increment
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UnaryPrefixIncrement
body: Python does not support the unary prefix increment
commit: ~
suggestion: ~
fixable: false
location:
row: 20

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: AssignmentToOsEnviron
body: "Assigning to `os.environ` doesn't clear the environment"
commit: ~
suggestion: ~
fixable: false
location:
row: 9

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnreliableCallableCheck
body: "Using `hasattr(x, '__call__')` to test if x is callable is unreliable. Use `callable(x)` for consistent results."
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UnreliableCallableCheck
body: "Using `hasattr(x, '__call__')` to test if x is callable is unreliable. Use `callable(x)` for consistent results."
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 22
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: StripWithMultiCharacters
body: "Using `.strip()` with multi-character strings is misleading the reader"
commit: ~
suggestion: ~
fixable: false
location:
row: 24

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 60
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 64
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 68
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 72
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 76
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 80
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 85
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 89
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 93
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 97
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 170
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 203
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 204
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: MutableArgumentDefault
body: Do not use mutable data structures for argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 205

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `i` not used within loop body"
commit: "Rename unused `i` to `_i`"
suggestion: "Rename unused `i` to `_i`"
fixable: true
location:
row: 6
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `k` not used within loop body"
commit: "Rename unused `k` to `_k`"
suggestion: "Rename unused `k` to `_k`"
fixable: true
location:
row: 18
@ -38,7 +38,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `i` not used within loop body"
commit: "Rename unused `i` to `_i`"
suggestion: "Rename unused `i` to `_i`"
fixable: true
location:
row: 30
@ -51,7 +51,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `k` not used within loop body"
commit: "Rename unused `k` to `_k`"
suggestion: "Rename unused `k` to `_k`"
fixable: true
location:
row: 30
@ -71,7 +71,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` may not be used within loop body"
commit: ~
suggestion: ~
fixable: false
location:
row: 34
@ -84,7 +84,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` may not be used within loop body"
commit: ~
suggestion: ~
fixable: false
location:
row: 38
@ -97,7 +97,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` may not be used within loop body"
commit: ~
suggestion: ~
fixable: false
location:
row: 42
@ -110,7 +110,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` may not be used within loop body"
commit: ~
suggestion: ~
fixable: false
location:
row: 46
@ -123,7 +123,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` not used within loop body"
commit: "Rename unused `bar` to `_bar`"
suggestion: "Rename unused `bar` to `_bar`"
fixable: true
location:
row: 52
@ -143,7 +143,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` not used within loop body"
commit: "Rename unused `bar` to `_bar`"
suggestion: "Rename unused `bar` to `_bar`"
fixable: true
location:
row: 59
@ -156,7 +156,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` not used within loop body"
commit: "Rename unused `bar` to `_bar`"
suggestion: "Rename unused `bar` to `_bar`"
fixable: true
location:
row: 68
@ -176,7 +176,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `bar` not used within loop body"
commit: "Rename unused `bar` to `_bar`"
suggestion: "Rename unused `bar` to `_bar`"
fixable: true
location:
row: 77
@ -196,7 +196,7 @@ expression: diagnostics
- kind:
name: UnusedLoopControlVariable
body: "Loop control variable `line_` not used within loop body"
commit: ~
suggestion: ~
fixable: false
location:
row: 87

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `range` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 85
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `range` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 89
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `range` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 93
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `time.time` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 109
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `dt.datetime.now` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 113
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `dt.timedelta` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 113
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: Do not perform function call in argument defaults
commit: ~
suggestion: ~
fixable: false
location:
row: 117
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `float` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 155
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `float` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 160
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `float` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 164
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `float` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 170
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `dt.datetime.now` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 170
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `map` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 176
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `random.randint` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 181
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `dt.datetime.now` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 181

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: GetAttrWithConstant
body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `getattr` with attribute access"
suggestion: "Replace `getattr` with attribute access"
fixable: true
location:
row: 19
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: GetAttrWithConstant
body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `getattr` with attribute access"
suggestion: "Replace `getattr` with attribute access"
fixable: true
location:
row: 20
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: GetAttrWithConstant
body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `getattr` with attribute access"
suggestion: "Replace `getattr` with attribute access"
fixable: true
location:
row: 21
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: GetAttrWithConstant
body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `getattr` with attribute access"
suggestion: "Replace `getattr` with attribute access"
fixable: true
location:
row: 22
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: GetAttrWithConstant
body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `getattr` with attribute access"
suggestion: "Replace `getattr` with attribute access"
fixable: true
location:
row: 23
@ -105,7 +105,7 @@ expression: diagnostics
- kind:
name: GetAttrWithConstant
body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `getattr` with attribute access"
suggestion: "Replace `getattr` with attribute access"
fixable: true
location:
row: 24
@ -125,7 +125,7 @@ expression: diagnostics
- kind:
name: GetAttrWithConstant
body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `getattr` with attribute access"
suggestion: "Replace `getattr` with attribute access"
fixable: true
location:
row: 25

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: SetAttrWithConstant
body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `setattr` with assignment"
suggestion: "Replace `setattr` with assignment"
fixable: true
location:
row: 40
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: SetAttrWithConstant
body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `setattr` with assignment"
suggestion: "Replace `setattr` with assignment"
fixable: true
location:
row: 41
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: SetAttrWithConstant
body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `setattr` with assignment"
suggestion: "Replace `setattr` with assignment"
fixable: true
location:
row: 42
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: SetAttrWithConstant
body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `setattr` with assignment"
suggestion: "Replace `setattr` with assignment"
fixable: true
location:
row: 43
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: SetAttrWithConstant
body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `setattr` with assignment"
suggestion: "Replace `setattr` with assignment"
fixable: true
location:
row: 44
@ -105,7 +105,7 @@ expression: diagnostics
- kind:
name: SetAttrWithConstant
body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access."
commit: "Replace `setattr` with assignment"
suggestion: "Replace `setattr` with assignment"
fixable: true
location:
row: 45

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: AssertFalse
body: "Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`"
commit: "Replace `assert False`"
suggestion: "Replace `assert False`"
fixable: true
location:
row: 8
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: AssertFalse
body: "Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`"
commit: "Replace `assert False`"
suggestion: "Replace `assert False`"
fixable: true
location:
row: 10

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`return` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`return` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`return` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`return` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 31
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`return` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 44
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`break` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 66
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`continue` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 78
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`return` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 94
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`continue` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 101
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`break` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 107
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: JumpStatementInFinally
body: "`break` inside `finally` blocks cause exceptions to be silenced"
commit: ~
suggestion: ~
fixable: false
location:
row: 118

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: RedundantTupleInExceptionHandler
body: "A length-one tuple literal is redundant. Write `except ValueError` instead of `except (ValueError,)`."
commit: "Replace with `except ValueError`"
suggestion: "Replace with `except ValueError`"
fixable: true
location:
row: 3

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: DuplicateHandlerException
body: "Exception handler with duplicate exception: `OSError`"
commit: De-duplicate exceptions
suggestion: De-duplicate exceptions
fixable: true
location:
row: 17
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: DuplicateHandlerException
body: "Exception handler with duplicate exception: `MyError`"
commit: De-duplicate exceptions
suggestion: De-duplicate exceptions
fixable: true
location:
row: 28
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: DuplicateHandlerException
body: "Exception handler with duplicate exception: `re.error`"
commit: De-duplicate exceptions
suggestion: De-duplicate exceptions
fixable: true
location:
row: 49

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UselessComparison
body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it."
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UselessComparison
body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it."
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: UselessComparison
body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it."
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: UselessComparison
body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it."
commit: ~
suggestion: ~
fixable: false
location:
row: 24

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: CannotRaiseLiteral
body: Cannot raise a literal. Did you intend to return it or raise an Exception?
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: CannotRaiseLiteral
body: Cannot raise a literal. Did you intend to return it or raise an Exception?
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: CannotRaiseLiteral
body: Cannot raise a literal. Did you intend to return it or raise an Exception?
commit: ~
suggestion: ~
fixable: false
location:
row: 8

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: AssertRaisesException
body: "`assertRaises(Exception)` should be considered evil"
commit: ~
suggestion: ~
fixable: false
location:
row: 22

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 12
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 15
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 20
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 39
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 40
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 41
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 42
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 43
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 44
@ -239,7 +239,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 45
@ -252,7 +252,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 46
@ -265,7 +265,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 47
@ -278,7 +278,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 48
@ -291,7 +291,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 52
@ -304,7 +304,7 @@ expression: diagnostics
- kind:
name: UselessExpression
body: Found useless expression. Either assign it to a variable or remove it.
commit: ~
suggestion: ~
fixable: false
location:
row: 55

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 78
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 82
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 86
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 90
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 94
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 98
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 102
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: CachedInstanceMethod
body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks"
commit: ~
suggestion: ~
fixable: false
location:
row: 106

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: LoopVariableOverridesIterator
body: "Loop control variable `items` overrides iterable it iterates"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: LoopVariableOverridesIterator
body: "Loop control variable `values` overrides iterable it iterates"
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: LoopVariableOverridesIterator
body: "Loop control variable `vars` overrides iterable it iterates"
commit: ~
suggestion: ~
fixable: false
location:
row: 36

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 14
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 22
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 30
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 38
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 46
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 54
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 62
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 70
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: FStringDocstring
body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.
commit: ~
suggestion: ~
fixable: false
location:
row: 74

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UselessContextlibSuppress
body: "No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UselessContextlibSuppress
body: "No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant"
commit: ~
suggestion: ~
fixable: false
location:
row: 12

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 12
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `y`"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 28
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 29
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 30
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 31
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 40
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 42
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `a`"
commit: ~
suggestion: ~
fixable: false
location:
row: 50
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `a_`"
commit: ~
suggestion: ~
fixable: false
location:
row: 51
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `b`"
commit: ~
suggestion: ~
fixable: false
location:
row: 52
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `c`"
commit: ~
suggestion: ~
fixable: false
location:
row: 53
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `j`"
commit: ~
suggestion: ~
fixable: false
location:
row: 61
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `k`"
commit: ~
suggestion: ~
fixable: false
location:
row: 61
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `l`"
commit: ~
suggestion: ~
fixable: false
location:
row: 68
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `i`"
commit: ~
suggestion: ~
fixable: false
location:
row: 82
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 117
@ -239,7 +239,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 118
@ -252,7 +252,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 119
@ -265,7 +265,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 120
@ -278,7 +278,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `x`"
commit: ~
suggestion: ~
fixable: false
location:
row: 121
@ -291,7 +291,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `name`"
commit: ~
suggestion: ~
fixable: false
location:
row: 171
@ -304,7 +304,7 @@ expression: diagnostics
- kind:
name: FunctionUsesLoopVariable
body: "Function definition does not bind loop variable `i`"
commit: ~
suggestion: ~
fixable: false
location:
row: 174

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: AbstractBaseClassWithoutAbstractMethod
body: "`Base_1` is an abstract base class, but it has no abstract methods"
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: AbstractBaseClassWithoutAbstractMethod
body: "`MetaBase_1` is an abstract base class, but it has no abstract methods"
commit: ~
suggestion: ~
fixable: false
location:
row: 71
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: AbstractBaseClassWithoutAbstractMethod
body: "`abc_Base_1` is an abstract base class, but it has no abstract methods"
commit: ~
suggestion: ~
fixable: false
location:
row: 82
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: AbstractBaseClassWithoutAbstractMethod
body: "`abc_Base_2` is an abstract base class, but it has no abstract methods"
commit: ~
suggestion: ~
fixable: false
location:
row: 87
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: AbstractBaseClassWithoutAbstractMethod
body: "`notabc_Base_1` is an abstract base class, but it has no abstract methods"
commit: ~
suggestion: ~
fixable: false
location:
row: 92
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: AbstractBaseClassWithoutAbstractMethod
body: "`abc_set_class_variable_4` is an abstract base class, but it has no abstract methods"
commit: ~
suggestion: ~
fixable: false
location:
row: 141

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: DuplicateTryBlockException
body: "try-except block with duplicate exception `ValueError`"
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: DuplicateTryBlockException
body: "try-except block with duplicate exception `pickle.PickleError`"
commit: ~
suggestion: ~
fixable: false
location:
row: 28
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: DuplicateTryBlockException
body: "try-except block with duplicate exception `ValueError`"
commit: ~
suggestion: ~
fixable: false
location:
row: 35
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: DuplicateTryBlockException
body: "try-except block with duplicate exception `TypeError`"
commit: ~
suggestion: ~
fixable: false
location:
row: 37

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: StarArgUnpackingAfterKeywordArg
body: Star-arg unpacking after a keyword argument is strongly discouraged
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: StarArgUnpackingAfterKeywordArg
body: Star-arg unpacking after a keyword argument is strongly discouraged
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: StarArgUnpackingAfterKeywordArg
body: Star-arg unpacking after a keyword argument is strongly discouraged
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: StarArgUnpackingAfterKeywordArg
body: Star-arg unpacking after a keyword argument is strongly discouraged
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: StarArgUnpackingAfterKeywordArg
body: Star-arg unpacking after a keyword argument is strongly discouraged
commit: ~
suggestion: ~
fixable: false
location:
row: 20
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: StarArgUnpackingAfterKeywordArg
body: Star-arg unpacking after a keyword argument is strongly discouraged
commit: ~
suggestion: ~
fixable: false
location:
row: 20
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: StarArgUnpackingAfterKeywordArg
body: Star-arg unpacking after a keyword argument is strongly discouraged
commit: ~
suggestion: ~
fixable: false
location:
row: 21

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: EmptyMethodWithoutAbstractDecorator
body: "`AbstractClass.empty_1` is an empty method in an abstract base class, but has no abstract decorator"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: EmptyMethodWithoutAbstractDecorator
body: "`AbstractClass.empty_2` is an empty method in an abstract base class, but has no abstract decorator"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: EmptyMethodWithoutAbstractDecorator
body: "`AbstractClass.empty_3` is an empty method in an abstract base class, but has no abstract decorator"
commit: ~
suggestion: ~
fixable: false
location:
row: 19
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: EmptyMethodWithoutAbstractDecorator
body: "`AbstractClass.empty_4` is an empty method in an abstract base class, but has no abstract decorator"
commit: ~
suggestion: ~
fixable: false
location:
row: 23

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: ExceptWithEmptyTuple
body: "Using except (): with an empty tuple does not handle/catch anything. Add exceptions to handle."
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: ExceptWithEmptyTuple
body: "Using except (): with an empty tuple does not handle/catch anything. Add exceptions to handle."
commit: ~
suggestion: ~
fixable: false
location:
row: 13

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 12
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 17
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 18
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: UnintentionalTypeAnnotation
body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?"
commit: ~
suggestion: ~
fixable: false
location:
row: 19

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: RaiseWithoutFromInsideExcept
body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling"
commit: ~
suggestion: ~
fixable: false
location:
row: 10
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: RaiseWithoutFromInsideExcept
body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling"
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: RaiseWithoutFromInsideExcept
body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: RaiseWithoutFromInsideExcept
body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling"
commit: ~
suggestion: ~
fixable: false
location:
row: 62
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: RaiseWithoutFromInsideExcept
body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling"
commit: ~
suggestion: ~
fixable: false
location:
row: 64
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: RaiseWithoutFromInsideExcept
body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling"
commit: ~
suggestion: ~
fixable: false
location:
row: 72

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: ZipWithoutExplicitStrict
body: "`zip()` without an explicit `strict=` parameter"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: ZipWithoutExplicitStrict
body: "`zip()` without an explicit `strict=` parameter"
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: ZipWithoutExplicitStrict
body: "`zip()` without an explicit `strict=` parameter"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: ZipWithoutExplicitStrict
body: "`zip()` without an explicit `strict=` parameter"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: ZipWithoutExplicitStrict
body: "`zip()` without an explicit `strict=` parameter"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: ZipWithoutExplicitStrict
body: "`zip()` without an explicit `strict=` parameter"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: ZipWithoutExplicitStrict
body: "`zip()` without an explicit `strict=` parameter"
commit: ~
suggestion: ~
fixable: false
location:
row: 6

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: FunctionCallArgumentDefault
body: "Do not perform function call `Depends` in argument defaults"
commit: ~
suggestion: ~
fixable: false
location:
row: 19

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `sum` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `int` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `dir` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `print` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `copyright` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `complex` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `float` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `object` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `min` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `max` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `id` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 11
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `bytes` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `slice` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `ValueError` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `memoryview` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `bytearray` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `str` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `all` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -239,7 +239,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `any` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -252,7 +252,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `sum` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 30

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `sum` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `int` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `print` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `copyright` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 6
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `complex` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `float` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `object` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `min` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `max` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 9
@ -122,7 +122,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `bytes` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -135,7 +135,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `slice` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -148,7 +148,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `ValueError` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 21
@ -161,7 +161,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `memoryview` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -174,7 +174,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `bytearray` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 24
@ -187,7 +187,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `str` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -200,7 +200,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `all` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -213,7 +213,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `any` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 27
@ -226,7 +226,7 @@ expression: diagnostics
- kind:
name: BuiltinVariableShadowing
body: "Variable `sum` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 30

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `str` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `type` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `complex` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `Exception` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `getattr` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `bytes` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `id` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -96,7 +96,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `dir` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 8
@ -109,7 +109,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `float` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 11

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `str` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `type` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `complex` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `Exception` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `getattr` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 1
@ -70,7 +70,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `bytes` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 5
@ -83,7 +83,7 @@ expression: diagnostics
- kind:
name: BuiltinArgumentShadowing
body: "Argument `float` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 11

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BuiltinAttributeShadowing
body: "Class attribute `ImportError` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BuiltinAttributeShadowing
body: "Class attribute `id` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: BuiltinAttributeShadowing
body: "Class attribute `dir` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: BuiltinAttributeShadowing
body: "Class attribute `str` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 11

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: BuiltinAttributeShadowing
body: "Class attribute `ImportError` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: BuiltinAttributeShadowing
body: "Class attribute `str` is shadowing a python builtin"
commit: ~
suggestion: ~
fixable: false
location:
row: 11

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 4
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 10
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 16
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 23
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: TrailingCommaOnBareTupleProhibited
body: Trailing comma on bare tuple prohibited
commit: ~
suggestion: ~
fixable: false
location:
row: 36
@ -98,7 +98,7 @@ expression: diagnostics
- kind:
name: TrailingCommaOnBareTupleProhibited
body: Trailing comma on bare tuple prohibited
commit: ~
suggestion: ~
fixable: false
location:
row: 38
@ -111,7 +111,7 @@ expression: diagnostics
- kind:
name: TrailingCommaOnBareTupleProhibited
body: Trailing comma on bare tuple prohibited
commit: ~
suggestion: ~
fixable: false
location:
row: 45
@ -124,7 +124,7 @@ expression: diagnostics
- kind:
name: TrailingCommaOnBareTupleProhibited
body: Trailing comma on bare tuple prohibited
commit: ~
suggestion: ~
fixable: false
location:
row: 49
@ -137,7 +137,7 @@ expression: diagnostics
- kind:
name: TrailingCommaOnBareTupleProhibited
body: Trailing comma on bare tuple prohibited
commit: ~
suggestion: ~
fixable: false
location:
row: 56
@ -150,7 +150,7 @@ expression: diagnostics
- kind:
name: TrailingCommaOnBareTupleProhibited
body: Trailing comma on bare tuple prohibited
commit: ~
suggestion: ~
fixable: false
location:
row: 58
@ -163,7 +163,7 @@ expression: diagnostics
- kind:
name: TrailingCommaOnBareTupleProhibited
body: Trailing comma on bare tuple prohibited
commit: ~
suggestion: ~
fixable: false
location:
row: 61
@ -176,7 +176,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 70
@ -196,7 +196,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 78
@ -216,7 +216,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 86
@ -236,7 +236,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 152
@ -256,7 +256,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 158
@ -276,7 +276,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 293
@ -296,7 +296,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 304
@ -316,7 +316,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 310
@ -336,7 +336,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 316
@ -356,7 +356,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 322
@ -376,7 +376,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 368
@ -396,7 +396,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 375
@ -416,7 +416,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 404
@ -436,7 +436,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 432
@ -456,7 +456,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 485
@ -476,7 +476,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 487
@ -496,7 +496,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 489
@ -516,7 +516,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 494
@ -536,7 +536,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 496
@ -556,7 +556,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 498
@ -576,7 +576,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 500
@ -596,7 +596,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 505
@ -616,7 +616,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 511
@ -636,7 +636,7 @@ expression: diagnostics
- kind:
name: TrailingCommaProhibited
body: Trailing comma prohibited
commit: Remove trailing comma
suggestion: Remove trailing comma
fixable: true
location:
row: 513
@ -656,7 +656,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 519
@ -676,7 +676,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 526
@ -696,7 +696,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 534
@ -716,7 +716,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 541
@ -736,7 +736,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 547
@ -756,7 +756,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 554
@ -776,7 +776,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 561
@ -796,7 +796,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 565
@ -816,7 +816,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 573
@ -836,7 +836,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 577
@ -856,7 +856,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 583
@ -876,7 +876,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 590
@ -896,7 +896,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 598
@ -916,7 +916,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 627
@ -936,7 +936,7 @@ expression: diagnostics
- kind:
name: TrailingCommaMissing
body: Trailing comma missing
commit: Add trailing comma
suggestion: Add trailing comma
fixable: true
location:
row: 632

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorList
body: "Unnecessary generator (rewrite as a `list` comprehension)"
commit: "Rewrite as a `list` comprehension"
suggestion: "Rewrite as a `list` comprehension"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorList
body: "Unnecessary generator (rewrite as a `list` comprehension)"
commit: "Rewrite as a `list` comprehension"
suggestion: "Rewrite as a `list` comprehension"
fixable: true
location:
row: 2

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorSet
body: "Unnecessary generator (rewrite as a `set` comprehension)"
commit: "Rewrite as a `set` comprehension"
suggestion: "Rewrite as a `set` comprehension"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorSet
body: "Unnecessary generator (rewrite as a `set` comprehension)"
commit: "Rewrite as a `set` comprehension"
suggestion: "Rewrite as a `set` comprehension"
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorSet
body: "Unnecessary generator (rewrite as a `set` comprehension)"
commit: "Rewrite as a `set` comprehension"
suggestion: "Rewrite as a `set` comprehension"
fixable: true
location:
row: 5
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorSet
body: "Unnecessary generator (rewrite as a `set` comprehension)"
commit: "Rewrite as a `set` comprehension"
suggestion: "Rewrite as a `set` comprehension"
fixable: true
location:
row: 6
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorSet
body: "Unnecessary generator (rewrite as a `set` comprehension)"
commit: "Rewrite as a `set` comprehension"
suggestion: "Rewrite as a `set` comprehension"
fixable: true
location:
row: 7

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorDict
body: "Unnecessary generator (rewrite as a `dict` comprehension)"
commit: "Rewrite as a `dict` comprehension"
suggestion: "Rewrite as a `dict` comprehension"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorDict
body: "Unnecessary generator (rewrite as a `dict` comprehension)"
commit: "Rewrite as a `dict` comprehension"
suggestion: "Rewrite as a `dict` comprehension"
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorDict
body: "Unnecessary generator (rewrite as a `dict` comprehension)"
commit: "Rewrite as a `dict` comprehension"
suggestion: "Rewrite as a `dict` comprehension"
fixable: true
location:
row: 6
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryGeneratorDict
body: "Unnecessary generator (rewrite as a `dict` comprehension)"
commit: "Rewrite as a `dict` comprehension"
suggestion: "Rewrite as a `dict` comprehension"
fixable: true
location:
row: 7

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryListComprehensionSet
body: "Unnecessary `list` comprehension (rewrite as a `set` comprehension)"
commit: "Rewrite as a `set` comprehension"
suggestion: "Rewrite as a `set` comprehension"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryListComprehensionSet
body: "Unnecessary `list` comprehension (rewrite as a `set` comprehension)"
commit: "Rewrite as a `set` comprehension"
suggestion: "Rewrite as a `set` comprehension"
fixable: true
location:
row: 2

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryListComprehensionDict
body: "Unnecessary `list` comprehension (rewrite as a `dict` comprehension)"
commit: "Rewrite as a `dict` comprehension"
suggestion: "Rewrite as a `dict` comprehension"
fixable: true
location:
row: 1

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `list` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `tuple` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `list` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 3
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `tuple` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 4
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `tuple` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 6
@ -105,7 +105,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `tuple` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 7
@ -125,7 +125,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `list` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 10
@ -145,7 +145,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `tuple` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 13
@ -165,7 +165,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralSet
body: "Unnecessary `list` literal (rewrite as a `set` literal)"
commit: "Rewrite as a `set` literal"
suggestion: "Rewrite as a `set` literal"
fixable: true
location:
row: 16

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralDict
body: "Unnecessary `list` literal (rewrite as a `dict` literal)"
commit: "Rewrite as a `dict` literal"
suggestion: "Rewrite as a `dict` literal"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralDict
body: "Unnecessary `tuple` literal (rewrite as a `dict` literal)"
commit: "Rewrite as a `dict` literal"
suggestion: "Rewrite as a `dict` literal"
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralDict
body: "Unnecessary `list` literal (rewrite as a `dict` literal)"
commit: "Rewrite as a `dict` literal"
suggestion: "Rewrite as a `dict` literal"
fixable: true
location:
row: 3
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralDict
body: "Unnecessary `tuple` literal (rewrite as a `dict` literal)"
commit: "Rewrite as a `dict` literal"
suggestion: "Rewrite as a `dict` literal"
fixable: true
location:
row: 4

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCollectionCall
body: "Unnecessary `tuple` call (rewrite as a literal)"
commit: Rewrite as a literal
suggestion: Rewrite as a literal
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCollectionCall
body: "Unnecessary `list` call (rewrite as a literal)"
commit: Rewrite as a literal
suggestion: Rewrite as a literal
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCollectionCall
body: "Unnecessary `dict` call (rewrite as a literal)"
commit: Rewrite as a literal
suggestion: Rewrite as a literal
fixable: true
location:
row: 3
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCollectionCall
body: "Unnecessary `dict` call (rewrite as a literal)"
commit: Rewrite as a literal
suggestion: Rewrite as a literal
fixable: true
location:
row: 4

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCollectionCall
body: "Unnecessary `tuple` call (rewrite as a literal)"
commit: Rewrite as a literal
suggestion: Rewrite as a literal
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCollectionCall
body: "Unnecessary `list` call (rewrite as a literal)"
commit: Rewrite as a literal
suggestion: Rewrite as a literal
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCollectionCall
body: "Unnecessary `dict` call (rewrite as a literal)"
commit: Rewrite as a literal
suggestion: Rewrite as a literal
fixable: true
location:
row: 3

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinTupleCall
body: "Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal)"
commit: "Rewrite as a `tuple` literal"
suggestion: "Rewrite as a `tuple` literal"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinTupleCall
body: "Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal)"
commit: "Rewrite as a `tuple` literal"
suggestion: "Rewrite as a `tuple` literal"
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinTupleCall
body: "Unnecessary `tuple` literal passed to `tuple()` (remove the outer call to `tuple()`)"
commit: "Remove outer `tuple` call"
suggestion: "Remove outer `tuple` call"
fixable: true
location:
row: 3
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinTupleCall
body: "Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal)"
commit: "Rewrite as a `tuple` literal"
suggestion: "Rewrite as a `tuple` literal"
fixable: true
location:
row: 4
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinTupleCall
body: "Unnecessary `tuple` literal passed to `tuple()` (remove the outer call to `tuple()`)"
commit: "Remove outer `tuple` call"
suggestion: "Remove outer `tuple` call"
fixable: true
location:
row: 8

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinListCall
body: "Unnecessary `list` literal passed to `list()` (remove the outer call to `list()`)"
commit: "Remove outer `list` call"
suggestion: "Remove outer `list` call"
fixable: true
location:
row: 1
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinListCall
body: "Unnecessary `tuple` literal passed to `list()` (rewrite as a `list` literal)"
commit: "Rewrite as a `list` literal"
suggestion: "Rewrite as a `list` literal"
fixable: true
location:
row: 2
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinListCall
body: "Unnecessary `list` literal passed to `list()` (remove the outer call to `list()`)"
commit: "Remove outer `list` call"
suggestion: "Remove outer `list` call"
fixable: true
location:
row: 3
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryLiteralWithinListCall
body: "Unnecessary `tuple` literal passed to `list()` (rewrite as a `list` literal)"
commit: "Rewrite as a `list` literal"
suggestion: "Rewrite as a `list` literal"
fixable: true
location:
row: 4

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryListCall
body: "Unnecessary `list` call (remove the outer call to `list()`)"
commit: "Remove outer `list` call"
suggestion: "Remove outer `list` call"
fixable: true
location:
row: 2

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCallAroundSorted
body: "Unnecessary `list` call around `sorted()`"
commit: "Remove unnecessary `list` call"
suggestion: "Remove unnecessary `list` call"
fixable: true
location:
row: 3
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCallAroundSorted
body: "Unnecessary `reversed` call around `sorted()`"
commit: "Remove unnecessary `reversed` call"
suggestion: "Remove unnecessary `reversed` call"
fixable: true
location:
row: 4
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCallAroundSorted
body: "Unnecessary `reversed` call around `sorted()`"
commit: "Remove unnecessary `reversed` call"
suggestion: "Remove unnecessary `reversed` call"
fixable: true
location:
row: 5
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCallAroundSorted
body: "Unnecessary `reversed` call around `sorted()`"
commit: "Remove unnecessary `reversed` call"
suggestion: "Remove unnecessary `reversed` call"
fixable: true
location:
row: 6
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCallAroundSorted
body: "Unnecessary `reversed` call around `sorted()`"
commit: "Remove unnecessary `reversed` call"
suggestion: "Remove unnecessary `reversed` call"
fixable: true
location:
row: 7
@ -105,7 +105,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCallAroundSorted
body: "Unnecessary `reversed` call around `sorted()`"
commit: "Remove unnecessary `reversed` call"
suggestion: "Remove unnecessary `reversed` call"
fixable: true
location:
row: 8
@ -125,7 +125,7 @@ expression: diagnostics
- kind:
name: UnnecessaryCallAroundSorted
body: "Unnecessary `reversed` call around `sorted()`"
commit: "Remove unnecessary `reversed` call"
suggestion: "Remove unnecessary `reversed` call"
fixable: true
location:
row: 9

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `list` call within `list()`"
commit: "Remove the inner `list` call"
suggestion: "Remove the inner `list` call"
fixable: true
location:
row: 2
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `tuple` call within `list()`"
commit: "Remove the inner `tuple` call"
suggestion: "Remove the inner `tuple` call"
fixable: true
location:
row: 3
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `list` call within `tuple()`"
commit: "Remove the inner `list` call"
suggestion: "Remove the inner `list` call"
fixable: true
location:
row: 4
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `tuple` call within `tuple()`"
commit: "Remove the inner `tuple` call"
suggestion: "Remove the inner `tuple` call"
fixable: true
location:
row: 5
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `set` call within `set()`"
commit: "Remove the inner `set` call"
suggestion: "Remove the inner `set` call"
fixable: true
location:
row: 6
@ -105,7 +105,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `list` call within `set()`"
commit: "Remove the inner `list` call"
suggestion: "Remove the inner `list` call"
fixable: true
location:
row: 7
@ -125,7 +125,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `tuple` call within `set()`"
commit: "Remove the inner `tuple` call"
suggestion: "Remove the inner `tuple` call"
fixable: true
location:
row: 8
@ -145,7 +145,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `sorted` call within `set()`"
commit: "Remove the inner `sorted` call"
suggestion: "Remove the inner `sorted` call"
fixable: true
location:
row: 9
@ -165,7 +165,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `reversed` call within `set()`"
commit: "Remove the inner `reversed` call"
suggestion: "Remove the inner `reversed` call"
fixable: true
location:
row: 10
@ -185,7 +185,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `list` call within `sorted()`"
commit: "Remove the inner `list` call"
suggestion: "Remove the inner `list` call"
fixable: true
location:
row: 11
@ -205,7 +205,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `tuple` call within `sorted()`"
commit: "Remove the inner `tuple` call"
suggestion: "Remove the inner `tuple` call"
fixable: true
location:
row: 12
@ -225,7 +225,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `sorted` call within `sorted()`"
commit: "Remove the inner `sorted` call"
suggestion: "Remove the inner `sorted` call"
fixable: true
location:
row: 13
@ -245,7 +245,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `reversed` call within `sorted()`"
commit: "Remove the inner `reversed` call"
suggestion: "Remove the inner `reversed` call"
fixable: true
location:
row: 14
@ -265,7 +265,7 @@ expression: diagnostics
- kind:
name: UnnecessaryDoubleCastOrProcess
body: "Unnecessary `list` call within `tuple()`"
commit: "Remove the inner `list` call"
suggestion: "Remove the inner `list` call"
fixable: true
location:
row: 15

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessarySubscriptReversal
body: "Unnecessary subscript reversal of iterable within `set()`"
commit: ~
suggestion: ~
fixable: false
location:
row: 2
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: UnnecessarySubscriptReversal
body: "Unnecessary subscript reversal of iterable within `reversed()`"
commit: ~
suggestion: ~
fixable: false
location:
row: 3
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: UnnecessarySubscriptReversal
body: "Unnecessary subscript reversal of iterable within `sorted()`"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: UnnecessarySubscriptReversal
body: "Unnecessary subscript reversal of iterable within `sorted()`"
commit: ~
suggestion: ~
fixable: false
location:
row: 5

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryComprehension
body: "Unnecessary `list` comprehension (rewrite using `list()`)"
commit: "Rewrite using `list()`"
suggestion: "Rewrite using `list()`"
fixable: true
location:
row: 2
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryComprehension
body: "Unnecessary `set` comprehension (rewrite using `set()`)"
commit: "Rewrite using `set()`"
suggestion: "Rewrite using `set()`"
fixable: true
location:
row: 3

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 3
@ -25,7 +25,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 4
@ -45,7 +45,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a `list` comprehension)"
commit: "Replace `map` using a `list` comprehension"
suggestion: "Replace `map` using a `list` comprehension"
fixable: true
location:
row: 5
@ -65,7 +65,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a `set` comprehension)"
commit: "Replace `map` using a `set` comprehension"
suggestion: "Replace `map` using a `set` comprehension"
fixable: true
location:
row: 6
@ -85,7 +85,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a `dict` comprehension)"
commit: "Replace `map` using a `dict` comprehension"
suggestion: "Replace `map` using a `dict` comprehension"
fixable: true
location:
row: 7
@ -105,7 +105,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 8
@ -125,7 +125,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 9
@ -145,7 +145,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 10
@ -165,7 +165,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 11
@ -185,7 +185,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 12
@ -205,7 +205,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a `set` comprehension)"
commit: "Replace `map` using a `set` comprehension"
suggestion: "Replace `map` using a `set` comprehension"
fixable: true
location:
row: 15
@ -225,7 +225,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a `dict` comprehension)"
commit: "Replace `map` using a `dict` comprehension"
suggestion: "Replace `map` using a `dict` comprehension"
fixable: true
location:
row: 16
@ -245,7 +245,7 @@ expression: diagnostics
- kind:
name: UnnecessaryMap
body: "Unnecessary `map` usage (rewrite using a generator expression)"
commit: "Replace `map` using a generator expression"
suggestion: "Replace `map` using a generator expression"
fixable: true
location:
row: 21

View file

@ -5,7 +5,7 @@ expression: diagnostics
- kind:
name: CallDatetimeWithoutTzinfo
body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed"
commit: ~
suggestion: ~
fixable: false
location:
row: 4
@ -18,7 +18,7 @@ expression: diagnostics
- kind:
name: CallDatetimeWithoutTzinfo
body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed"
commit: ~
suggestion: ~
fixable: false
location:
row: 7
@ -31,7 +31,7 @@ expression: diagnostics
- kind:
name: CallDatetimeWithoutTzinfo
body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed"
commit: ~
suggestion: ~
fixable: false
location:
row: 13
@ -44,7 +44,7 @@ expression: diagnostics
- kind:
name: CallDatetimeWithoutTzinfo
body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed"
commit: ~
suggestion: ~
fixable: false
location:
row: 16
@ -57,7 +57,7 @@ expression: diagnostics
- kind:
name: CallDatetimeWithoutTzinfo
body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed"
commit: ~
suggestion: ~
fixable: false
location:
row: 21

Some files were not shown because too many files have changed in this diff Show more