Skip to content

Commit

Permalink
[FEATURE] add configurable ignore_patterns (#13)
Browse files Browse the repository at this point in the history
* [FEATURE] add configurable ignore_patterns

* Update README.md
  • Loading branch information
Kanti authored Feb 12, 2018
1 parent 11a452b commit 461856f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,26 @@ if pluswerk/grumphp-config should not edit your composer.json than you must add
}
}
````

### You want to override settings?:


Make a new grumphp.yml config file. You can put it in the root folder.
````yaml
imports:
- { resource: vendor/pluswerk/grumphp-config/grumphp.yml }


parameters:
convention.xmllint_ignore_pattern:
- "typo3conf/ext/extension/Resources/Private/Templates/List.xml"
````

there you can override some convention:


| Key | Default |
|-------------------------------------|-------------------------------|
| convention.xmllint_ignore_pattern | [] |
| convention.yamllint_ignore_pattern | [] |
| convention.xlifflint_ignore_pattern | "#typo3conf/l10n/(.*)#" |
12 changes: 8 additions & 4 deletions grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ parameters:
stop_on_failure: false
hide_circumvention_tip: true
ignore_unstaged_changes: false #brocken
convention.xmllint_ignore_pattern: []
convention.yamllint_ignore_pattern: []
convention.xlifflint_ignore_pattern: ["#typo3conf/l10n/(.*)#"]
ascii:
failed: ./vendor/pluswerk/grumphp-config/logo.txt
succeeded: ./vendor/pluswerk/grumphp-config/logo.txt
Expand Down Expand Up @@ -40,11 +43,12 @@ parameters:
standard: "PSR2"
show_warnings: false
tab_width: 4
xmllint: ~
yamllint: ~
xmllint:
ignore_patterns: "%convention.xmllint_ignore_pattern%"
yamllint:
ignore_patterns: "%convention.yamllint_ignore_pattern%"
xlifflint:
ignore_patterns:
- "#typo3conf/l10n/(.*)#"
ignore_patterns: "%convention.xlifflint_ignore_pattern%"
plus_bom_fixer:
metadata:
priority: 1
Expand Down

0 comments on commit 461856f

Please sign in to comment.