-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.scrutinizer.yml
53 lines (53 loc) · 2 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
46
47
48
49
50
51
52
53
checks:
php:
code_rating: true
deprecated_code_usage: true
duplication: true
no_short_open_tag: true
build_failure_conditions:
- 'project.metric_change("scrutinizer.quality", < -0.10)'
- '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 allowed
- '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
# - 'issues.severity(>= MAJOR).exists' # New major or higher severity issues
- 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9
# - 'project.metric("scrutinizer.test_coverage", < 0.80)' # Code Coverage drops below 80%
- 'project.metric_change("scrutinizer.test_coverage", < -0.1)' # Code Coverage decreased from previous inspection by more than 10%
- 'patches.label("Doc Comments").exists' # No doc comments patches allowed
- 'patches.label("Spacing").exists'
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
dependencies:
override:
- COMPOSER_ROOT_VERSION=dev-master
filter:
excluded_paths:
- bin/
- data/
- docs/
- docker/
- public/
- tests/
tools:
external_code_coverage: false
# timeout: 600 # Wait 10 minutes for results
# runs: 1
php_analyzer: true
php_code_sniffer:
config:
standard: PSR12
php_cpd:
enabled: true
excluded_dirs: [bin, data, docs, docker, public, tests, vendor]
php_loc:
enabled: true
excluded_dirs: [bin, data, docs, docker, public, tests, vendor]
php_mess_detector: true
php_pdepend: true
sensiolabs_security_checker: true