-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
44 lines (44 loc) · 1.3 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
build:
environment:
php:
version: 5.6, 7.0 # Common versions: 5.4, 5.5, 5.6, 7.0 or hhvm
tests:
override:
-
command: 'phpunit --bootstrap vendor/autoload.php test/'
# command: 'phpunit --bootstrap vendor/autoload.php --coverage-clover coverage.xml test/'
# coverage:
# file: 'coverage.xml'
# format: 'php-clover'
checks:
php:
code_rating: true
duplication: true
coding_style:
php:
indentation:
switch:
indent_case: false
spaces:
before_parentheses:
function_declaration: true
closure_definition: true
around_operators:
concatenation: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
if:
else_on_new_line: true
while:
opening: end-of-line
do_while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
catch_on_new_line: true
finally_on_new_line: true