From b616019e668acbf960e81107aeef5b1ecdd4e54e Mon Sep 17 00:00:00 2001 From: "j.mattar" Date: Thu, 5 Mar 2026 13:17:19 +0100 Subject: [PATCH] feat: add support for yamllint.parse_custom_tags (enable for Pimcore) --- CHANGELOG.md | 4 ++++ config/default/grumphp.yml | 2 ++ config/pimcore/grumphp.yml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9df3806..d4961ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.0.4] +### Added +- Support for `yamllint.parse_custom_tags` in the GrumPHP yamllint task configuration to allow parsing Symfony/Pimcore YAML custom tags (e.g. `!tagged_iterator`). + ## [3.0.3] ### Fixed - When running GrumPHP on an environment with the Redis PHP extension installed, it errored with `The package diff --git a/config/default/grumphp.yml b/config/default/grumphp.yml index 63b9750..d729caf 100644 --- a/config/default/grumphp.yml +++ b/config/default/grumphp.yml @@ -21,6 +21,7 @@ parameters: - /^pdepend.xml$/ yamllint.parse_constant: true + yamllint.parse_custom_tags: false yamllint.whitelist_patterns: [] yamllint.ignore_patterns: [] @@ -152,6 +153,7 @@ grumphp: yamllint: parse_constant: '%yamllint.parse_constant%' + parse_custom_tags: '%yamllint.parse_custom_tags%' whitelist_patterns: '%yamllint.whitelist_patterns%' ignore_patterns: '%yamllint.ignore_patterns%' diff --git a/config/pimcore/grumphp.yml b/config/pimcore/grumphp.yml index 5b5ed4d..9357fab 100644 --- a/config/pimcore/grumphp.yml +++ b/config/pimcore/grumphp.yml @@ -5,6 +5,8 @@ imports: parameters: git_blacklist.triggered_by: [ 'php', 'js', 'twig' ] + yamllint.parse_custom_tags: true + # Disable PHPCS (which is enabled by default) in favour of PHP CS Fixer phpcs.enabled: false phpcsfixer.enabled: true