Skip to content

Commit a365cf1

Browse files
committed
Add .scrutinizer.yml
1 parent ff3bbf0 commit a365cf1

File tree

1 file changed

+143
-0
lines changed

1 file changed

+143
-0
lines changed

.scrutinizer.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
filter:
2+
excluded_paths:
3+
- 'tests/*'
4+
5+
checks:
6+
php:
7+
code_rating: true
8+
duplication: true
9+
remove_extra_empty_lines: true
10+
remove_php_closing_tag: true
11+
remove_trailing_whitespace: true
12+
fix_use_statements:
13+
remove_unused: true
14+
preserve_multiple: false
15+
preserve_blanklines: true
16+
order_alphabetically: true
17+
fix_php_opening_tag: true
18+
fix_linefeed: true
19+
fix_line_ending: true
20+
fix_identation_4spaces: true
21+
fix_doc_comments: true
22+
newline_at_end_of_file: true
23+
naming_conventions:
24+
local_variable: '^[a-z][a-zA-Z0-9]*$'
25+
utility_class_name: '^[A-Z][a-zA-Z0-9]*$'
26+
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
27+
property_name: '^[a-z][a-zA-Z0-9]*$'
28+
method_name: '^((?:[a-z]|__)[a-zA-Z0-9]*|test[A-Z][_a-zA-Z0-9]*)$'
29+
parameter_name: '^[a-z][a-zA-Z0-9]*$'
30+
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
31+
type_name: '^(m[0-9a-z_]+|[A-Z][a-zA-Z0-9]*)$'
32+
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
33+
isser_method_name: '^(?:is|can|has|should|may|supports)'
34+
35+
coding_style:
36+
php:
37+
indentation:
38+
general:
39+
use_tabs: false
40+
size: 4
41+
switch:
42+
indent_case: true
43+
spaces:
44+
general:
45+
linefeed_character: newline
46+
before_parentheses:
47+
function_declaration: false
48+
closure_definition: true
49+
function_call: false
50+
if: true
51+
for: true
52+
while: true
53+
switch: true
54+
catch: true
55+
array_initializer: false
56+
around_operators:
57+
assignment: true
58+
logical: true
59+
equality: true
60+
relational: true
61+
bitwise: true
62+
additive: true
63+
multiplicative: true
64+
shift: true
65+
unary_additive: false
66+
concatenation: true
67+
negation: false
68+
before_left_brace:
69+
class: true
70+
function: true
71+
if: true
72+
else: true
73+
for: true
74+
while: true
75+
do: true
76+
switch: true
77+
try: true
78+
catch: true
79+
finally: true
80+
before_keywords:
81+
else: true
82+
while: true
83+
catch: true
84+
finally: true
85+
within:
86+
brackets: false
87+
array_initializer: false
88+
grouping: false
89+
function_call: false
90+
function_declaration: false
91+
if: false
92+
for: false
93+
while: false
94+
switch: false
95+
catch: false
96+
type_cast: false
97+
ternary_operator:
98+
before_condition: true
99+
after_condition: true
100+
before_alternative: true
101+
after_alternative: true
102+
in_short_version: false
103+
other:
104+
before_comma: false
105+
after_comma: true
106+
before_semicolon: false
107+
after_semicolon: true
108+
after_type_cast: true
109+
braces:
110+
classes_functions:
111+
class: new-line
112+
function: new-line
113+
closure: end-of-line
114+
if:
115+
opening: end-of-line
116+
always: true
117+
else_on_new_line: false
118+
for:
119+
opening: end-of-line
120+
always: true
121+
while:
122+
opening: end-of-line
123+
always: true
124+
do_while:
125+
opening: end-of-line
126+
always: true
127+
while_on_new_line: false
128+
switch:
129+
opening: end-of-line
130+
try:
131+
opening: end-of-line
132+
catch_on_new_line: false
133+
finally_on_new_line: false
134+
upper_lower_casing:
135+
keywords:
136+
general: lower
137+
constants:
138+
true_false_null: lower
139+
140+
tools:
141+
external_code_coverage:
142+
timeout: 2400
143+
runs: 1

0 commit comments

Comments
 (0)