Releases: phpro/grumphp
Version 0.22.0
Total issues resolved: 2
Version 0.21.0
Total issues resolved: 13
- 652: [ECS task\ Run pre commit argument switch thanks to @jmatthiesen81
- 794: Improved fixable tasks thanks to @veewee
- 795: Create smart backups of existing git hooks thanks to @veewee
- 796: Improved file passing tools thanks to @veewee
- 797: Update PhpCpd names-exclude property thanks to @StApostol
- 800: Create a Website for this Repo thanks to @xdvrx1
- 801: Provide a stdin way of configuring files that need to be validated by GrumPHP thanks to @veewee
- 804: Add
match_word
option to git blacklist task thanks to @morloderex - 806: Fix properties for PhpCpd v6 thanks to @sci3ma
- 807: Phpstan: use_grumphp_paths option thanks to @veewee
- 808: minor git_commit_message improvements thanks to @veewee
- 809: ecs: rename whitelist_patterns to paths and add files_on_pre_commit thanks to @veewee
- 810: Nette Tester task thanks to @veewee
Breaking changes:
Inside the ECS task, we renamed the whitlist_patterns
option to paths
:
grumphp:
tasks:
ecs:
- whitelist_patterns: ['src']
+ paths: ['src']
Version 0.20.0
Total issues resolved: 8
- 766: [phpmd\ Allow setting output format to ansi thanks to @MarkVaughn
- 780: Fix command escaping thanks to @1ed
- 782: Make Travis green again on PHP 8! thanks to @IonBazan
- 784: Suggest command to fix composer_normalize errors thanks to @prudloff-insite
- 785: Environment section thanks to @veewee
- 788: Fix broken stdin thanks to @veewee
- 789: Standalone tools thanks to @veewee
- 790: Add a way to call the standalone composer-normalize command thanks to @prudloff-insite
BC breaks:
- Dropped support for PHP 72 (because of dependencies)
- Upgraded PHP unit testcases to latest version
Version 0.19.1
Total issues resolved: 5
- 772: Fix for serialization of empty file list thanks to @veewee
- 773: Fix invalid config generation thanks to @veewee
- 774: Add ESLint Task thanks to @MitchellMcKenna
- 775: Typo: Remove extra space in output text of FixerUpper thanks to @MitchellMcKenna
- 776: paratest: Add support for '--coverage-clover' and '--coverage-php' thanks to @LompiSystems
Version 0.19.0
Total issues resolved: 1
- 741: Improved task runner thanks to @veewee
Upgrading
Validated GrumPHP parameters
The new version will validate the structure and content of the GrumPHP parameters.
Therefor you need to move the grumphp parameters out of the regular parameters section.
If you are not using any symfony/dependency-injection
parameters, you only need to rename the parameters keyword:
# grumphp.yaml
- parameters:
+ grumphp:
note: If you are using conventions, the parameters used in the conventions still need to remain under parameters
. Don't forget to put tasks
and other grumphp related configuraiton under grumphp
!
note: The parameters bin_dir
and git_dir
have been removed since v0.16 . It is safe to get rid of those parameters as well. We now use an environment based system to customize paths.
grumphp:
- bin_dir: "./vendor/bin"
- git_dir: "."
Removed support for PHP-CS-Fixer v1.
Since PHP-CS-Fixer is out for quite some time and because v3 is in the making, we drop support for version 1.
If you still want to use version 1, you can use an older version of GrumPHP or provide a custom extension for your project.
By default, the phpcsfixer
will now load the task for the latest PHP-CS-fixer.
We also provided a phpcsfixer2
alias to make sure existing projects don't break.
However, you can now rename the task inside your configuration:
# grumphp.yaml
grumphp:
tasks:
- phpcsfixer2:
+ phpcsfixer:
We added a way of running the PHP-CS-Fixer v1 in parallel to improve execution speed.
However, this code is not needed anymore inside the new version and might be confusing with the actual parallel implementation.
Therefore, we removed following parameters:
# grumphp.yaml
grumphp:
- process_async_limit: 10
- process_async_wait: 1000
Bump to Symfony 4.4
In this release, we bump the dependencies up to Symfony 4.4.
This is because the parallel system requires the Advanced console output improvements inside SF 4.1. Since that version is not supported by Symfony anymore, we decided to bump to the version 4 LTS.
If your package still requires older dependencies, you can install the grumphp-shim package which works dependency-less.
Version 0.18.1
Total issues resolved: 9
- 686: twigcs exclude subfolders thanks to @oallain
- 727: Add a footnote on using finder config in intersection mode thanks to @Taluu
- 745: Fixed exception message in constructor thanks to @MarkVaughn
- 747: Fix for removed method in symfony/process:5.0 thanks to @veewee
- 749: [DX\ travis - php 7.4snapshot to 7.4 thanks to @oallain
- 753: Add support to Docksal thanks to @haithem-rihane
- 754: [Docs\[PHPlint\ Change parallel-lint package thanks to @Jibbarth
- 762: Update securitychecker.md thanks to @a-menshchikov
- 768: Composer v2 compatibility thanks to @JeppeKnockaert
Version 0.18.0
Total issues resolved: 9
- 501: FR: remove need for dedicated class when running same task twice with different configuration thanks to @keradus
- 579: FR: Ability to give shell task a label thanks to @Jamesking56
- 682: [WIP\ Rework task system thanks to @veewee
- 711: Improved tasks system thanks to @veewee
- 731: Remove tasks from readme thanks to @Landerstraeten
- 732: Rewrite ant tests thanks to @Landerstraeten
- 737: Fixed label output thanks to @benndt
- 739: Added support for phar executables thanks to @BrentRobert
- 740: Removed unused parameters for grumphp.yml.dist thanks to @BrentRobert
Upgrading custom tasks
Extended external task class
- Make
getConfigurableOptions()
static - Change service configuration + tag (config -> task)
Extended an external task from TaskInterface
- Make
getConfigurableOptions()
static - Register an
EmptyTaskConfig
during construction - Replace
getConfiguration()
method by thegetConfig()
method - Add immutable
withConfig()
method. - Change service configuration + tag (config -> task)
Duplicate task with different config
- Remove task copy
- Remove service configuration of task copy
- Configure task copy as an alias : https://github.com/phpro/grumphp/blob/master/doc/tasks.md#run-the-same-task-twice-with-different-configuration
Version 0.17.2
Total issues resolved: 5
- 710: Fix composer process version in development integrator
- 716: Use triggered_by option for extensions argument for phpcs. Fixes #715.
- 720: Psalm add output-format argument
- 721: update localheinz to ergebnis
- 722: fix: should not fail on long body when using git --verbose
Grumphp-Shim
Total issues resolved: 1