Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit a1ab350

Browse files
committed
Configure Scrutinizer
1 parent f55d49e commit a1ab350

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.scrutinizer.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
build:
2+
environment:
3+
variables:
4+
COMPOSER_AUTH: '{"github-oauth": {"github.com": "430abe61f26d469bc41868919beb57cadbda00e5"}, "http-basic":{"repo.packagist.com":{"username":"token","password":"8d34237f0cb0ac053c5854792f19bf2824bc4929693e6c6d0d046e7752cf"}}}'
5+
php:
6+
version: 7.3
7+
pecl_extensions:
8+
- zip
9+
10+
nodes:
11+
analysis:
12+
dependencies:
13+
override:
14+
- composer install
15+
tests:
16+
override:
17+
- php-scrutinizer-run
18+
19+
tests:
20+
override:
21+
command: 'php -v'
22+
23+
filter:
24+
paths: ['src/*']
25+
excluded_paths:
26+
- 'ci/*'
27+
- 'vendor/*'
28+
- '*/Tests/*'
29+
30+
tools:
31+
php_sim: true
32+
php_pdepend: true
33+
php_analyzer: true
34+
35+
build_failure_conditions:
36+
- 'issues.severity(= CRITICAL).new.exists'
37+
- 'elements.rating(<= D).new.exists'
38+
39+
checks:
40+
php:
41+
return_in_constructor: true
42+
uppercase_constants: true
43+
properties_in_camelcaps: true
44+
parameters_in_camelcaps: true
45+
no_goto: true
46+
function_in_camel_caps: true
47+
avoid_perl_style_comments: true
48+
check_method_contracts:
49+
verify_interface_like_constraints: true
50+
verify_documented_constraints: true
51+
verify_parent_constraints: true

0 commit comments

Comments
 (0)