forked from bolt/boltforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
43 lines (37 loc) · 1.56 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
before_commands:
- composer install
tools:
php_cs_fixer:
enabled: true
extensions:
- php
filter:
paths:
- src/
- Extension.php
config:
level: all
php_sim:
enabled: true
min_mass: 30 # Defaults to 16
php_code_sniffer:
enabled: true
config:
standard: PSR2
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", < 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)'