This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
105 lines (105 loc) · 3.38 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
97
98
99
100
101
102
103
104
105
# Component: UCSDMath Project
# Date: 2016-06-11
# File: .scrutinizer.yml
# -----------------------------------
build:
environment:
mysql: 5.7
php: 7.0.6
before_commands:
- "composer install --dev --prefer-source"
tools:
php_code_sniffer:
enabled: true
config:
standard: PSR2
filter:
paths: ["src"]
php_cs_fixer:
enabled: true
config:
level: psr2
filter:
excluded_paths: ["src/dev/*","tests/*","vendor/*"]
paths: ["src/*"]
php_loc:
enabled: true
excluded_dirs: ["src/dev/*","tests/*","vendor/*"]
php_mess_detector:
enabled: true
filter:
paths: ["src/*"]
config:
code_size_rules:
cyclomatic_complexity: true
npath_complexity: true
excessive_method_length: true
excessive_class_length: true
excessive_parameter_list: true
excessive_public_count: true
too_many_fields: true
too_many_methods: true
excessive_class_complexity: true
design_rules:
exit_expression: true
eval_expression: true
goto_statement: true
number_of_class_children: true
depth_of_inheritance: true
coupling_between_objects: true
unused_code_rules:
unused_private_field: true
unused_local_variable: true
unused_private_method: true
naming_rules:
short_variable: { minimum: 3 }
long_variable: { maximum: 50 }
short_method: { minimum: 3 }
constructor_conflict: true
constant_naming: true
boolean_method_name: true
controversial_rules:
superglobals: false
camel_case_class_name: false
camel_case_property_name: false
camel_case_method_name: false
camel_case_parameter_name: false
camel_case_variable_name: false
php_pdepend:
enabled: true
excluded_dirs: ["src/dev","tests","vendor"]
php_analyzer:
enabled: true
filter:
paths: ["src/*"]
php_code_coverage:
enabled: false
sensiolabs_security_checker:
enabled: true
php_analyzer:
enabled: true
config:
checkstyle:
enabled: true
naming:
enabled: true
property_name: ^[_a-zA-Z][a-zA-Z0-9_]*$ # Allow underscores & caps
method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9_]*$ # Allow underscores & caps
parameter_name: ^[a-z][a-zA-Z0-9_]*$ # Allow underscores
local_variable: ^[a-zA-Z][a-zA-Z0-9_]*$ # Allow underscores & caps
checks:
javascript: true
php:
code_rating: true
duplication: true
fix_doc_comments: false
remove_php_closing_tag: false
remove_extra_empty_lines: false
remove_trailing_whitespace: false
fix_use_statements:
remove_unused: false
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: false
filter:
excluded_paths: ["tests/*"]