mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
pylint: Enable and fix no-self-use warnings
This commit is contained in:
parent
449f56c15b
commit
784ae91b41
@ -154,7 +154,8 @@ class TraceAnalyser:
|
||||
|
||||
print(len(intersection), "test-cases - ", len(mismatches), " mismatche(s)")
|
||||
|
||||
def check_traces(self, test_name, left, right, mismatches):
|
||||
@classmethod
|
||||
def check_traces(cls, test_name, left, right, mismatches):
|
||||
for trace_id, trace in enumerate(left.traces):
|
||||
left_trace = trace
|
||||
right_trace = right.traces[trace_id]
|
||||
|
@ -24,7 +24,6 @@ disable=
|
||||
invalid-name,
|
||||
missing-docstring,
|
||||
no-else-return,
|
||||
no-self-use,
|
||||
pointless-string-statement,
|
||||
redefined-builtin,
|
||||
redefined-outer-name,
|
||||
|
@ -41,7 +41,8 @@ class regressor:
|
||||
"build/test/tools/ossfuzz")
|
||||
self._logpath = os.path.join(self._repo_root, "test_results")
|
||||
|
||||
def parseCmdLine(self, description, args):
|
||||
@classmethod
|
||||
def parseCmdLine(cls, description, args):
|
||||
argParser = ArgumentParser(description)
|
||||
argParser.add_argument('-o', '--out-dir', required=True, type=str,
|
||||
help="""Directory where test results will be written""")
|
||||
|
@ -39,6 +39,7 @@ class Rule:
|
||||
self.error('Rule is incorrect.\nModel: ' + str(m))
|
||||
self.solver.pop()
|
||||
|
||||
def error(self, msg):
|
||||
@classmethod
|
||||
def error(cls, msg):
|
||||
print(msg)
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user