Skip to content

Commit

Permalink
Add class_keyword to risky ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Dec 28, 2023
1 parent ad49971 commit 93cbd5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
---------

## [1.1.0] - 2023-12-28
- Add new risky `class_keyword` rule (#64)
NB: the rule is experimental, and relies on runtime autoload to determine if a FCQN refers to an existing class

## [1.0.1] - 2023-11-30
- Allow Symfony 7
- Move `long_to_shorthand_operator` to `RiskyRulesProvider` (#62)
Expand Down
1 change: 1 addition & 0 deletions src/Rules/AbstractRuleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ abstract class AbstractRuleProvider implements RulesProviderInterface
'3.30.0' => ['attribute_empty_parentheses'],
'3.32.0' => ['no_unneeded_braces'],
'3.33.0' => ['native_type_declaration_casing'],
'3.42.0' => ['class_keyword'],
];

/**
Expand Down
1 change: 1 addition & 0 deletions src/Rules/RiskyRulesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public function getRules(): array
'@PER-CS2.0:risky' => true,
'@PSR12:risky' => true,
'array_push' => true,
'class_keyword' => true,
'combine_nested_dirname' => true,
'dir_constant' => true,
'ereg_to_preg' => true,
Expand Down

0 comments on commit 93cbd5e

Please sign in to comment.