Skip to content
New issue

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

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

Already on GitHub? # to your account

add include and exclude option in pint lint #631

Closed
LeoQuote opened this issue May 29, 2023 · 4 comments · Fixed by #1059
Closed

add include and exclude option in pint lint #631

LeoQuote opened this issue May 29, 2023 · 4 comments · Fixed by #1059
Assignees

Comments

@LeoQuote
Copy link

we are using pint to scan a folder ,but this folder may contains README.md ,which will lead to

values/blackbox-exporter/README.md:3 Fatal: found character that cannot start any token (yaml/parse)

a exclude or include parameter in pint lint command or parser config will help do the work.

@fourhundredfour
Copy link

fourhundredfour commented May 31, 2023

You have the possibility to specify multiple paths and to pass regex/glob patterns.

e.g. pint lint **/*.yaml

https://github.com/cloudflare/pint/blob/main/cmd/pint/lint.go#L57

@prymitive prymitive self-assigned this Sep 19, 2023
@jburnitz
Copy link

jburnitz commented Apr 7, 2024

I believe this PR solves this issue

@jburnitz
Copy link

@LeoQuote is the above what you were thinking?

@LeoQuote
Copy link
Author

yes exactly

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants