-
Notifications
You must be signed in to change notification settings - Fork 2
/
.scrutinizer.yml
96 lines (79 loc) · 2.14 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
before_commands:
- "composer install --prefer-source"
tools:
# Code Coverage
php_code_coverage:
enabled: true
test_command: phpunit
filter:
excluded_paths:
- 'vendor/*'
- 'tests/*'
# Code Sniffer
php_code_sniffer:
enabled: true
config:
standard: PSR2
filter:
excluded_paths:
- 'vendor/*'
# Copy/Paste Detector
php_cpd:
enabled: true
excluded_dirs:
- 'vendor'
# PHP CS Fixer (http://http://cs.sensiolabs.org/).
php_cs_fixer:
enabled: true
config:
level: psr2
filter:
excluded_paths:
- 'vendor/*'
# Analyzes the size and structure of a PHP project.
php_loc:
enabled: true
command: phploc
excluded_dirs:
- vendor
# PHP Mess Detector (http://phpmd.org).
php_mess_detector:
enabled: true
config:
rulesets:
- codesize
- unusedcode
- naming
- design
- controversial
filter:
excluded_paths:
- 'vendor/*'
# Analyzes the size and structure of a PHP project.
php_pdepend:
enabled: true
excluded_dirs:
- vendor
# Runs Scrutinizer's PHP Analyzer Tool
php_analyzer:
enabled: true
filter:
excluded_paths:
- 'vendor/*'
# Security Advisory Checker
sensiolabs_security_checker: true
build:
environment:
php:
version: '8.0'
nodes:
analysis:
dependencies:
after:
- composer require --dev squizlabs/php_codesniffer
tests:
override:
-
command: phpcs-run
use_website_config: false
- php-scrutinizer-run