-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
36 lines (33 loc) · 1.27 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
before_commands:
- composer install
tools:
php_cs_fixer:
enabled: true
extensions:
- php
filter:
paths:
- src/
config:
level: all
php_sim:
enabled: true
min_mass: 50 # Defaults to 16
php_code_sniffer:
enabled: true
config:
standard: PSR2
include_standards:
- vendor/bolt/codingstyle/PhpCodeSniffer/Bolt/
filter:
paths:
- src/
build_failure_conditions:
# - 'elements.rating(<= D).exists' # No classes/methods with a rating of D or worse
- 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse
# - 'issues.label("coding-style").exists' # No coding style issues allowed
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- 'issues.label("coding-style").new.count > 5' # More than 5 new coding style issues.
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
# Note that this should be increased when we get our quality socre up
- 'project.metric("scrutinizer.quality", < 8.0)' # Code Quality Rating drops below 8