Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parse_constant and parse_custom_tags options to yamllint task #432

Merged
merged 2 commits into from
Nov 24, 2017

Conversation

pierredup
Copy link
Contributor

@pierredup pierredup commented Nov 21, 2017

Q A
Branch master for features and deprecations
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Documented? yes
Fixed tickets N/A

In Symfont 3.2 and 3.3, the Yaml component added support for PHP constants and custom tags.
Currently when using constants or custom tags in a Yaml file, the yamllint task fails because the syntax is invalid (and the necessary flags is not passed through).

This PR adds 2 new options to the yamllint task: parse_constant & parse_custom_tags. These options default to false to keep current behaviour. If they are set to true, then the required flags is passed through to the Yaml::parse method so that the task doesn't fail.

@veewee
Copy link
Contributor

veewee commented Nov 24, 2017

Looks great! Thanks for the addition.

@veewee veewee merged commit 4c485fd into phpro:master Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants