-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scrutinizer.yml
executable file
·93 lines (89 loc) · 1.93 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
filter:
excluded_paths:
- assets/
- languages/
- node_modules/
- tests/
- vendor/
- wordpress/
- gulpfile.js
build:
nodes:
analysis:
cache:
disabled: false
directories:
- ~/.composer/cache
dependencies:
before:
- composer require --dev johnpbloch/wordpress
environment:
elasticsearch: false
memcached: false
mongodb: false
neo4j: false
node: false
php: '7.2.0'
postgresql: false
rabbitmq: false
redis: false
tests:
override:
- php-scrutinizer-run --enable-security-analysis
tools:
php_code_sniffer:
config:
standard: WordPress
sensiolabs_security_checker: true
checks:
php:
no_exit: false
simplify_boolean_return: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
before_parentheses:
if: false
for: false
while: false
switch: false
catch: false
around_operators:
concatenation: true
within:
brackets: true
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
braces:
classes_functions:
class: new-line
function: new-line
closure: new-line
if:
else_on_new_line: true
do_while:
while_on_new_line: true
try:
catch_on_new_line: true
finally_on_new_line: true
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower