-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathConstants.py
59 lines (53 loc) · 1.6 KB
/
Constants.py
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
IMPORTANT_BEAR_LIST = {
'All': {'FilenameBear', 'InvalidLinkBear', 'LineCountBear'},
'C': {'GNUIndentBear', 'CSecurityBear', 'ClangComplexityBear'},
'C#': {'CPDBear', 'CSharpLintBear', 'SpaceConsistencyBear'},
'C++': {'GNUIndentBear', 'CPDBear', 'CPPCheckBear', 'CPPCleanBear',
'ClangComplexityBear'},
'CMake': {'CMakeLintBear', 'SpaceConsistencyBear'},
'CSS': {'CSSLintBear', 'SpaceConsistencyBear'},
'JavaScript': {'JSHintBear', 'JSComplexityBear'},
'Java': {'JavaPMD', 'CheckstyleBear'},
'Python': {'PycodestyleBear'}}
# This includes the bears from IMPORTANT_BEAR_LIST
GREEN_MODE_COMPATIBLE_BEAR_LIST = {}
# This takes precedence over the other two bear lists.
GREEN_MODE_INCOMPATIBLE_BEAR_LIST = {
'FilenameBear',
}
ALL_CAPABILITIES = {
'Code Simplification',
'Commented Code',
'Complexity',
'Documentation',
'Duplication',
'Formatting',
'Grammar',
'Memory Leak',
'Missing Import',
'Redundancy',
'Security',
'Smell',
'Spelling',
'Syntax',
'Undefined Element',
'Unreachable Code',
'Unused Code',
'Variable Misuse'
}
DEFAULT_CAPABILTIES = {
'Syntax',
'Formatting',
'Documentation',
'Redundancy',
'Spelling',
'Smell',
'Code Simplification',
'Complexity',
}
HASHBANG_REGEX = '(^#!(.*))'
ASK_TO_SELECT_LANG = ('Which languages would you like to generate a config '
'file for?\n'
'Please select some languages using '
'their numbers or just press \'Enter\' to select '
'all of them\n')