-
Notifications
You must be signed in to change notification settings - Fork 1
/
.codeclimate.yml
112 lines (111 loc) · 3.28 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
version: "2"
checks:
argument-count:
enabled: false
method-complexity:
config:
threshold: 10
plugins:
# https://docs.codeclimate.com/docs/eslint
# ES Linting requires an .eslintrc file to tweak checks.
eslint:
enabled: false
# We can ignore css since we compile all css from scss files.
csslint:
enabled: false
# We don't lint our coffee. Eew.
coffeelint:
enabled: false
# SASS Lint requires a .sass-lint.yml file in the repo in order to tweak settings.
# Withouth the .sass-lint.yml file it will run with the defaults.
# Defaults file: https://github.com/sasstools/sass-lint/blob/master/lib/config/sass-lint.yml
sass-lint:
enabled: true
# 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: false
phpcodesniffer:
enabled: true
checks:
Drupal Commenting FunctionComment TypeHintMissing:
enabled: true
Drupal Commenting FunctionComment IncorrectTypeHint:
enabled: true
DrupalPractice Commenting CommentEmptyLine SpacingAfter:
enabled: true
Drupal NamingConventions ValidFunctionName ScopeNotCamelCaps:
enabled: true
Drupal NamingConventions ValidClassName StartWithCaptial:
enabled: false
Drupal NamingConventions ValidFunctionName NotCamelCaps:
enabled: false
DrupalPractice General ClassName ClassPrefix:
enabled: false
Drupal NamingConventions ValidClassName NoUnderscores:
enabled: true
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
Naming/ShortVariable:
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
# exclude these files/paths
exclude_patterns:
- "tests/"
- "**.min.*"
- "**/Gruntfile.js"
- "**.min.*"
- "**/tests/**/*"