106 lines
3.8 KiB
JSON
106 lines
3.8 KiB
JSON
{
|
|
"preset": "psr12",
|
|
"rules": {
|
|
"array_indentation": true,
|
|
"array_push": true,
|
|
"array_syntax": true,
|
|
"cast_spaces": true,
|
|
"class_reference_name_casing": true,
|
|
"combine_consecutive_issets": true,
|
|
"constant_case": true,
|
|
"declare_strict_types": true,
|
|
"dir_constant": true,
|
|
"explicit_indirect_variable": true,
|
|
"explicit_string_variable": true,
|
|
"fully_qualified_strict_types": true,
|
|
"function_to_constant": true,
|
|
"function_typehint_space": true,
|
|
"get_class_to_class_keyword": true,
|
|
"group_import": true,
|
|
"heredoc_indentation": true,
|
|
"heredoc_to_nowdoc": true,
|
|
"implode_call": true,
|
|
"include": true,
|
|
"integer_literal_case": true,
|
|
"is_null": true,
|
|
"lambda_not_used_import": true,
|
|
"list_syntax": true,
|
|
"logical_operators": true,
|
|
"magic_constant_casing": true,
|
|
"magic_method_casing": true,
|
|
"mb_str_functions": true,
|
|
"method_chaining_indentation": true,
|
|
"modernize_strpos": true,
|
|
"native_constant_invocation": {
|
|
"strict": false
|
|
},
|
|
"native_function_casing": true,
|
|
"native_function_invocation": true,
|
|
"native_function_type_declaration_casing": true,
|
|
"new_with_braces": {
|
|
"anonymous_class": false,
|
|
"named_class": false
|
|
},
|
|
"no_alias_functions": true,
|
|
"no_alias_language_construct_call": true,
|
|
"no_alternative_syntax": true,
|
|
"no_empty_statement": true,
|
|
"no_homoglyph_names": true,
|
|
"no_leading_namespace_whitespace": true,
|
|
"no_multiline_whitespace_around_double_arrow": true,
|
|
"no_null_property_initialization": true,
|
|
"no_php4_constructor": true,
|
|
"no_short_bool_cast": true,
|
|
"no_singleline_whitespace_before_semicolons": true,
|
|
"no_spaces_around_offset": true,
|
|
"no_trailing_comma_in_list_call": true,
|
|
"no_trailing_comma_in_singleline_array": true,
|
|
"no_trailing_comma_in_singleline_function_call": true,
|
|
"no_unneeded_control_parentheses": true,
|
|
"no_unneeded_curly_braces": true,
|
|
"no_unneeded_import_alias": true,
|
|
"no_unset_on_property": true,
|
|
"no_unused_imports": true,
|
|
"no_whitespace_before_comma_in_array": true,
|
|
"normalize_index_brace": true,
|
|
"nullable_type_declaration_for_default_null_value": true,
|
|
"object_operator_without_whitespace": true,
|
|
"ordered_interfaces": true,
|
|
"php_unit_construct": true,
|
|
"php_unit_dedicate_assert": true,
|
|
"php_unit_no_expectation_annotation": true,
|
|
"php_unit_set_up_tear_down_visibility": true,
|
|
"pow_to_exponentiation": true,
|
|
"regular_callable_call": true,
|
|
"return_assignment": true,
|
|
"self_accessor": true,
|
|
"semicolon_after_instruction": true,
|
|
"set_type_to_cast": true,
|
|
"simple_to_complex_string_variable": true,
|
|
"single_class_element_per_statement": true,
|
|
"single_import_per_statement": false,
|
|
"single_quote": true,
|
|
"single_space_after_construct": true,
|
|
"space_after_semicolon": true,
|
|
"standardize_not_equals": true,
|
|
"static_lambda": true,
|
|
"strict_param": true,
|
|
"string_line_ending": true,
|
|
"switch_continue_to_break": true,
|
|
"ternary_to_elvis_operator": true,
|
|
"ternary_to_null_coalescing": true,
|
|
"trailing_comma_in_multiline": true,
|
|
"trim_array_spaces": true,
|
|
"types_spaces": true,
|
|
"void_return": true,
|
|
"whitespace_after_comma_in_array": true,
|
|
"yoda_style": {
|
|
"equal": false,
|
|
"identical": false,
|
|
"less_and_greater": false
|
|
}
|
|
},
|
|
"exclude": [
|
|
"Examples"
|
|
]
|
|
} |