|
| 1 | +## Unreleased (0.6.0) |
| 2 | + |
| 3 | +### Summation: |
| 4 | +- Updated PHPCS to v3.4 #88 |
| 5 | +- Updated WPCS to 1.2.0 #82 |
| 6 | +- Updated eslint to 5.10 and associated deps #101 |
| 7 | + |
| 8 | +### Added: |
| 9 | +- Stylelint configuration #45 |
| 10 | +- Added VIP PHPCS standards dependency #122 |
| 11 | + |
| 12 | +### Changed: |
| 13 | +- Use ecmaversion 2018 #87 |
| 14 | +- Require space in curly braces for React JSX children #121 |
| 15 | +- Allow multiple declaration in use statement #78 |
| 16 | +- Exclude the `tests` dir from the NamespaceExclusionTest #112 |
| 17 | +- Set composer library type to `phpcodesniffer-standard` #116 |
| 18 | + |
| 19 | +### Removed: |
| 20 | +- Allow `trigger_error` #98 |
| 21 | +- Remove assignment of equals rule #96 |
| 22 | +- Remove `href-no-hash` rule exclusion #114 |
| 23 | + |
| 24 | +<details> |
| 25 | + <summary>PHPCS Core Rule Additions</summary> |
| 26 | + |
| 27 | + https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases |
| 28 | + * Added new Generic.CodeAnalysis.EmptyPHPStatement sniff |
| 29 | + * Warns when it finds empty PHP open/close tag combinations or superfluous semicolons |
| 30 | + * Added new Generic.Formatting.SpaceBeforeCast sniff |
| 31 | + * Ensures there is exactly 1 space before a type cast, unless the cast statement is indented or multi-line |
| 32 | + * Added new Generic.VersionControl.GitMergeConflict sniff |
| 33 | + * Detects merge conflict artifacts left in files |
| 34 | + * Added Generic.WhiteSpace.IncrementDecrementSpacing sniff |
| 35 | + * Ensures there is no space between the operator and the variable it applies to |
| 36 | + * Added PSR12.Functions.NullableTypeDeclaration sniff |
| 37 | + * Ensures there is no space after the question mark in a nullable type declaration |
| 38 | + * Added new Generic.PHP.LowerCaseType sniff
-Ensures PHP types used for type hints, return types, and type casting are lowercase |
| 39 | + * Added new Generic.WhiteSpace.ArbitraryParenthesesSpacing sniff |
| 40 | + * Generates an error for whitespace inside parenthesis that don't belong to a function call/declaration or control structure |
| 41 | + * Generates a warning for any empty parenthesis found |
| 42 | + * Allows the required spacing to be set using the spacing sniff property (default is 0) |
| 43 | + * Allows newlines to be used by setting the ignoreNewlines sniff property (default is false) |
| 44 | + * Added new PSR12.Classes.ClassInstantiation sniff |
| 45 | + * Ensures parenthesis are used when instantiating a new class |
| 46 | + * Added new PSR12.Keywords.ShortFormTypeKeywords sniff |
| 47 | + * Ensures the short form of PHP types is used when type casting |
| 48 | + * Added new PSR12.Namespaces.CompundNamespaceDepth sniff |
| 49 | + * Ensures compound namespace use statements have a max depth of 2 levels
The max depth can be changed by setting the 'maxDepth' sniff property in a ruleset.xml file |
| 50 | + * Added new PSR12.Operators.OperatorSpacing sniff
-Ensures operators are preceded and followed by at least 1 space |
| 51 | +</details> |
| 52 | + |
| 53 | +## 0.5.0 (May 22, 2018) |
| 54 | + |
| 55 | +- Update ESLint config peer dependencies #65 |
| 56 | +- Add ESLint config test script with example fixtures #42 |
| 57 | + |
| 58 | +## 0.4.2 (May 1, 2018) |
| 59 | + |
| 60 | +- Remove support for ESLint-via-phpcs #54 |
| 61 | +- Ignore array item alignment rule #49 |
| 62 | +- Ignore line length when checking array alignment #57 |
| 63 | +- Adjust object rules for destructuring #59 |
| 64 | + |
| 65 | +## 0.4.1 (Apr 18, 2018) |
| 66 | + |
| 67 | +- Fix order error for closure `use` #53 |
| 68 | +- Fix false positives for `T_USE` #12 |
| 69 | + |
| 70 | +## 0.4.0 (Apr 17, 2018) |
| 71 | + |
| 72 | +- Always allow spaces inside arrays #3 |
| 73 | +- Only run PHPCS on PHP files #36 |
| 74 | +- Enforce spaces inside jsx curly braces #38 |
| 75 | +- Make index pass its own rules #41 |
| 76 | +- Add support for a .phpcsignore file #39 |
| 77 | +- Add Sniff for unused "use" statements #44 |
| 78 | +- Exclude filesystem groups from checks #50 |
| 79 | +- Allow inline statements to drop semicolons #51 |
| 80 | + |
| 81 | +## 0.3.0 (Jan 18, 2018) |
| 82 | + |
| 83 | +- Update license for new requirements #34 |
| 84 | +- Add tests for our phpcs sniffs #32 |
| 85 | +- Update phpcs to v3 #31 |
| 86 | + |
| 87 | +## 0.2.2 (Nov 6, 2017) |
| 88 | + |
| 89 | +## 0.2.1 (Dec 8, 2016) |
| 90 | + |
| 91 | +## 0.2.0 (Dec 8, 2016) |
| 92 | + |
| 93 | +## 0.1.0 (Dec 7, 2016) |
| 94 | + |
| 95 | +- Initial Release |
0 commit comments