-
Notifications
You must be signed in to change notification settings - Fork 2
/
.scrutinizer.yml
30 lines (28 loc) · 1.18 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
before_commands:
- "composer install --no-interaction"
checks:
php:
code_rating: true
duplication: false
tools:
php_sim: true
php_changetracking: true
php_cpd: true
php_mess_detector: true
php_code_sniffer: true
php_analyzer: true
sensiolabs_security_checker: true
php_code_coverage: false
php_pdepend:
excluded_dirs: [vendor, doc, tests]
filter:
excluded_paths: [vendor/*, doc/*, tests/*]
build_failure_conditions:
- 'elements.rating(<= C).exists' # No classes/methods with a rating of C or worse
- 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C 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 9