All notable changes to permafrost-dev/phpcsfixer-preset
will be documented in this file (as of 2021-Jan-05).
- add support for Symfony v6
- add support for php-cs-fixer v3
- drop support for php-cs-fixer v2
- add
increment_style.style = post
to the Default Ruleset.
- Begin documentation overhaul.
- add
push()
helper method to theCollection
class. - add coveralls.io workflow and badge to README.
- Reduce complexity and remove unnecessary code and tests in a number of places.
- Minor updates & fixes to the README.
- Minor formatting fixes, updated changelog.
- Add additional unit tests for custom config generator and generate config command, bringing code coverage to >90%.
- Changed
Ruleset
classes to accept an optional array parameter that overrides/adds ruleset configuration options. - Removed undocumented feature to pass overriding/additional ruleset configuration options to
SharedConfig
. - Simplified
Ruleset
unit tests by consolidating common tests into a single base TestCase class. Ruleset
classes must now returnarray_merge([/* array of rules */, $this->additional])
from therules()
method. This ensures the default rules can be overridden or updated if needed.- Added
CHANGELOG.md
to document changes to the package.
- Updated unit tests to make them more robust and increase code coverage.
- Added 'custom' type to the configuration generator script. Specifying this type will cause the user to be prompted for the directories
php-cs-fixer
should include and exclude, and the generated configuation file uses the standardPhpCsFixer\Finder
class instead of a custom Finder preset.