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

Class LinterError

ci/lint.py:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 return s.rstrip(' ').rstrip(',')
58
59class LinterError(Exception):
60 def __init__(self, message, lines, total_lines):
61 self.message = message
62 self.lines = lines
63 self.total_lines = total_lines
64
65 def __str__(self):
66 return '%s: %s' % (self.message, format_lines(self.lines, self.total_lines))
67
68 def github_actions_workflow_command(self, filename):
69 first_line = self.lines[0] if self.lines else 1
70 return '::error file=%s,line=%i::%s' % (filename, first_line, self)
71
72class Linter(object):
73 ignore = False

Callers 1

checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected