cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:28:52 +01:00
parent 3631fd99fd
commit c8195e6df5
65 changed files with 155 additions and 139 deletions

View File

@@ -23,12 +23,12 @@ $rules = $config->getRules();
$riskyRules = [
'final_internal_class' => false,
// 'no_useless_sprintf' => false,
'dir_constant' => false,
// 'dir_constant' => false,
// 'no_alias_functions' => false,
// 'implode_call' => false,
'combine_nested_dirname' => false,
// 'combine_nested_dirname' => false,
// 'pow_to_exponentiation' => false,
'comment_to_phpdoc' => false,
// 'comment_to_phpdoc' => false,
// 'no_unset_on_property' => false,
'strict_param' => false,
'native_constant_invocation' => false,
@@ -36,7 +36,7 @@ $riskyRules = [
'php_unit_no_expectation_annotation' => false,
'declare_strict_types' => false,
'function_to_constant' => false,
'is_null' => true,
// 'is_null' => false,
'native_function_invocation' => false,
'ternary_to_elvis_operator' => false,
// 'no_trailing_whitespace_in_string' => false,
@@ -57,7 +57,7 @@ $riskyRules = [
'php_unit_mock_short_will_return' => false,
'php_unit_set_up_tear_down_visibility' => false,
'set_type_to_cast' => false,
'string_line_ending' => false,
// 'string_line_ending' => false,
'ordered_interfaces' => false,
'php_unit_expectation' => false,
'php_unit_mock' => false,