-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scrutinizer.yml
73 lines (69 loc) · 1.85 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
environment:
php: 8.1.0
filter:
excluded_paths:
- tests/*
- vendor/*
- .github/*
- .laminas-ci/*
- docker/*
checks:
php:
code_rating: true
verify_property_names: true
verify_argument_usable_as_reference: true
verify_access_scope_valid: true
variable_existence: true
use_statement_alias_conflict: true
useless_calls: true
unused_variables: true
unreachable_code: true
switch_fallthrough_commented: true
sql_injection_vulnerabilities: true
simplify_boolean_return: true
security_vulnerabilities: true
return_in_constructor: true
require_scope_for_methods: true
require_php_tag_first: true
precedence_in_conditions: true
phpunit_assertions: true
non_commented_empty_catch_block: true
no_trailing_whitespace: true
no_non_implemented_abstract_methods: true
no_goto: true
no_eval: true
no_error_suppression: true
deprecated_code_usage: true
avoid_closing_tag: true
before_commands:
- "composer update --prefer-source"
tools:
external_code_coverage:
enabled: true
timeout: 600
runs: 1
php_code_coverage: true
php_cpd:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_loc:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_mess_detector:
enabled: true
filter:
paths: ["src/*"]
php_pdepend:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_analyzer:
enabled: true
filter:
paths: ["src/*", "tests/*"]
sensiolabs_security_checker: true