Releases: doctrine/coding-standard
Releases · doctrine/coding-standard
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
v3.0.1
v3.0.0
This release introduces a few new additional checks that are enabled by default:
- Use the "Null Coalesce" (
??
) operator where applicable - Enforce usage of parentheses together with the
new
statement - Enforce early return where applicable
- Forbid usage of core function aliases
Total issues resolved: 7
- 18: Propose semantic versioning of the library thanks to @Ocramius
- 19: Add Null Coalesce Operator thanks to @carusogabriel
- 20: New with parentheses thanks to @carusogabriel
- 22: Early return sniff thanks to @carusogabriel
- 23: ForbiddenFunctions: Add more basic blackisted aliases thanks to @Majkl578
- 24: Enable ForbiddenComments sniff thanks to @Majkl578
- 25: Whitelist
@requires
annotation thanks to @Majkl578
v2.1.0
This release adds sniffs to import global functions and constants.
Total issues resolved: 3
Improvement
2.0.0
Version 2.0.0 incorporates many new sniffs for code safety, predictable behavior and consistent code look, Most notably:
- no more useless annotations that i.e. duplicate Git information,
- space after not operator (
!
), - short arrays only,
- no assignments in conditions,
- alphabetically sorted
use
s, - no long type names (
int
vs.integer
), - and more.
We're also moving towards PHP 7.1/7.2 standards and strict code. As part of this, we're now including checks for:
declare(strict_types=1)
in every file,- native scalar types where possible,
- scalar hints in parameter and return types,
- defining the contents of iterable types in phpDoc,
- no redundant phpDoc annotations when types are expressed natively,
Changelog:
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
Improvement
- 12: Update README with newer rules thanks to @Majkl578
- 11: Add more new sniffs thanks to @Majkl578
- 10: Removing license header thanks to @mikeSimonson
- 9: Import advanced PHP 7.1 sniffs thanks to @Majkl578