Errors detected in .deepsource.toml
.
__init__
PYL-W0201 67
68 if os.path.isfile(self.file) is True:
69 try:
70 self.apk = self.apk_info() 71 except Exception as e:
72 sys.exit(self.writeln(str(e), clr.WARNING))
73 else:
Defining an instance attribute outside __init__
affects the readability of code. It is expected to find all the attributes an instance may have by reading its __init__
method. If there is a need to initialize attribute via sub-initialization methods, it is recommended to assign attributes to None
in the init then call the sub-initialization methods.