warpnet / salt-lint

A command-line utility that checks for best practices in SaltStack.
https://salt-lint.readthedocs.io/en/latest/
MIT License
152 stars 39 forks source link

Help writing a new lint test #281

Closed matthewsht closed 1 year ago

matthewsht commented 2 years ago

My team has a team specific formating for state names:

$FORUMLA - $STATE - $OPT_SUBSTATE - description

Based on the filename, I think I can figure out what the formula, state and option substate names should be.

My question is - how do I identify the state name in the text? Is that even regexable?

Suggestions welcome.