diff --git a/amarna/rules/GenericGatherer.py b/amarna/rules/GenericGatherer.py index 8d872dd..3f2b5ab 100644 --- a/amarna/rules/GenericGatherer.py +++ b/amarna/rules/GenericGatherer.py @@ -23,6 +23,6 @@ def gather(self, fname: str, tree: Tree) -> GenericGatherType: return self.get_gathered_data() def get_gathered_data(self) -> GenericGatherType: - # Overriden in inherited class + # Overridden in inherited class # TODO (montyly): use abc? return self.results diff --git a/amarna/rules/local_rules/UninitializedVariableRule.py b/amarna/rules/local_rules/UninitializedVariableRule.py index f6bd9fd..fb5af2c 100644 --- a/amarna/rules/local_rules/UninitializedVariableRule.py +++ b/amarna/rules/local_rules/UninitializedVariableRule.py @@ -19,7 +19,7 @@ def code_element_function(self, tree: Tree) -> None: assigned_variables: Set[Token] = set() for local_declaration in tree.find_data("code_element_local_var"): - # only gather unintialized locals + # only gather uninitialized locals if len(local_declaration.children) == 1: for child in local_declaration.children[0].find_data("identifier_def"): local_variables.add(child.children[0]) diff --git a/amarna/rules/local_rules/UnknownDecoratorRule.py b/amarna/rules/local_rules/UnknownDecoratorRule.py index 11c0167..5786c7c 100644 --- a/amarna/rules/local_rules/UnknownDecoratorRule.py +++ b/amarna/rules/local_rules/UnknownDecoratorRule.py @@ -34,7 +34,7 @@ def code_element_function(self, tree: Tree) -> None: unknown_decorators.append(decorator) for arg in unknown_decorators: - # TODO (montyly): mypy compain about the next attributes access + # TODO (montyly): mypy complain about the next attributes access positions = PositionType(arg.line, arg.column, arg.end_line, arg.end_column) # type: ignore sarif = create_result( self.fname,