lint: Avoid checking depends/ for now

develop
lethosor 2015-02-14 22:13:10 -05:00
parent 7b29538485
commit 2c744035ab
1 changed files with 5 additions and 2 deletions

@ -7,6 +7,9 @@ path_blacklist = [
'plugins/stonesense/allegro', 'plugins/stonesense/allegro',
'plugins/isoworld/allegro', 'plugins/isoworld/allegro',
'plugins/isoworld/agui', 'plugins/isoworld/agui',
'depends/',
'.git/',
'build',
] ]
def valid_file(filename): def valid_file(filename):
@ -75,8 +78,8 @@ linters = [NewlineLinter(), TrailingWhitespaceLinter(), TabLinter()]
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 '.')
path_blacklist.append(root_path + '/.git') global path_blacklist
path_blacklist.append(root_path + '/build') path_blacklist = map(lambda s: os.path.join(root_path, s), path_blacklist)
for cur, dirnames, filenames in os.walk(root_path): for cur, dirnames, filenames in os.walk(root_path):
for filename in filenames: for filename in filenames: