Git lint passes its own linting. Yay!

This commit is contained in:
Elf M. Sternberg 2016-09-26 15:52:46 -07:00
parent ac7df1d17b
commit c89743dd23
1 changed files with 2 additions and 6 deletions

View File

@ -16,9 +16,6 @@ except ImportError as e:
_ = gettext.gettext
def tap(a):
print("TAP:", a)
return a
VERSION = '0.0.4'
NAME = 'git-lint'
@ -541,7 +538,9 @@ def build_lint_runner(linters, filenames):
[run_one_linter(linter, filenames) for linter in linters], [])
return lint_runner
def dryrun(linters, filenames):
def dryrunonefile(filename, linter):
trimmed_filename = filename.replace(git_base + '/', '', 1)
return (trimmed_filename, linter.name, 0, [' {}'.format(trimmed_filename)])
@ -554,9 +553,6 @@ def dryrun(linters, filenames):
return reduce(operator.add, [dryrunonce(linter, filenames) for linter in linters], [])
# __ __ _
# | \/ |__ _(_)_ _
# | |\/| / _` | | ' \