File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def _check_temporary_variables(self, ast_node: ast.FunctionDef | ast.AsyncFuncti
8585 Violation (
8686 line_number = first_usage .lineno ,
8787 column_number = first_usage .col_offset ,
88- violation_code = ViolationCodes .TEMPORARY_VARIABLE ,
88+ violation_code = ViolationCodes .TEMP_VAR ,
8989 )
9090 )
9191 found_temporary_variable = True
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class ViolationCodes:
3737 ASYNC_GET_PREFIX = ViolationCodeItem (code = "COP006" , description = "Avoid get_ prefix in async function names" )
3838
3939 # Variable usage violations
40- TEMPORARY_VARIABLE = ViolationCodeItem (code = "COP007" , description = "Inline variables that are used only once" )
40+ TEMP_VAR = ViolationCodeItem (code = "COP007" , description = "Inline variables that are used only once" )
4141
4242 # Class related violations
4343 FINAL_CLASS = ViolationCodeItem (code = "COP008" , description = "Classes must be marked final with @typing.final" )
You can’t perform that action at this time.
0 commit comments