forked from spotweb/spotweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
115 lines (112 loc) · 3.73 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
build:
tests:
override:
dependencies:
before:
override:
- 'composer install --no-dev --no-interaction --prefer-source --no-scripts --ignore-platform-reqs'
nodes:
php70:
environment:
php:
version: 7.0
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
php72:
environment:
php:
version: 7.2
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
php73:
environment:
php:
version: 7.3
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
php74:
environment:
php:
version: 7.4
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
php8.1:
image: default-bionic
environment:
php:
version: 8.1.3
tests:
override:
-
command: 'php-scrutinizer-run'
php8.1.14:
environment:
php:
version: 8.1.14
tests:
override:
-
command: 'php-scrutinizer-run'
php8.2.0:
environment:
php:
version: 8.2.0
tests:
override:
-
command: 'php-scrutinizer-run'
php8.2.1:
environment:
php:
version: 8.2.1
tests:
override:
-
command: 'php-scrutinizer-run'
filter:
excluded_paths:
- "js/*"
- "vendor/*"
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
tools:
php_analyzer: true
php_cs_fixer: true