cnspec icon indicating copy to clipboard operation
cnspec copied to clipboard

Add a policy linting command

Open tas50 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Policies are often really large and it's hard to know you're including all the proper information. It would be great if we could lint them to make sure we had all the necessary fields.

Describe the solution you'd like I'd like a command I could run that would ensure I had things like a desc field, audit field, remediation field, author information, a valid version number, etc.

Describe alternatives you've considered I'm open for anything that allows us to check that policies have all the data necessary to share them with others.

tas50 avatar Oct 20 '22 22:10 tas50

This should be done via an enhancement for cnspec bundle validate. I would consider desc, audit, remediation etc as warning, not error

chris-rock avatar Nov 04 '22 10:11 chris-rock