Releases: doctrine/coding-standard
6.0.1
8.1.0
Release 8.1.0
8.1.0
-
Total issues resolved: 0
-
Total pull requests resolved: 1
-
Total contributors: 1
-
213: Composer: update PHPCS Composer plugin dependency thanks to @jrfnl
8.0.0
Release 8.0.0
This new major version includes rules that make this repository of standards fully compatible with PSR-12 and additional rules for PHP 7.4
.
8.0.0
- Total issues resolved: 0
- Total pull requests resolved: 21
- Total contributors: 6
Improvement
-
194: Update tests expectations based on bugfix in dependencies thanks to @carusogabriel
-
176: Remove dead sniffs autoload thanks to @WyriHaximus
-
170: Improve diff while running
test-report
thanks to @carusogabriel -
169: Ensure that spacing around
cases
are consistent thanks to @carusogabriel -
159: Normalize documentation comments thanks to @mathieu-bour
-
157: Improve diff while running
test-fix
thanks to @carusogabriel -
151: Remove usless interface and trait comments thanks to @BackEndTea
-
192: Allow PHP 8 thanks to @greg0ire
-
147: Use stable version of PHP 7.4 in Travis CI thanks to @carusogabriel
New rule
- 175: Add rule to ensure Arrow Functions declaration format thanks to @carusogabriel
- 174: Add rule forbidding more than one constant declared per statement thanks to @carusogabriel
- 171: Introduce rule requiring Null Coalesce Equal Operator thanks to @carusogabriel
- 166: Ensure that Typed Properties are spaced correctly thanks to @carusogabriel
- 155: Use
SingleLineArrayWhitespace
to ensure single line arrays spacing thanks to @carusogabriel - 154: Use
NegationOperatorSpacingSniff
to ensure no space before-
thanks to @carusogabriel - 148: Adopt PSR-12 as base coding standard thanks to @carusogabriel
PSR-12
- 164: Adopt PSR-12 for imports statements separation thanks to @carusogabriel
- 163: Adopt PSR-12 for return types thanks to @carusogabriel
CI
Dependencies,Improvement
- 160: Introduce Dependabot thanks to @carusogabriel
CI,Improvement
7.0.2
Release 7.0.2
7.0.2
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
bug
- 146: Do not require space after case thanks to @simPod
bug,duplicate
7.0.1
Release 7.0.1
7.0.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
bug
- 146: Do not require space after case thanks to @simPod
7.0.0
Release 7.0.0
- Total issues resolved: 1
- Total pull requests resolved: 12
- Total contributors: 5
Improvement,release blocker
release blocker
Improvement
- 139: Crumble removed TypeHintDeclaration sniff thanks to @simPod
- 137: Require space after Block Control Structures thanks to @simPod
- 132: Update to PHPCS v3.5.x thanks to @carusogabriel
- 131: Drop psr12Compatible false, default is true thanks to @simPod
- 129: Add doctrine/phpcr-odm annotations support thanks to @Lctrs
- 121: Bump
composer.json
master
branch-alias to7.0.x-dev
thanks to @Ocramius
New rule
- 136: Require space before throw, yield and yield from thanks to @simPod
- 128: Camel case vars thanks to @simPod
documentation
-
127: Drop PHP 7.1, add 7.4 to Travis thanks to @simPod
New sniff,RFC
v6.0.0
This new major release brings in some new default rules:
- disallowed
Abstract
,Trait
,Exception
,Interface
prefixes along with suffixes - forbid multiple lines between declared functions
- disallow
/** class Foo */
forclass Foo
comments (some editors add it by default, and it is not useful) - disallow PHPStorm/IntelliJ default file header including author name
- forbid duplicate variable assignments, such as
$foo = $foo = bar()
- enforce spacing between the type declaration and the variadic declaration of a function parameter:
function (int $foo)
- forbid late static binding for constants:
$foo::BAR
is now a violation - require an empty line before a
return
statement when not directly within a flow control construct - intersection and generic types support, thanks to Slevomat CS 5
Total issues resolved: 19
- 38: Forbid
Abstract
,Exception
andInterface
prefixing too thanks to @greg0ire - 52: Exclude Squiz.Commenting.FunctionComment.ThrowsNotCapital sniff thanks to @deeky666
- 90: CI: Test against PHP 7.3 thanks to @Majkl578
- 94: Add test script to make it easier to run the tests thanks to @carusogabriel
- 95: Add sniff to forbid multiple lines between functions thanks to @carusogabriel
- 96: Link to Slack instead of Gitter thanks to @greg0ire
- 97: Disallow "Class <name>" as class comment thanks to @linaori
- 98: Remove IDEA/Phpstorm default file template properly thanks to @ostrolucky
- 99: Update to PHPCS 3.4 and use new Sniffs thanks to @carusogabriel
- 101: Use Ubuntu 16.04 thanks to @carusogabriel
- 104: Forbid duplicated variables assignments thanks to @carusogabriel
- 105: Add rule to force simplification of returns thanks to @carusogabriel
- 108: Make all annotations useful by default thanks to @Majkl578
- 109: Upgrade to Slevomat CS 5.0 thanks to @Majkl578
- 111: Enable SpreadOperatorSpacing sniff thanks to @Majkl578
- 112: Forbid LSB for constants thanks to @Majkl578
- 114: Forbid "Trait" suffix thanks to @Majkl578
- 115: Trigger CI failure when phpcbf cannot fix the file thanks to @ostrolucky
- 120: Require newline before return thanks to @ostrolucky
v5.0.1
In this version we address the issue regarding formatting associative arrays and upgraded composer installer dependency.
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 3
Bug
- 103: Add failing test to reproduce bug with associative arrays thanks to @vladyslavstartsev
- 91: Fix annotation groups usage thanks to @lcobucci
Improvement
v5.0.0
5.0.0
- Total pull requests resolved: 37
- Total contributors: 5
New sniff
- 39: Add ShortList sniff thanks to @carusogabriel
- 43: [RFC] Reference global classes via
use
thanks to @deeky666 - 51: Enable UseSpacing sniff thanks to @Majkl578
- 59: Enable NamespaceSpacing sniff thanks to @Majkl578
- 65: Use new Generic.PHP.LowerCaseType Sniff thanks to @carusogabriel
- 68: UselessAliasSniff to report unnecessaries alias thanks to @carusogabriel
- 69: Add UselessSemicolon sniff thanks to @carusogabriel
- 70: Add UselessParentheses sniff thanks to @carusogabriel
- 71: Add Sniff for force null type hint to be on the last position on annotations thanks to @carusogabriel
- 72: Add Sniff to report useless variables thanks to @carusogabriel
- 73: Add Sniff to reported unused variables passed to closures thanks to @carusogabriel
- 76: Enable StaticClosure sniff thanks to @Majkl578
- 78: Enable ModernClassNameReference sniff thanks to @Majkl578
- 80: Enable TraitUseDeclarationSniff & TraitUseSpacingSniff thanks to @Majkl578
- 82: Enable UselessConstantTypeHintSniff thanks to @Majkl578
- 83: Add sniff to require assignment operators when possible thanks to @carusogabriel
- 88: phpDoc annotation spacing thanks to @Majkl578
- 89: Enable OptimizedFunctionsWithoutUnpacking sniff thanks to @Majkl578
Documentation
- 81: Update homepage thanks to @Majkl578
- 86: Document how to customize rules thanks to @Majkl578
Improvement
- 45: Remove constraint version thanks to @yourwebmaker
- 46: Forbidden usage of settype function thanks to @carusogabriel
- 48: Forbidden usage of extract thanks to @carusogabriel
- 49: Forbidden usage of compact thanks to @carusogabriel
- 50: Remove early return duplicated entry thanks to @carusogabriel
- 53: Use SemicolonSpacing Sniff thanks to @carusogabriel
- 54: Add Generic.Arrays.ArrayIndent sniff thanks to @deeky666
- 55: Use PHPCS XML schema definition thanks to @deeky666
- 61: Improve short list syntax rule description thanks to @carusogabriel
- 62: Update to PHCS 3.3 and Slevomat/CS 4.6.1 thanks to @carusogabriel
- 64: Remove duplicated ShortOpenTags thanks to @carusogabriel
- 66: Add some docs to the doctrine/coding-standard project. thanks to @jwage
- 74: Require reviews from code owners for CS changes thanks to @Majkl578
- 77: Bump patch versions of dependencies thanks to @carusogabriel
- 79: Add .doctrine-project.json to root of the project. thanks to @jwage
- 84: Use new PHPCS array syntax thanks to @carusogabriel
- 85: Validate ruleset against XML schema thanks to @Majkl578
v4.0.0
Total issues resolved: 7
- 28: [RFC] Add more forbiddenAnnotations thanks to @carusogabriel
- 29: [RFC] Add SlevomatCodingStandard.PHP.TypeCast thanks to @carusogabriel
- 31: Add rules about exception types naming thanks to @greg0ire
- 32: Allow using doesNotPerformAssertions annotations thanks to @alcaeus
- 34: Enable EmptyComment sniff thanks to @Majkl578
- 35: Enable RequireOneLinePropertyDocComment sniff thanks to @Majkl578
- 36: Remove checkmark on unenforceable rule thanks to @greg0ire