All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Migrate to WPCS 3.x and fix incompatibilities. See https://github.com/WordPress/WordPress-Coding-Standards/wiki/Upgrade-Guide-to-WordPressCS-3.0.0-for-ruleset-maintainers.
- Changed plugins and mu-plugins exclude-patterns to relative so that they can be overridden for certain directories using config.
- Exclude languages folder.
- Update packages.
- Fix for nonexisting Generic.NamingConventions.ConstructorName property "error", use type instead.
- Updated packages for PHP 8.1 compatilibity
- Added dev-package: ergebnis/composer-normalize
- Updated packages
- Removed rule: Squiz.Commenting.FileComment
- markdownlint configuration
- Updated changelog management scripts (
composer cl-bump
tocl-1-bump
) - Updated dependencies
- Dependabot to suggest composer package updates.
composer-diff
workflow to list all updates in a PR.
- Updated dependencies
- Updated packages, tweaked readme
- Added support for
composer/installers
v2
- Removed
<arg name="basepath" value="."/>
fromphpcs.xml.*
andGeniem/ruleset.xml
. This fixes #1. - Removed all other
arg
rules fromGeniem/ruleset.xml
, these should be only configured inphpcs.xml.*
- Updated composer dependencies
composer lint
,composer lint-all
, andcomposer lint-fix
examples.- Package is now supports Composer v2.
- Better
phpcs.xml
for projects. Usephpcs.xml.dist-project
in your projects. - Added
roave/security-advisories
to dev-dependencies to block known security vulnerabilities.
- Moved
<config name="testVersion" value="7.3-"/>
fromruleset.xml
tophpcs.xml
. Configuration can now be changed at project level.
bin/local-phpcs
which didn't work as expected.
PHP_CodeSniffer_Tokens
should be\PHP_CodeSniffer\Util\Tokens
- Changelog 'Fixed' command
composer cl-fix [message]
- Renamed
composer changelog-*
commands tocomposer cl-*
- PEAR.Functions.FunctionCallSignature rules exclusion
- USED_RULES.md file indentation
- Removed repo configuration line from the README.md, the project is public
- Excluded rules
- From
PEAR.*
PEAR.Functions.FunctionCallSignature.CloseBracketLine
PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket
PEAR.Functions.FunctionCallSignature.MultipleArguments
- From
WordPress.*
WordPress.DB.SlowDBQuery.slow_db_query_meta_key
WordPress.DB.SlowDBQuery.slow_db_query_meta_query
WordPress.DB.SlowDBQuery.slow_db_query_tax_query
WordPress.DateTime.RestrictedFunctions.date_date
- From
- Changes to package.json branch aliases
- composer.lock has now been created with PHP 7.3
- Changed rules
- Excluded
WordPress.PHP.YodaConditions.NotYoda
(we already gotWordPress.PHP.YodaConditions
)Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace
(We sometimes comment the elseif block, or similar)WordPress.PHP.DisallowShortTernary.Found
(?:-P
)
- Added
WordPress.WP.GlobalVariablesOverride.Prohibited
(Was renamed fromWordPress.Variables.GlobalVariables
)
- Excluded
- USED_RULES.md Generator in
composer.json
.
- Added USED_RULES.md
- Changed the README.md file, added list of commands
- Added keep-a-changelog and this CHANGELOG.md
- First release