Add Code Smell Detection and Automatic Refactoring #2247
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 errors
|
mypy:
src/codegen/sdk/extensions/code_smells/smells.py#L62
error: Type argument "SourceFile[Any, Any, Any, Any, Any, Any]" of "CodeSmell" must be a subtype of "Symbol[Any, Any]" [type-var]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L72
error: "Function[Decorator[Any, Any, Parameter[Any, Any]], CodeBlock[Any, Any], Parameter[Any, Any], Type[Any]]" has no attribute "body" [attr-defined]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L76
error: "Function[Decorator[Any, Any, Parameter[Any, Any]], CodeBlock[Any, Any], Parameter[Any, Any], Type[Any]]" has no attribute "body" [attr-defined]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L104
error: Argument 1 to "append" of "list" has incompatible type "tuple[int | None, list[Any]]"; expected "tuple[int, list[Any]]" [arg-type]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L125
error: Argument 2 to "_generate_helper_name" of "LongFunctionRefactoring" has incompatible type "str | None"; expected "str" [arg-type]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L144
error: "Function[Decorator[Any, Any, Parameter[Any, Any]], CodeBlock[Any, Any], Parameter[Any, Any], Type[Any]]" has no attribute "body" [attr-defined]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L193
error: "SourceFile[Any, Any, Any, Any, Any, Any]" has no attribute "add_function"; maybe "functions"? [attr-defined]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L201
error: "SourceFile[Any, Any, Any, Any, Any, Any]" has no attribute "add_function"; maybe "functions"? [attr-defined]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L235
error: "Symbol[Any, Any]" has no attribute "delete" [attr-defined]
|
|
mypy:
src/codegen/sdk/extensions/code_smells/refactorer.py#L274
error: Item "None" of "str | None" has no attribute "title" [union-attr]
|