Skip to content

Commit

Permalink
Added ignore/whitelist patterns for yamllint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Helmus committed Aug 13, 2024
1 parent afbea2f commit 5da583c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ 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).

## 2.19
### Added
- Option to add/edit whitelist or ignore patterns to yamllint.
- Skip Bamboo files by default, since they don't comply with yaml.

## 2.18
### Added
- Grumphp will run the git hook in DDev (if available)
Expand Down
5 changes: 5 additions & 0 deletions config/default/grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ parameters:
- /^pdepend.xml$/

yamllint.parse_constant: true
yamllint.whitelist_patterns: [ ]
yamllint.ignore_patterns:
- /^bamboo-specs\/(.*)/

phpcs.standard: ./phpcs.xml
phpcs.triggered_by: [php,phtml]
Expand Down Expand Up @@ -99,6 +102,8 @@ grumphp:

yamllint:
parse_constant: '%yamllint.parse_constant%'
whitelist_patterns: '%yamllint.whitelist_patterns%'
ignore_patterns: '%yamllint.ignore_patterns%'

phpcs:
standard: '%phpcs.standard%'
Expand Down

0 comments on commit 5da583c

Please sign in to comment.