Releases: inpsyde/php-coding-standards
Releases · inpsyde/php-coding-standards
v2.0.0
What's Changed
- Add "static analysis" Composer keyword by @GaryJones in #56
- Modernize: PHP 8 and WPCS 3 by @gmazzap in #69
- Remove Neutron PHP Standard by @gmazzap in #70
- Modernize sniffs & helpers and embrace PHPCSUtils by @gmazzap in #74
- Create HookPriorityLimit Sniff by @antonioeatgoat in #75
- Add sniff for Emacs UTF-8 file header by @antonioeatgoat in #77
- Add sniff for space after cast and logical not by @antonioeatgoat in #76
- Allow setUpBeforeClass method name by @tfrommen in #82
- Support PHPCompatibility 10 by @gmazzap in #83
- Add template-specific sniffs by @shvlv in #81
- Add E2E tests by @shvlv in #86
- Update and improve README by @gmazzap in #87
- Remove $ from shell snippets by @gmazzap in #88
- Improve docs and tooling by @tfrommen in #89
- Update serialization mechanism by @gmazzap in #90
- Fix RiskyTruthyFalsyComparison by @antonioeatgoat in #94
- Force zero spaces after logical not operator by @antonioeatgoat in #93
- Add sniffs for array spacing and property types by @tfrommen in #96
- Add AlternativeControlStructure and ShortEchoTag sniffs by @shvlv in #97
- Fix bug in StaticClosure sniff by @tfrommen in #99
- Add missing sniff to sniff list by @tfrommen in #101
- Lint on PHP 8.4 by @tfrommen in #102
Migrating from 1.x to 2.x
While there is a big difference between version 1.x and 2.x, both in terms of internal code structure and sniffs and (third-party) standards being used, in most cases, migrating to the new version is as simple as re-requiring the package (with all dependencies):
composer require --dev inpsyde/php-coding-standards -W
Documentation
For an up-to-date documentation of the standards, please refer to the README.md
file, as well as the list of custom sniffs.
New Contributors
- @antonioeatgoat made their first contribution in #75
- @Chrico made their first contribution in #84
- @GaryJones made their first contribution in #56
- @shvlv made their first contribution in #81
- @tfrommen made their first contribution in #82
Full Changelog: 1.0.0...2.0.0
v2.0.0-beta.7
What's Changed
Full Changelog: 2.0.0-beta.6...2.0.0-beta.7
v2.0.0-beta.6
What's Changed
Full Changelog: 2.0.0-beta.5...2.0.0-beta.6
v2.0.0-beta.5
What's Changed
- Update & improve README by @gmazzap in #87
- Remove $ from shell snippets by @gmazzap in #88
- Docs & Tooling by @tfrommen in #89
- Update serialization mechanism by @gmazzap in #90
- Fix RiskyTruthyFalsyComparison by @antonioeatgoat in #94
- Force zero spaces after Not operator by @antonioeatgoat in #93
- Add Sniffs for Array Spacing and Property Types by @tfrommen in #96
Full Changelog: 2.0.0-beta.4...2.0.0-beta.5
v2.0.0-beta.4
Changed
- Updated license and handle company name re-branding, by @Chrico
- Removed license text from each file, by @gmazzap
- Synced
development
withversion/2
and made the latter the default branch
Fixed
- Usage of InpsydeTemplates, by @shvlv
- Add e2e tests, and re-organize tests code, by @shvlv
- Unused code cleanup, by @gmazzap
Full Changelog: 2.0.0-beta.3...2.0.0-beta.4
v2.0.0-beta.3
Added
- Run QA on PHP 8.3 by @gmazzap
Fixed
- False positive for invalid return type when declaring
\Iterator
or\Traversable
oriterable
and not returning a generator. by @gmazzap
Full Changelog: 2.0.0-beta.2...2.0.0-beta.3
v2.0.0-beta.2
v2.0.0-beta.1
Added
- Add checks for Emacs UTF-8 file header (
EncodingCommentSniff
) (See #50). - Add checks for ensuring space after casting (See #55).
- Add checks for priority used on hooks and filters (
HooPriorityLimit
) (See #75). - Embrace PHPCSUtils (See #72).
Changed
- Upgrade
automattic/vipwpcs
to^3.0.0
. - Modernize existing sniffs (See #73).
v1.0.0
v1.0.0-beta.1
Added
- PHPCompatibility checks
- External VIP rules
- Possibility to filter execution of tests
Changed
- Move to PSR-12
- Move to WPCS v2
- Move to PHPCS v3.3
- Upgrade
dealerdirect/phpcodesniffer-composer-installer
to^0.5
- Extend type declaration exclusion for hooks static closures
- Simplify customization of
ElementNameMinimalLength
- Allow blank line after method with single line declaration
- Ignore in return type declaration check all methods that start with
__
- Remove
PHPCSAliases
class - Remove configuration values in provided
ruleset.xml
- Improved README and documentation