-
Notifications
You must be signed in to change notification settings - Fork 23
/
.scrutinizer.yml
25 lines (24 loc) · 1.12 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
before_commands:
- "composer install --prefer-dist"
tools:
external_code_coverage: false
php_mess_detector: true
php_code_sniffer: true
php_analyzer: true
sensiolabs_security_checker: true
php_code_coverage: false
php_sim: false
php_cpd: true
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