Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sims1253/8f822284a643c503d21fd08eff0ca93f to your computer and use it in GitHub Desktop.
Save sims1253/8f822284a643c503d21fd08eff0ca93f to your computer and use it in GitHub Desktop.
coafile:
```
[Python]
files = **/*.py
ignore = foo/bar.py
max_line_length = 80
[Python.linelength]
bears = LineLengthBear
```
output:
```
1 m0hawk@antergos-book ~/Documents/dev/linespots-dev/test % coala -V --flush-cache
[DEBUG][12:20:54] Platform Linux -- Python 3.6.1, coalib 0.11.0.rc1
[DEBUG][12:20:54] Sections: OrderedDict([('python', <Section object(contents=OrderedDict([('files', <Setting object(key='files', value='**/*.py', origin='/home/m0hawk/Documents/dev/linespots-dev/test/.coafile', from_cli=False, to_append=False) at 0x7fc0a11fc748>), ('ignore', <Setting object(key='ignore', value='foo/bar.py', origin='/home/m0hawk/Documents/dev/linespots-dev/test/.coafile', from_cli=False, to_append=False) at 0x7fc0a11fc780>), ('max_line_length', <Setting object(key='max_line_length', value='80', origin='/home/m0hawk/Documents/dev/linespots-dev/test/.coafile', from_cli=False, to_append=False) at 0x7fc0a11fc940>), ('comment0', <Setting object(key='comment0', value='', origin='/home/m0hawk/Documents/dev/linespots-dev/test/.coafile', from_cli=False, to_append=False) at 0x7fc0a11fc5f8>)]), defaults=<Section object(contents=OrderedDict([('flush_cache', <Setting object(key='flush_cache', value='True', origin='/home/m0hawk/Documents/dev/linespots-dev/test/', from_cli=True, to_append=False) at 0x7fc0a11fc358>), ('log_level', <Setting object(key='log_level', value='DEBUG', origin='/home/m0hawk/Documents/dev/linespots-dev/test/', from_cli=True, to_append=False) at 0x7fc0a11fc438>)]), defaults=None, name='cli') at 0x7fc0a11fc2b0>, name='Python') at 0x7fc0a11fc5c0>), ('python.linelength', <Section object(contents=OrderedDict([('bears', <Setting object(key='bears', value='LineLengthBear', origin='/home/m0hawk/Documents/dev/linespots-dev/test/.coafile', from_cli=False, to_append=False) at 0x7fc0a11fc9b0>)]), defaults=<Section object(contents=OrderedDict([('flush_cache', <Setting object(key='flush_cache', value='True', origin='/home/m0hawk/Documents/dev/linespots-dev/test/', from_cli=True, to_append=False) at 0x7fc0a11fc358>), ('log_level', <Setting object(key='log_level', value='DEBUG', origin='/home/m0hawk/Documents/dev/linespots-dev/test/', from_cli=True, to_append=False) at 0x7fc0a11fc438>)]), defaults=None, name='cli') at 0x7fc0a11fc2b0>, name='Python.linelength') at 0x7fc0a11fc7b8>), ('cli', <Section object(contents=OrderedDict([('flush_cache', <Setting object(key='flush_cache', value='True', origin='/home/m0hawk/Documents/dev/linespots-dev/test/', from_cli=True, to_append=False) at 0x7fc0a11fc358>), ('log_level', <Setting object(key='log_level', value='DEBUG', origin='/home/m0hawk/Documents/dev/linespots-dev/test/', from_cli=True, to_append=False) at 0x7fc0a11fc438>)]), defaults=None, name='cli') at 0x7fc0a11fc2b0>)])
[DEBUG][12:20:54] Targets: []
[DEBUG][12:20:54] The file cache was successfully flushed.
Executing section Python...
[DEBUG][12:20:54] Files that will be checked:
/home/m0hawk/Documents/dev/linespots-dev/test/test.py
/home/m0hawk/Documents/dev/linespots-dev/test/ignore.py
[DEBUG][12:20:54] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
Executing section Python.linelength...
[DEBUG][12:20:55] Files that will be checked:
[DEBUG][12:20:55] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
Executing section cli...
[DEBUG][12:20:55] Files that will be checked:
[DEBUG][12:20:55] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
```
test.py and bar.py have lines with length > 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment