--- a/checker.py Wed Jul 27 23:20:51 2016 +0800
+++ b/checker.py Sat Jul 30 13:05:59 2016 +0800
print('# C&O task: setup')
for linter in config.get('linters', []):
- if 'name' in linter and linter['name'] not in requested:
- requested.append(linter['name'])
- print('# C&O linters requested: {}'.format(' '.join(requested)))
+ if 'name' not in linter:
+ print("# C&O skipping linter without 'name': {}".format(linter))
+ if 'include' not in linter:
+ print("# C&O skipping '{}': no 'include' in config".format(name))
+ if name not in distinct:
+ print('# C&O linters requested: {}'.format(' '.join(distinct)))
- for linter in config.get('linters', []):
- if 'name' not in linter:
if name in linter_config:
lc = read_linter_config(name)
- if lc is None or 'exec' not in lc:
+ print("# C&O skipping '{}': no config".format(name))
+ print("# C&O skipping '{}': no 'exec' in config".format(name))
print('# C&O linters installed: {}'.format(' '.join(linter_config.keys())))
print('# C&O task: checks')
- for linter in config.get('linters', []):
- if 'name' not in linter or 'include' not in linter:
if linter['name'] not in linter_config: