Skip to content

Commit 9f4214b

Browse files
committed
adding file
1 parent b432e7b commit 9f4214b

1 file changed

Lines changed: 186 additions & 0 deletions

File tree

.scrutinizer.yml

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
2+
filter:
3+
excluded_paths:
4+
- tests/*
5+
6+
build:
7+
tests:
8+
override:
9+
-
10+
command: 'vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v --coverage-clover clover.xml --whitelist src/'
11+
coverage:
12+
file: 'clover.xml'
13+
format: 'clover'
14+
15+
build:
16+
environment:
17+
php: 7.0.6
18+
tests:
19+
override:
20+
- eslint-run "public_html/js/*js"
21+
- shellcheck-run
22+
- csslint-run [file|dir]
23+
-
24+
command: 'phpdbg -qrr vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v --coverage-clover clover.xml --whitelist src/'
25+
coverage:
26+
file: 'clover.xml'
27+
format: 'clover'
28+
29+
checks:
30+
php:
31+
uppercase_constants: true
32+
return_doc_comment_if_not_inferrable: true
33+
return_doc_comments: true
34+
remove_extra_empty_lines: true
35+
phpunit_assertions: true
36+
avoid_fixme_comments: true
37+
param_doc_comment_if_not_inferrable: true
38+
parameter_doc_comments: true
39+
simplify_boolean_return: true
40+
remove_extra_empty_lines: true
41+
property_assignments: true
42+
properties_in_camelcaps: true
43+
precedence_mistakes: true
44+
precedence_in_conditions: true
45+
phpunit_assertions: true
46+
php5_style_constructor: true
47+
parse_doc_comments: true
48+
parameters_in_camelcaps: true
49+
parameter_doc_comments: true
50+
param_doc_comment_if_not_inferrable: true
51+
one_class_per_file: true
52+
non_commented_empty_catch_block: true
53+
no_unnecessary_if: true
54+
no_trailing_whitespace: true
55+
no_short_open_tag: true
56+
no_non_implemented_abstract_methods: true
57+
no_goto: true
58+
no_long_variable_names:
59+
maximum: '25'
60+
more_specific_types_in_doc_comments: true
61+
missing_arguments: true
62+
instanceof_class_exists: true
63+
fix_use_statements:
64+
remove_unused: true
65+
preserve_multiple: false
66+
preserve_blanklines: false
67+
order_alphabetically: true
68+
fix_doc_comments: true
69+
encourage_shallow_comparison: true
70+
deprecated_code_usage: true
71+
deadlock_detection_in_loops: true
72+
comparison_always_same_result: true
73+
code_rating: true
74+
blank_line_after_namespace_declaration: true
75+
avoid_usage_of_logical_operators: true
76+
avoid_perl_style_comments: true
77+
avoid_fixme_comments: true
78+
avoid_duplicate_types: true
79+
avoid_corrupting_byteorder_marks: true
80+
avoid_closing_tag: true
81+
argument_type_checks: true
82+
83+
coding_style:
84+
php:
85+
indentation:
86+
general:
87+
use_tabs: true
88+
size: 4
89+
switch:
90+
indent_case: true
91+
spaces:
92+
general:
93+
linefeed_character: newline
94+
before_parentheses:
95+
function_declaration: false
96+
closure_definition: false
97+
function_call: false
98+
if: true
99+
for: true
100+
while: true
101+
switch: true
102+
catch: true
103+
array_initializer: false
104+
around_operators:
105+
assignment: true
106+
logical: true
107+
equality: true
108+
relational: true
109+
bitwise: true
110+
additive: true
111+
multiplicative: true
112+
shift: true
113+
unary_additive: false
114+
concatenation: false
115+
negation: false
116+
before_left_brace:
117+
class: true
118+
function: true
119+
if: true
120+
else: true
121+
for: true
122+
while: true
123+
do: true
124+
switch: true
125+
try: true
126+
catch: true
127+
finally: true
128+
before_keywords:
129+
else: true
130+
while: true
131+
catch: true
132+
finally: true
133+
within:
134+
brackets: false
135+
array_initializer: false
136+
grouping: false
137+
function_call: false
138+
function_declaration: false
139+
if: false
140+
for: false
141+
while: false
142+
switch: false
143+
catch: false
144+
type_cast: false
145+
ternary_operator:
146+
before_condition: true
147+
after_condition: true
148+
before_alternative: true
149+
after_alternative: true
150+
in_short_version: false
151+
other:
152+
before_comma: false
153+
after_comma: true
154+
before_semicolon: false
155+
after_semicolon: true
156+
after_type_cast: true
157+
braces:
158+
classes_functions:
159+
class: end-of-line
160+
function: end-of-line
161+
closure: end-of-line
162+
if:
163+
opening: end-of-line
164+
always: false
165+
else_on_new_line: false
166+
for:
167+
opening: end-of-line
168+
always: false
169+
while:
170+
opening: end-of-line
171+
always: false
172+
do_while:
173+
opening: end-of-line
174+
always: false
175+
while_on_new_line: false
176+
switch:
177+
opening: end-of-line
178+
try:
179+
opening: end-of-line
180+
catch_on_new_line: false
181+
finally_on_new_line: false
182+
upper_lower_casing:
183+
keywords:
184+
general: lower
185+
constants:
186+
true_false_null: upper

0 commit comments

Comments
 (0)