Releases: bigbite/phpcs-config
v3.0.0-beta.4
What's Changed
Full Changelog: v3.0.0-beta.3...v3.0.0-beta.4
v3.0.0-beta.3
What's Changed
- Exclude increment/decrement Sniff that conflicts with our standard by @jaymcp in #186
- Remove tag restrictions from class comments by @jaymcp in #187
Full Changelog: v3.0.0-beta.2...v3.0.0-beta.3
v3.0.0-beta.2
What's Changed
- Update line length sniff to disregard long parameter type hints by @jaymcp in #180
- Update line length sniff to disregard lines containing specific prefixes by @jaymcp in #181
- Add several new Sniffs from the Universal standard by @jaymcp in #182
- Move all documentation Sniffs to a separate standard by @jaymcp in #183
- Bump minimum PHP version to 8.2; set PHPStan to level 8 by @jaymcp in #184
Full Changelog: v3.0.0-beta.1...v3.0.0-beta.2
v3.0.0-beta.1
What's Changed
- Update authors in composer.json by @jaymcp in #159
- Introduce more comprehensive docblock coverage by @jaymcp in #168
- Add support for Enums to filename sniff by @jaymcp in #170
- Add new Sniff to restrict line length in docblocks by @jaymcp in #171
- Implement new rules for further conformity checking by @jaymcp in #169
- Add Sniff to ensure usage of Stringable interface by @jaymcp in #172
- Implement Sniff to ensure a blank line before an object's closing brace by @jaymcp in #173
- Implement Sniff to ensure a blank line after an object's opening brace by @jaymcp in #174
- Add sniff to ban heredocs. by @jaymcp in #175
- Add Sniff to enforce shorthand array syntax by @jaymcp in #177
- Run tests against PHP 8.4 in CI by @jaymcp in #178
- Add new Sniff to check declare statements by @jaymcp in #179
Full Changelog: v2.0.1...v3.0.0
v2.0.1
What's Changed
- chore(deps-dev): bump phpstan/phpstan from 1.10.41 to 1.10.48 by @dependabot in #135
- chore(deps): bump phpcsstandards/phpcsextra from 1.1.2 to 1.2.1 by @dependabot in #136
- chore(deps): bump phpcsstandards/phpcsutils from 1.0.8 to 1.0.9 by @dependabot in #137
- chore(deps): bump squizlabs/php_codesniffer from 3.7.2 to 3.8.0 by @dependabot in #138
- chore(deps-dev): bump phpstan/phpstan from 1.10.48 to 1.10.55 by @dependabot in #140
- chore(deps-dev): bump phpstan/phpstan from 1.10.55 to 1.10.58 by @dependabot in #145
- Remove PEAR.Commenting.InlineComment sniff by @jonmcp in #144
- Remove duplicate rules by @jonmcp in #146
- chore(deps): bump squizlabs/php_codesniffer from 3.8.0 to 3.8.1 by @dependabot in #141
- Bump PHPCS and PHPUnit versions by @jonmcp in #147
Full Changelog: v2.0.0...v2.0.1
v2.0.0
This release requires WPCS 3.0.0 and VIP WPCS 3.0.0, and contains breaking changes.
Changelog
- Modify the ruleset's PHPCS ruleset to use the ruleset included in WPCS v3.0.0
- Upgrade and reorganise dependencies to reflect changes introduced in WPCS v3.0.0
- Upgrade BigBite.Files.FileName sniff to reflect changes introduced in WPCS v3.0.0
- Skip output of BigBite.Files.FileName.NotHyphenatedLowercase error if covered by other error codes (fixes #96)
- Introduce several new sniffs - see "Sniff changes" below
- Fixes #119
Sniff changes
For the full list of upstream changes, see the WPCS release notes and VIP WPCS release notes
We have also introduced several new sniffs that have been made available as a result of the incredible work of the WPCS team:
Universal.FunctionDeclarations.NoLongClosures
Detects "long" closures and recommends using a named function instead.
Configured to warn at 5 lines and error at 8 lines.
This has potential to cause new errors in your projects if you heavily utilise closures.
This is a good thing, because long closures have always been discouraged by our style guide in a WordPress context.
Universal.FunctionDeclarations.RequireFinalMethodsInTraits
Enforces qualified methods (i.e. not abstract) in traits to be declared as final when such methods are not declared as private.
Universal.Operators.DisallowLogicalAndOr
Enforces the use of boolean operators (&&
, ||
) instead of logical operators (and
, or
).
Known breaking changes
Universal.NamingConventions.NoReservedKeywordParameterNames
A new upstream sniff which disallows use of "reserved" keywords as function parameter names ($list
, $class`, etc.).
Universal.FunctionDeclarations.NoLongClosures
A new sniff which disallows the use of "long" closures, in favour of named functions.
Universal.UseStatements.NoUselessAliases
Disallows renaming of imports where there is no collision (use Foo\Bar\Baz as Qux
).
v2.0.0-beta.2
What's Changed
- chore(deps): bump phpcsstandards/phpcsextra from 1.1.1 to 1.1.2 by @dependabot in #124
- chore(deps): bump wp-coding-standards/wpcs from 3.0.0 to 3.0.1 by @dependabot in #125
- chore(deps): bump dealerdirect/phpcodesniffer-composer-installer from 0.7.2 to 1.0.0 by @dependabot in #126
- chore(deps-dev): bump phpstan/phpstan from 1.10.38 to 1.10.40 by @dependabot in #128
- chore(deps-dev): bump phpstan/phpstan from 1.10.40 to 1.10.41 by @dependabot in #130
Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2
v2.0.0-beta.1
What's Changed
- Remove Travis and move routines to CircleCI by @ampersarnie in #68
- Bump phpstan/phpstan from 1.9.2 to 1.9.3 by @dependabot in #69
- Bump phpstan/phpstan from 1.9.3 to 1.9.4 by @dependabot in #70
- Bump phpstan/phpstan from 1.9.4 to 1.9.7 by @dependabot in #73
- Bump phpcsstandards/phpcsdevtools from 1.2.0 to 1.2.1 by @dependabot in #74
- Bump phpstan/phpstan from 1.9.7 to 1.9.8 by @dependabot in #75
- Bump phpstan/phpstan from 1.9.8 to 1.9.9 by @dependabot in #76
- Bump phpstan/phpstan from 1.9.9 to 1.9.11 by @dependabot in #77
- Bump phpstan/phpstan from 1.9.11 to 1.9.12 by @dependabot in #78
- Bump phpstan/phpstan from 1.9.12 to 1.9.13 by @dependabot in #79
- Bump phpstan/phpstan from 1.9.13 to 1.9.14 by @dependabot in #80
- Bump phpstan/phpstan from 1.9.14 to 1.9.17 by @dependabot in #82
- Bump phpstan/phpstan from 1.9.17 to 1.9.18 by @dependabot in #83
- Bump phpstan/phpstan from 1.9.18 to 1.10.1 by @dependabot in #84
- Bump squizlabs/php_codesniffer from 3.7.1 to 3.7.2 by @dependabot in #85
- Bump phpstan/phpstan from 1.10.1 to 1.10.2 by @dependabot in #86
- Bump phpstan/phpstan from 1.10.2 to 1.10.3 by @dependabot in #87
- Bump phpstan/phpstan from 1.10.3 to 1.10.4 by @dependabot in #88
- Bump phpstan/phpstan from 1.10.4 to 1.10.5 by @dependabot in #89
- Bump phpstan/phpstan from 1.10.5 to 1.10.6 by @dependabot in #90
- Bump phpstan/phpstan from 1.10.6 to 1.10.7 by @dependabot in #91
- Bump phpstan/phpstan from 1.10.7 to 1.10.8 by @dependabot in #92
- Bump phpstan/phpstan from 1.10.8 to 1.10.9 by @dependabot in #93
- Bump phpstan/phpstan from 1.10.9 to 1.10.10 by @dependabot in #94
- Bump phpstan/phpstan from 1.10.10 to 1.10.11 by @dependabot in #95
- Bump phpstan/phpstan from 1.10.11 to 1.10.13 by @dependabot in #97
- chore(deps-dev): bump phpstan/phpstan from 1.10.13 to 1.10.14 by @dependabot in #98
- chore(deps-dev): bump phpstan/phpstan from 1.10.14 to 1.10.15 by @dependabot in #99
- chore(deps-dev): bump phpstan/phpstan from 1.10.15 to 1.10.16 by @dependabot in #100
- chore(deps-dev): bump phpstan/phpstan from 1.10.16 to 1.10.18 by @dependabot in #101
- chore(deps-dev): bump phpstan/phpstan from 1.10.18 to 1.10.19 by @dependabot in #102
- chore(deps-dev): bump phpstan/phpstan from 1.10.19 to 1.10.20 by @dependabot in #103
- chore(deps-dev): bump phpstan/phpstan from 1.10.20 to 1.10.21 by @dependabot in #104
- chore(deps-dev): bump phpstan/phpstan from 1.10.21 to 1.10.22 by @dependabot in #105
- chore(deps-dev): bump phpstan/phpstan from 1.10.22 to 1.10.23 by @dependabot in #106
- chore(deps-dev): bump phpstan/phpstan from 1.10.23 to 1.10.24 by @dependabot in #107
- chore(deps-dev): bump phpstan/phpstan from 1.10.24 to 1.10.25 by @dependabot in #108
- chore(deps-dev): bump phpstan/phpstan from 1.10.25 to 1.10.26 by @dependabot in #109
- chore(deps-dev): bump phpstan/phpstan from 1.10.26 to 1.10.27 by @dependabot in #110
- chore(deps-dev): bump phpstan/phpstan from 1.10.27 to 1.10.28 by @dependabot in #111
- chore(deps-dev): bump phpstan/phpstan from 1.10.28 to 1.10.29 by @dependabot in #112
- chore(deps-dev): bump phpstan/phpstan from 1.10.29 to 1.10.30 by @dependabot in #113
- chore(deps-dev): bump phpstan/phpstan from 1.10.30 to 1.10.32 by @dependabot in #114
- v2.0.0 by @jonmcp in #116
- chore(deps-dev): bump phpstan/phpstan from 1.10.32 to 1.10.38 by @dependabot in #123
Full Changelog: v1.2.0...v2.0.0-beta.1
v1.2.0
What's Changed
- Bump phpcsstandards/phpcsdevtools from 1.1.1 to 1.2.0 by @dependabot in #54
- Bump phpstan/phpstan from 1.8.2 to 1.8.7 by @dependabot in #56
- Bump phpstan/phpstan from 1.8.7 to 1.8.8 by @dependabot in #57
- Bump phpstan/phpstan from 1.8.8 to 1.8.9 by @dependabot in #58
- Bump phpstan/phpstan from 1.8.9 to 1.8.10 by @dependabot in #59
- Bump phpstan/phpstan from 1.8.10 to 1.8.11 by @dependabot in #60
- Bump phpstan/phpstan from 1.8.11 to 1.9.1 by @dependabot in #61
- Bump phpstan/phpstan from 1.9.1 to 1.9.2 by @dependabot in #62
- Update installation instructions in README.md by @jonmcp in #64, #66
- Add circleci config with slack notification by @ampersarnie in #67
New Contributors
- @ampersarnie made their first contribution in #67
Full Changelog: v1.1.2...v1.2.0
v1.1.2
What's Changed
- Allow PHPCS to cache its report results by @jonmcp in #19
- Bump phpcsstandards/phpcsdevtools from 1.1.0 to 1.1.1 by @dependabot in #24
- Bump squizlabs/php_codesniffer from 3.6.2 to 3.7.0 by @dependabot in #37
- Bump phpstan/phpstan from 1.5.4 to 1.7.14 by @dependabot in #38
- Add PHP 8.0 support by @jonmcp in #41
- Bump squizlabs/php_codesniffer from 3.7.0 to 3.7.1 by @dependabot in #43
- Bump phpstan/phpstan from 1.7.14 to 1.8.0 by @dependabot in #45
- Bump phpstan/phpstan from 1.8.0 to 1.8.1 by @dependabot in #46
- Bump phpstan/phpstan from 1.8.1 to 1.8.2 by @dependabot in #47
New Contributors
- @dependabot made their first contribution in #24
Full Changelog: v1.1.1...v1.1.2