-
Notifications
You must be signed in to change notification settings - Fork 35
/
.codeclimate.yml
121 lines (108 loc) · 3.02 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
version: "1"
prepare:
fetch:
- url: "https://gist.githubusercontent.com/Ovsyanka/e2ab2ff76e7c0d7e75a1e4213a03ff95/raw/afd91af92a68500d24636791f56a48daea034dfa/ruleset.xml"
path: ".cs-ruleset.xml"
exclude_patterns:
- "htdocs/libraries/smarty/"
- "htdocs/libraries/wideimage/"
- "htdocs/plugins/"
- "htdocs/language/"
- "htdocs/editors/"
- "htdocs/libraries/"
- "composer.lock"
checks:
argument-count:
config:
threshold: 4
complex-logic:
config:
threshold: 4
file-lines:
config:
threshold: 250
method-complexity:
config:
threshold: 5
method-count:
config:
threshold: 20
method-lines:
config:
threshold: 25
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 4
#similar-code:
# config:
# threshold: # language-specific defaults. an override will affect all languages.
#identical-code:
# config:
# threshold: # language-specific defaults. an override will affect all languages.
plugins:
# engine offers style checking for all CSS stylesheets. It also includes basic
# syntax checking and can check your code against a configured standard.
csslint:
enabled: true
# helps developers define and maintain consistent coding styles between different
# editors and IDEs. The Code Climate EditorConfig plugin will validate your project
# files with your .editorconfig configuration.
editorconfig:
enabled: true
channel: beta
config:
editorconfig: .editorconfig
# Offers linting, complexity analysis, and style checking for your modern
# EcmaScript/JavaScript code.
#eslint:
# enabled: true
# channel: "eslint-4"
# config:
# extensions:
# - .js
# ignore_warnings: true
# performs a case-sensitive search for the following strings in your project:
# TODO, FIXME, HACK, XXX, and BUG, which are all things you should fix now,
# not later
fixme:
enabled: true
config:
strings:
- FIXME
- BUG
- TODO
# scans the libraries used by your project and flags potential compliance and
# compatibility issues, optionally based on policies that you configure.
git-legal:
enabled: true
# a tool designed to check markdown files and flag style issues.
markdownlint:
enabled: true
# a Static analyzer for PHP by the creators of PHP.
phan:
enabled: true
config:
file_extensions: php
minimum-severity: 0
ignore-undeclared: false
quick: false
backward-compatibility-checks: false
dead-code-detection: false
# helps you detect violations of a defined coding standard.
phpcodesniffer:
enabled: true
config:
standard: .cs-ruleset.xml
file_extensions: php
ignore_warnings: true
# looks for several potential problems within PHP source code, like possible bugs,
# suboptimal code, overcomplicated expressions, and unused parameters, methods, or
# properties.
phpmd:
enabled: true
config:
file_extensions:
- php