You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support looking for things that can be parsed but probably are wrong or could be a mistake. (May need to add some additional CLI args to enable/disable additional checks.)
Include:
Check for trailing space after a continuation (\) character. (Often will be caught with another syntax error, but not always)
Check for leading spaces before a key name.
Look for trailing comments (in the value). This one could be valid. Example: Regexes that match a literal #.
Detect space characters before or after stanza definitions. (May be caught by existing parser, unclear.) Need to be careful NOT to pick up subsearches in savedsearches.conf, which shows up incorrectly in the vim Splunk .conf highlighter, for example (not that I've updated in some time, or reported the issues.)
Also add unit tests for these. It's not mandatory that the parser itself find all these issues, but the check CLI tool should report these.
The text was updated successfully, but these errors were encountered:
Note to self: Another possible implementation option is to allow users to define these themselves using the filter expression language (not yet released). But that could be a pretty flexible means of provided extendable support for users that need such a feature. (Of course, at this time there is no means of storing such configuration settings, and how you'd get that to integrate into pre-commit, without hosting your own repo could be interesting.... but one problem at a time.)
Support looking for things that can be parsed but probably are wrong or could be a mistake. (May need to add some additional CLI args to enable/disable additional checks.)
Include:
\
) character. (Often will be caught with another syntax error, but not always)#
.Also add unit tests for these. It's not mandatory that the parser itself find all these issues, but the check CLI tool should report these.
The text was updated successfully, but these errors were encountered: