Skip to content

Commit d7c6b8d

Browse files
authored
[11.x] start syncing StyleCI rules to Pint (#54326)
* start syncing StyleCI rules to Pint starting with the simple ones * wip * wip * wip * wip * wip * wip
1 parent f958f33 commit d7c6b8d

File tree

1 file changed

+122
-1
lines changed

1 file changed

+122
-1
lines changed

pint.json

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,128 @@
11
{
22
"preset": "empty",
33
"rules": {
4-
"method_chaining_indentation": true
4+
"array_indentation": true,
5+
"binary_operator_spaces": {
6+
"default": "single_space"
7+
},
8+
"blank_line_after_namespace": true,
9+
"blank_line_after_opening_tag": true,
10+
"blank_line_before_statement": {
11+
"statements": [
12+
"return"
13+
]
14+
},
15+
"blank_line_between_import_groups": true,
16+
"cast_spaces": true,
17+
"class_reference_name_casing": true,
18+
"clean_namespace": true,
19+
"compact_nullable_type_declaration": true,
20+
"concat_space": true,
21+
"constant_case": {
22+
"case": "lower"
23+
},
24+
"declare_equal_normalize": true,
25+
"elseif": true,
26+
"encoding": true,
27+
"full_opening_tag": true,
28+
"function_declaration": true,
29+
"heredoc_to_nowdoc": true,
30+
"include": true,
31+
"indentation_type": true,
32+
"integer_literal_case": true,
33+
"line_ending": true,
34+
"lowercase_cast": true,
35+
"lowercase_keywords": true,
36+
"lowercase_static_reference": true,
37+
"magic_constant_casing": true,
38+
"magic_method_casing": true,
39+
"method_argument_space": {
40+
"on_multiline": "ignore"
41+
},
42+
"method_chaining_indentation": true,
43+
"native_function_casing": true,
44+
"native_type_declaration_casing": true,
45+
"no_alternative_syntax": true,
46+
"no_binary_string": true,
47+
"no_blank_lines_after_class_opening": true,
48+
"no_blank_lines_after_phpdoc": true,
49+
"no_closing_tag": true,
50+
"no_empty_phpdoc": true,
51+
"no_empty_statement": true,
52+
"no_extra_blank_lines": {
53+
"tokens": [
54+
"extra",
55+
"throw",
56+
"use"
57+
]
58+
},
59+
"no_leading_import_slash": true,
60+
"no_leading_namespace_whitespace": true,
61+
"no_multiline_whitespace_around_double_arrow": true,
62+
"no_short_bool_cast": true,
63+
"no_singleline_whitespace_before_semicolons": true,
64+
"no_space_around_double_colon": true,
65+
"no_spaces_after_function_name": true,
66+
"no_trailing_whitespace": true,
67+
"no_trailing_whitespace_in_comment": true,
68+
"no_unneeded_braces": true,
69+
"no_unneeded_control_parentheses": true,
70+
"no_unneeded_import_alias": true,
71+
"no_unset_cast": true,
72+
"no_unused_imports": true,
73+
"no_useless_return": true,
74+
"no_whitespace_before_comma_in_array": true,
75+
"no_whitespace_in_blank_line": true,
76+
"normalize_index_brace": true,
77+
"not_operator_with_successor_space": true,
78+
"nullable_type_declaration_for_default_null_value": true,
79+
"object_operator_without_whitespace": true,
80+
"ordered_imports": {
81+
"sort_algorithm": "alpha",
82+
"imports_order": [
83+
"const",
84+
"class",
85+
"function"
86+
]
87+
},
88+
"phpdoc_indent": true,
89+
"phpdoc_inline_tag_normalizer": true,
90+
"phpdoc_no_access": true,
91+
"phpdoc_no_package": true,
92+
"phpdoc_no_useless_inheritdoc": true,
93+
"phpdoc_return_self_reference": true,
94+
"phpdoc_scalar": true,
95+
"phpdoc_single_line_var_spacing": true,
96+
"phpdoc_summary": true,
97+
"phpdoc_trim": true,
98+
"phpdoc_types": true,
99+
"phpdoc_var_without_name": true,
100+
"return_type_declaration": {
101+
"space_before": "none"
102+
},
103+
"short_scalar_cast": true,
104+
"single_blank_line_at_eof": true,
105+
"single_class_element_per_statement": true,
106+
"single_line_after_imports": true,
107+
"single_line_comment_style": true,
108+
"single_quote": true,
109+
"space_after_semicolon": true,
110+
"standardize_not_equals": true,
111+
"switch_case_semicolon_to_colon": true,
112+
"switch_case_space": true,
113+
"switch_continue_to_break": true,
114+
"ternary_operator_spaces": true,
115+
"trim_array_spaces": true,
116+
"type_declaration_spaces": true,
117+
"types_spaces": true,
118+
"unary_operator_spaces": true,
119+
"visibility_required": {
120+
"elements": [
121+
"method",
122+
"property"
123+
]
124+
},
125+
"whitespace_after_comma_in_array": true
5126
},
6127
"exclude": [
7128
"tests"

0 commit comments

Comments
 (0)