pint icon indicating copy to clipboard operation
pint copied to clipboard

add include and exclude option in pint lint

Open LeoQuote opened this issue 2 years ago • 4 comments

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.

LeoQuote avatar May 29 '23 06:05 LeoQuote

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

fourhundredfour avatar May 31 '23 11:05 fourhundredfour

I believe this PR solves this issue

jburnitz avatar Apr 07 '24 18:04 jburnitz

@LeoQuote is the above what you were thinking?

jburnitz avatar Apr 12 '24 20:04 jburnitz

yes exactly

LeoQuote avatar Apr 13 '24 01:04 LeoQuote