Skip to content

Tags: simPod/coding-standard

Tags

8.2.0

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
### Release Notes for [8.2.0](https://github.com/doctrine/coding-stan…

…dard/milestone/16)

### 8.2.0

- Total issues resolved: **0**
- Total pull requests resolved: **9**
- Total contributors: **6**

 - [226: Still works on PHP 7.1](doctrine#226) thanks to @beberlei
 - [220: Drop Travis](doctrine#220) thanks to @greg0ire
 - [195: Makefile improvements](doctrine#195) thanks to @greg0ire

#### documentation

 - [221: Move website config to default branch](doctrine#221) thanks to @SenseException
 - [205: Update PSR-2 refs on docs to PSR-12](doctrine#205) thanks to @gmponos
 - [202: Trivial comment change from PSR2 to PSR12](doctrine#202) thanks to @gmponos

#### Dependencies

 - [213: Composer: update PHPCS Composer plugin dependency](doctrine#213) thanks to @jrfnl

#### CI,bug

 - [210: Fix exit code handling](doctrine#210) thanks to @lcobucci

#### New rule

 - [199: Add `user&doctrine#95;error` function in forbidden ones as it is an alias](doctrine#199) thanks to @gmponos

Verified

This tag was signed with the committer’s verified signature.
greg0ire Grégoire Paris

8.1.0

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
Release [8.1.0](https://github.com/doctrine/coding-standard/milestone/15

)

8.1.0
=====

- Total issues resolved: **0**
- Total pull requests resolved: **1**
- Total contributors: **1**




 - [213: Composer: update PHPCS Composer plugin dependency](doctrine#213) thanks to @jrfnl

8.0.0

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
Release [8.0.0](https://github.com/doctrine/coding-standard/milestone/11

)

This new major version includes rules that make this repository of standards fully compatible with [PSR-12](https://php-fig.org/psr/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](doctrine#194) thanks to @carusogabriel
 - [176: Remove dead sniffs autoload](doctrine#176) thanks to @WyriHaximus
 - [170: Improve diff while running `test-report`](doctrine#170) thanks to @carusogabriel
 - [169: Ensure that spacing around `cases` are consistent](doctrine#169) thanks to @carusogabriel
 - [159: Normalize documentation comments](doctrine#159) thanks to @mathieu-bour
 - [157: Improve diff while running `test-fix`](doctrine#157) thanks to @carusogabriel
 - [151: Remove usless interface and trait comments](doctrine#151) thanks to @BackEndTea




 - [192: Allow PHP 8](doctrine#192) thanks to @greg0ire
 - [147: Use stable version of PHP 7.4 in Travis CI](doctrine#147) thanks to @carusogabriel

New rule
--------

 - [175: Add rule to ensure Arrow Functions declaration format](doctrine#175) thanks to @carusogabriel
 - [174: Add rule forbidding more than one constant declared per statement](doctrine#174) thanks to @carusogabriel
 - [171: Introduce rule requiring Null Coalesce Equal Operator](doctrine#171) thanks to @carusogabriel
 - [166: Ensure that Typed Properties are spaced correctly](doctrine#166) thanks to @carusogabriel
 - [155: Use `SingleLineArrayWhitespace` to ensure single line arrays spacing](doctrine#155) thanks to @carusogabriel
 - [154: Use `NegationOperatorSpacingSniff` to ensure no space before `-`](doctrine#154) thanks to @carusogabriel
 - [148: Adopt PSR-12 as base coding standard](doctrine#148) thanks to @carusogabriel

PSR-12
------

 - [164: Adopt PSR-12 for imports statements separation](doctrine#164) thanks to @carusogabriel
 - [163: Adopt PSR-12 for return types](doctrine#163) thanks to @carusogabriel

CI
--

 - [161: Remove PHP 8 from GitHub Actions](doctrine#161) thanks to @carusogabriel

Dependencies,Improvement
------------------------

 - [160: Introduce Dependabot](doctrine#160) thanks to @carusogabriel

CI,Improvement
--------------

 - [153: Enhancement: Add workflow for GitHub Actions](doctrine#153) thanks to @localheinz

7.0.2

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
Release [7.0.2](https://github.com/doctrine/coding-standard/milestone/13

)

7.0.2
=====

- Total issues resolved: **0**
- Total pull requests resolved: **2**
- Total contributors: **2**

bug
---

 - [146: Do not require space after case](doctrine#146) thanks to @simPod

bug,duplicate
-------------

 - [145: Add a test case with switch cases containing return](doctrine#145) thanks to @Lctrs

7.0.1

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
Release [7.0.1](https://github.com/doctrine/coding-standard/milestone/12

)

7.0.1
=====

- Total issues resolved: **0**
- Total pull requests resolved: **1**
- Total contributors: **1**

bug
---

 - [146: Do not require space after case](doctrine#146) thanks to @simPod

7.0.0

Verified

This tag was signed with the committer’s verified signature.
doctrinebot Doctrine Bot
Release [7.0.0](https://github.com/doctrine/coding-standard/milestone/10

)

7.0.0
=====

- Total issues resolved: **1**
- Total pull requests resolved: **12**
- Total contributors: **5**

Improvement,release blocker
---------------------------

 - [144: Upgrade slevomat/coding-standard to v6](doctrine#144) thanks to @simPod

release blocker
---------------

 - [140: Use stable release of slevomat/coding-standard](doctrine#140) thanks to @alcaeus

Improvement
-----------

 - [139: Crumble removed TypeHintDeclaration sniff](doctrine#139) thanks to @simPod
 - [137: Require space after Block Control Structures](doctrine#137) thanks to @simPod
 - [132: Update to PHPCS v3.5.x](doctrine#132) thanks to @carusogabriel
 - [131: Drop psr12Compatible false, default is true](doctrine#131) thanks to @simPod
 - [129: Add doctrine/phpcr-odm annotations support](doctrine#129) thanks to @Lctrs
 - [121: Bump `composer.json` `master` branch-alias to `7.0.x-dev`](doctrine#121) thanks to @Ocramius

New rule
--------

 - [136: Require space before throw, yield and yield from](doctrine#136) thanks to @simPod
 - [128: Camel case vars](doctrine#128) thanks to @simPod

documentation
-------------

 - [133: Update documentation for v6](doctrine#133) thanks to @carusogabriel




 - [127: Drop PHP 7.1, add 7.4 to Travis](doctrine#127) thanks to @simPod

New sniff,RFC
-------------

 - [47: Replace inline docblock declarations with assertions](doctrine#47) thanks to @Ocramius

6.0.0

Verified

This tag was signed with the committer’s verified signature.
Ocramius Marco Pivetta
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 */` for `class 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 = $bar = baz()`
 * 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

Total issues resolved: **19**

- [38: Forbid `Abstract`, `Exception` and `Interface` prefixing too](doctrine#38) thanks to @greg0ire
- [52: Exclude Squiz.Commenting.FunctionComment.ThrowsNotCapital sniff](doctrine#52) thanks to @deeky666
- [90: CI: Test against PHP 7.3](doctrine#90) thanks to @Majkl578
- [94: Add test script to make it easier to run the tests](doctrine#94) thanks to @carusogabriel
- [95: Add sniff to forbid multiple lines between functions](doctrine#95) thanks to @carusogabriel
- [96: Link to Slack instead of Gitter](doctrine#96) thanks to @greg0ire
- [97: Disallow "Class <name>" as class comment](doctrine#97) thanks to @linaori
- [98: Remove IDEA/Phpstorm default file template properly](doctrine#98) thanks to @ostrolucky
- [99: Update to PHPCS 3.4 and use new Sniffs](doctrine#99) thanks to @carusogabriel
- [101: Use Ubuntu 16.04](doctrine#101) thanks to @carusogabriel
- [104: Forbid duplicated variables assignments](doctrine#104) thanks to @carusogabriel
- [105: Add rule to force simplification of returns](doctrine#105) thanks to @carusogabriel
- [108: Make all annotations useful by default](doctrine#108) thanks to @Majkl578
- [109: Upgrade to Slevomat CS 5.0](doctrine#109) thanks to @Majkl578
- [111: Enable SpreadOperatorSpacing sniff](doctrine#111) thanks to @Majkl578
- [112: Forbid LSB for constants](doctrine#112) thanks to @Majkl578
- [114: Forbid "Trait" suffix](doctrine#114) thanks to @Majkl578
- [115: Trigger CI failure when phpcbf cannot fix the file](doctrine#115) thanks to @ostrolucky
- [120: Require newline before return](doctrine#120) thanks to @ostrolucky

5.0.1

Verified

This tag was signed with the committer’s verified signature.
lcobucci Luís Cobucci
5.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](doctrine#103) thanks to @vladyslavstartsev
 - [91: Fix annotation groups usage](doctrine#91) thanks to @lcobucci

Improvement
-----------

 - [93: Update the DealerDirect's composer installer dependency to v0.5.0](doctrine#93) thanks to @dheineman

5.0.0

Verified

This tag was signed with the committer’s verified signature. The key has expired.
Majkl578 Michael Moravec
## 5.0.0

- Total pull requests resolved: **37**
- Total contributors: **5**

### New sniff

 - [39: Add ShortList sniff](doctrine#39) thanks to @carusogabriel
 - [43: &doctrine#91;RFC&doctrine#93; Reference global classes via `use`](doctrine#43) thanks to @deeky666
 - [51: Enable UseSpacing sniff](doctrine#51) thanks to @Majkl578
 - [59: Enable NamespaceSpacing sniff](doctrine#59) thanks to @Majkl578
 - [65: Use new Generic.PHP.LowerCaseType Sniff](doctrine#65) thanks to @carusogabriel
 - [68: UselessAliasSniff to report unnecessaries alias](doctrine#68) thanks to @carusogabriel
 - [69: Add UselessSemicolon sniff](doctrine#69) thanks to @carusogabriel
 - [70: Add UselessParentheses sniff](doctrine#70) thanks to @carusogabriel
 - [71: Add Sniff for force null type hint to be on the last position on annotations](doctrine#71) thanks to @carusogabriel
 - [72: Add Sniff to report useless variables](doctrine#72) thanks to @carusogabriel
 - [73: Add Sniff to reported unused variables passed to closures](doctrine#73) thanks to @carusogabriel
 - [76: Enable StaticClosure sniff](doctrine#76) thanks to @Majkl578
 - [78: Enable ModernClassNameReference sniff](doctrine#78) thanks to @Majkl578
 - [80: Enable TraitUseDeclarationSniff & TraitUseSpacingSniff](doctrine#80) thanks to @Majkl578
 - [82: Enable UselessConstantTypeHintSniff](doctrine#82) thanks to @Majkl578
 - [83: Add sniff to require assignment operators when possible](doctrine#83) thanks to @carusogabriel
 - [88: phpDoc annotation spacing](doctrine#88) thanks to @Majkl578
 - [89: Enable OptimizedFunctionsWithoutUnpacking sniff](doctrine#89) thanks to @Majkl578

### Documentation

 - [81: Update homepage](doctrine#81) thanks to @Majkl578
 - [86: Document how to customize rules](doctrine#86) thanks to @Majkl578

### Improvement

 - [45: Remove constraint version](doctrine#45) thanks to @yourwebmaker
 - [46: Forbidden usage of settype function](doctrine#46) thanks to @carusogabriel
 - [48: Forbidden usage of extract](doctrine#48) thanks to @carusogabriel
 - [49: Forbidden usage of compact](doctrine#49) thanks to @carusogabriel
 - [50: Remove early return duplicated entry](doctrine#50) thanks to @carusogabriel
 - [53: Use SemicolonSpacing Sniff](doctrine#53) thanks to @carusogabriel
 - [54: Add Generic.Arrays.ArrayIndent sniff](doctrine#54) thanks to @deeky666
 - [55: Use PHPCS XML schema definition](doctrine#55) thanks to @deeky666
 - [61: Improve short list syntax rule description](doctrine#61) thanks to @carusogabriel
 - [62: Update to PHCS 3.3 and Slevomat/CS 4.6.1](doctrine#62) thanks to @carusogabriel
 - [64: Remove duplicated ShortOpenTags](doctrine#64) thanks to @carusogabriel
 - [66: Add some docs to the doctrine/coding-standard project.](doctrine#66) thanks to @jwage
 - [74: Require reviews from code owners for CS changes](doctrine#74) thanks to @Majkl578
 - [77: Bump patch versions of dependencies](doctrine#77) thanks to @carusogabriel
 - [79: Add .doctrine-project.json to root of the project.](doctrine#79) thanks to @jwage
 - [84: Use new PHPCS array syntax](doctrine#84) thanks to @carusogabriel
 - [85: Validate ruleset against XML schema](doctrine#85) thanks to @Majkl578