forked from Spomky-Labs/otphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scrutinizer.yml
37 lines (34 loc) · 1.31 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
before_commands:
- "composer install --prefer-dist"
checks:
php:
code_rating: true
duplication: false
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
tools:
php_sim: false
php_changetracking: true
sensiolabs_security_checker: true
php_mess_detector: true
php_code_sniffer: true
php_analyzer: true
php_code_coverage: false
php_cpd: true
php_pdepend:
excluded_dirs: [vendor/*, doc/*, tests/*]
filter:
excluded_paths: [vendor/*, doc/*, tests/*]
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
- 'patches.label("Doc Comments").exists' # No doc comments patches allowed
- 'patches.label("Spacing").new.count > 1' # More than 1 new spacing patch
- 'issues.label("coding-style").exists' # No coding style issues allowed
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 6