forked from coala/coala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.coafile
72 lines (55 loc) · 2.32 KB
/
.coafile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[Default]
files = *.py, bears/**/*.py, coalib/**/*.py, ./coala
ignore =
coalib/tests/bearlib/languages/documentation/documentation_extraction_testdata/data.py,
coalib/tests/collecting/collectors_test_dir/bears/incorrect_bear.py,
bears/tests/python/test_files/pylint_test.py
max_line_length = 80
use_spaces = True
[python]
# Patches may conflict with autopep8 so putting them in own section so they
# will be executed sequentially; also we need the LineLengthBear to double
# check the line length because PEP8Bear sometimes isn't able to correct the
# linelength.
bears = SpaceConsistencyBear, PyUnusedCodeBear
default_actions =
SpaceConsistencyBear: ApplyPatchAction,
PyUnusedCodeBear: ApplyPatchAction
[autopep8]
bears = PEP8Bear
default_actions = PEP8Bear: ApplyPatchAction
[linelength] # Sometimes autopep8 makes too long lines, need to check after!
bears = LineLengthBear
[DOCS]
bears = SpaceConsistencyBear, LineLengthBear
files = docs/**/*.rst, CONTRIBUTING.md, README.rst
ignore_length_regex = ^.*https?://
default_actions = SpaceConsistencyBear: ApplyPatchAction
[commit]
bears = GitCommitBear
[Pylint]
enabled = False
bears = PyLintBear
pylint_cli_options = --ignore\=CVS,cindex.py,tests
pylint_disable = missing-docstring, # Lots of functions don't need docstrings
arguments-differ, # Some child classes need to change
# argument signature of a inherited function
bad-builtin, # Pylint doesn't like most builting functions
# like filter, map etc. It prefers using for
# loops for everything - although sometimes
# map and other builtins are more intuitive.
fixme, # Already done using KeywordBear
locally-disabled, # Without this a pylint pragma is also
# considered an issue
no-member, # Currently Pylint doesn't understand our enum()
# making a lot of false positives here
bad-continuation # Our indentation style guide is
# different from PEP
[LineCounting]
enabled = False
bears = LineCountBear
[TODOS]
enabled = False
bears = KeywordBear
ci_keywords = \#TODO, \# TODO, \#FIXME, \# FIXME
cs_keywords =