forked from LimeSurvey/LimeSurvey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
96 lines (94 loc) · 2.73 KB
/
.scrutinizer.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
build:
tests:
override:
- true
nodes:
tests:
environment:
php:
version: 7.4
pecl_extensions:
- zip
analysis:
environment:
php:
version: 7.4
pecl_extensions:
- zip
tests:
override: [php-scrutinizer-run]
filter:
paths: [application/*]
excluded_paths:
- 'application/views/*'
- 'framework/yiilite.php'
dependency_paths:
- 'framework/'
- 'application/helpers/adodb/*'
- 'application/libraries/admin/http/*'
- 'application/libraries/admin/pclzip/*'
- 'application/extensions/*'
- 'application/tests/*'
- 'application/third_party/*'
- 'third_party/*'
- 'installer/*'
- 'application/helpers/Zend/*'
- 'application/libraries/admin/Services_JSON.php'
checks:
javascript: true
php:
code_rating: true
duplication: true
one_class_per_file: true
tools:
php_cs_fixer:
enabled: true
config:
level: psr2
lowercase_keywords: false
filter:
excluded_paths:
- 'framework/*'
- 'locale/*'
- 'docs/*'
- 'fonts/*'
- 'third_party/*'
- 'application/helpers/adodb/*'
- 'application/helpers/Zend/*'
- 'application/libraries/admin/http/*'
- 'application/libraries/admin/Services_JSON.php'
- 'application/libraries/admin/pclzip/*'
- 'application/extensions/*'
- 'application/views/*'
- 'application/third_party/*'
- 'images/*'
- 'styles/*'
- 'styles-public/*'
- 'templates/*'
- 'themes/*'
- 'tmp/*'
- 'upload/*'
- 'tests/*'
- 'application/tests/*'
coding_style:
php:
braces:
classes_functions:
class: new-line
function: new-line
closure: new-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
do_while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
upper_lower_casing:
constants:
true_false_null: lower