MCPcopy Create free account
hub / github.com/DFHack/dfhack / check

Method check

ci/lint.py:74–80  ·  view source on GitHub ↗
(self, lines)

Source from the content-addressed store, hash-verified

72class Linter(object):
73 ignore = False
74 def check(self, lines):
75 failures = []
76 for i, line in enumerate(lines):
77 if not self.check_line(line):
78 failures.append(i + 1)
79 if len(failures):
80 raise LinterError(self.msg, failures, len(lines))
81
82 def fix(self, lines):
83 for i in range(len(lines)):

Callers 1

mainFunction · 0.80

Calls 2

LinterErrorClass · 0.85
check_lineMethod · 0.45

Tested by

no test coverage detected