forked from SU-SWS/stanford_paragraph_types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
133 lines (133 loc) · 3.41 KB
/
.codeclimate.yml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
engines:
# https://docs.codeclimate.com/docs/eslint
# ES Linting requires an .eslintrc file to tweak checks.
eslint:
enabled: false
csslint:
enabled: true
checks:
overqualified-elements:
enabled: false
# We don't lint our coffee. Eew.
coffeelint:
enabled: false
# SCSS Lint requires a .scss-lint.yml file in the repo in order to tweak settings.
# Withouth the .scss-lint.yml file it will run with the defaults.
# Defaults file: https://github.com/brigade/scss-lint/blob/master/config/default.yml
scss-lint:
enabled: true
checks:
IdSelector:
enabled: false
ColorVariable:
enabled: false
PropertySortOrder:
enabled: false
SelectorDepth:
enabled: false
QualifyingElement:
enabled: false
VendorPrefix:
enabled: false
LeadingZero:
enabled: false
phpcodesniffer:
enabled: true
checks:
Drupal Commenting FunctionComment TypeHintMissing:
enabled: false
Drupal Commenting FunctionComment IncorrectTypeHint:
enabled: false
DrupalPractice Commenting CommentEmptyLine SpacingAfter:
enabled: false
Drupal NamingConventions ValidFunctionName ScopeNotCamelCaps:
enabled: false
Drupal NamingConventions ValidClassName StartWithCaptial:
enabled: false
Drupal NamingConventions ValidFunctionName NotCamelCaps:
enabled: false
DrupalPractice General ClassName ClassPrefix:
enabled: false
Drupal NamingConventions ValidClassName NoUnderscores:
enabled: false
config:
file_extensions: "php,inc,install,module,profile"
standard: "Drupal,DrupalPractice"
phpmd:
enabled: true
checks:
Design/WeightedMethodCount:
enabled: false
CleanCode/StaticAccess:
enabled: false
CleanCode/ElseExpression:
enabled: false
CleanCode/BooleanArgumentFlag:
enabled: false
UnusedFormalParameter:
enabled: false
config:
# https://phpmd.org/rules/index.html
# The following sets include everything except the controversial set.
# We can configure these further through .xml files. See docs.
rulesets: "cleancode,codesize,design,naming,unusedcode"
# Include special Drupal file extensions.
file_extensions: "inc,module,profile,php,install"
# https://docs.codeclimate.com/docs/phan
phan:
enabled: true
config:
file_extensions: "php,module,profile,inc"
# minimum-severity: 1
ignore-undeclared: true
# quick: true
# backward-compatiility-checks: true
# dead-code-detection: true
# https://docs.codeclimate.com/docs/duplication
duplication:
enabled: true
# exclude_paths:
# - examples/
config:
languages:
javascript:
mass_threshold: 50
# count_threshold: 3
php:
mass_threshold: 60
fixme:
enabled: true
config:
strings:
- FIXME
- BUG
- TODO
- todo
- dpm
- dsm
ratings:
paths:
- "**.inc"
- "**.module"
- "**.profile"
- "**.php"
- "**.install"
- "**.scss"
- "**.sass"
- "**.js"
# exclude these files/paths
exclude_paths:
- "**.features.**"
- "**.views_default.inc"
- "**.field_group.inc"
- "**.ds.inc"
- "**.bean.inc"
- "**.context.inc"
- "test/**/*"
- "**/vendor/**/*"
- "**.min.*"
- "tests/"
- "spec/"
- "**/vendor/"
- "**.api.php"
- "*.twig"