forked from coala/coala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.coafile
102 lines (82 loc) · 3.54 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[Default]
files = *.py, coalib/**/*.py, ./coala, tests/**/*.py
ignore =
tests/bearlib/languages/documentation/documentation_extraction_testdata/data.py,
tests/collecting/collectors_test_dir/bears/incorrect_bear.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 = docs/API/**
ignore_length_regex = ^.*https?://
default_actions = SpaceConsistencyBear: ApplyPatchAction
[languagetool]
enabled = False
bears = LanguageToolBear
files = docs/**/*.rst, CONTRIBUTING.md, README.rst
ignore = docs/API/**
languagetool_disable_rules =
EN_QUOTES, # `` for links in rst files
WHITESPACE_RULE, # Indents in code
UPPERCASE_SENTENCE_START, # Sentences start with "coala"
COMMA_PARENTHESIS_WHITESPACE, # Confuses .coafile
DOUBLE_PUNCTUATION, # Used in `.. note::`
SENTENCE_WHITESPACE, # Thinks coalib.xyz should have space
THE_PUNCT, # Confused by symbols in code
EN_A_VS_AN, # Mistakes variable `a` to be an article
EN_UNPAIRED_BRACKETS, # Confused with brackets in code
ENGLISH_WORD_REPEAT_BEGINNING_RULE, # Confuses itself in regex
CD_NN, # index -> indices
SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA,
SENTENCE_FRAGMENT, # Thinks headings are sentences
ENGLISH_WORD_REPEAT_RULE, # Found in code
POSSESIVE_APOSTROPHE # Confused by directory name "objects"
[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
max_lines_per_file = 1000
[invalidlinks]
enabled = False
files = docs/**/*.rst
ignore = docs/API
bears = InvalidLinkBear
[TODOS]
enabled = False
bears = KeywordBear
ci_keywords = \#TODO, \# TODO, \#FIXME, \# FIXME
cs_keywords =