From 45f7a0f33989df086831278cd29921f8a60e828e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Kut=C3=A1=C4=8D?= Date: Mon, 7 Sep 2020 19:50:34 +0200 Subject: [PATCH] Add new sniffs and bump version --- CHANGELOG.md | 18 ++++++++++++++++++ Rules/Parts/phpcs-slevomat.xml | 4 +++- Rules/phpcs-strict.xml | 6 ++++++ SniffsList.md | 6 +++++- composer.json | 2 +- 5 files changed, 33 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f632546..8af6154 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## v0.7.x + +### v0.7.0 + +> Requires Slevomat coding standards 6.4 or higher + +**Added rules:** + - SlevomatCodingStandard.Commenting.DeprecatedAnnotationDeclaration + - SlevomatCodingStandard.ControlStructures.RequireMultiLineCondition + - SlevomatCodingStandard.Functions.RequireMultiLineCall + +**Added strict rules:** + - SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition + - SlevomatCodingStandard.Functions.RequireSingleLineCall + + **Removed rule:** + - SlevomatCodingStandard.Classes.UnusedPrivateElements - Is *deprecated* + ## v0.6.x ### v0.6.1 diff --git a/Rules/Parts/phpcs-slevomat.xml b/Rules/Parts/phpcs-slevomat.xml index 721e813..5871536 100644 --- a/Rules/Parts/phpcs-slevomat.xml +++ b/Rules/Parts/phpcs-slevomat.xml @@ -30,8 +30,8 @@ - + @@ -47,6 +47,7 @@ + @@ -57,6 +58,7 @@ + diff --git a/Rules/phpcs-strict.xml b/Rules/phpcs-strict.xml index 469967d..6ef384b 100644 --- a/Rules/phpcs-strict.xml +++ b/Rules/phpcs-strict.xml @@ -43,12 +43,18 @@ + + + + + + diff --git a/SniffsList.md b/SniffsList.md index 6ed0af4..49b6af7 100644 --- a/SniffsList.md +++ b/SniffsList.md @@ -100,8 +100,8 @@ - SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature - SlevomatCodingStandard.Classes.RequireSingleLineMethodSignature - SlevomatCodingStandard.Classes.TraitUseSpacing - - SlevomatCodingStandard.Classes.UnusedPrivateElements - SlevomatCodingStandard.Classes.UselessLateStaticBinding + - SlevomatCodingStandard.Commenting.DeprecatedAnnotationDeclaration - SlevomatCodingStandard.Commenting.EmptyComment - SlevomatCodingStandard.Commenting.ForbiddenAnnotations - SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration @@ -113,15 +113,19 @@ - SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing - SlevomatCodingStandard.ControlStructures.LanguageConstructWithParentheses - SlevomatCodingStandard.ControlStructures.NewWithParentheses + - SlevomatCodingStandard.ControlStructures.RequireMultiLineCondition - SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator - SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator - SlevomatCodingStandard.ControlStructures.RequireShortTernaryOperator + - SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition - SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn - SlevomatCodingStandard.ControlStructures.UselessTernaryOperator - SlevomatCodingStandard.Exceptions.DeadCatch - SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly - SlevomatCodingStandard.Functions.ArrowFunctionDeclaration - SlevomatCodingStandard.Functions.DisallowEmptyFunction + - SlevomatCodingStandard.Functions.RequireMultiLineCall + - SlevomatCodingStandard.Functions.RequireSingleLineCall - SlevomatCodingStandard.Functions.StaticClosure - SlevomatCodingStandard.Functions.TrailingCommaInCall - SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure diff --git a/composer.json b/composer.json index 97fe67b..16d6d99 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,6 @@ ], "require": { "php": "^7.1", - "slevomat/coding-standard": "^6.3.2" + "slevomat/coding-standard": "^6.4.0" } }