This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.codeclimate.yml
102 lines (102 loc) · 2.59 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
engines:
# https://docs.codeclimate.com/docs/eslint
# ES Linting requires an .eslintrc file to tweak checks.
eslint:
enabled: false
csslint:
enabled: false
coffeelint:
enabled: false
scss-lint:
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
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"
- "**.css"
- "**.scss"
- "**.sass"
- "**.js"
# exclude these files/paths
exclude_paths:
- "test/**/*"
- "**/vendor/**/*"
- "**.min.*"
- "tests/"
- "spec/"
- "**/vendor/"