Clean up linter initialization

develop
lethosor 2015-09-03 15:03:17 -04:00
parent 66c7a461fd
commit 1c5428c3f0
1 changed files with 1 additions and 1 deletions

@ -85,7 +85,7 @@ class TabLinter(Linter):
def fix_line(self, line): def fix_line(self, line):
return line.replace('\t', ' ') return line.replace('\t', ' ')
linters = [NewlineLinter(), TrailingWhitespaceLinter(), TabLinter()] linters = [cls() for cls in Linter.__subclasses__()]
def main(): def main():
root_path = os.path.abspath(sys.argv[1] if len(sys.argv) > 1 else '.') root_path = os.path.abspath(sys.argv[1] if len(sys.argv) > 1 else '.')