forked from bolt/bolt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
46 lines (40 loc) · 1.67 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
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/
# external_code_coverage:
# timeout: 1200
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", < 5.0)' # Code Quality Rating drops below 6
- 'project.metric("scrutinizer.test_coverage", < 0.60)' # Code Coverage drops below 60%
# Code Coverage decreased from previous inspection
- 'project.metric_change("scrutinizer.test_coverage", < 0)'
# Code Coverage decreased from previous inspection by more than 10%
- 'project.metric_change("scrutinizer.test_coverage", < -0.10)'