Closed joshuaclayton closed 4 years ago
I'm leaning towards the first item,
+1 for the first option, and your idea of an unused doctor
is also great, but I think that could be done later.
@milmazz what do you think about output like this?
Errors detected in YAML configuration: LiveView
Conflicting keys: (2)
* allowed_tokens
* token_ends_with
Configuring
unused.yml
allows for odd combinations of match assertions, e.g. couplingtoken_*
(which is often used for prefixes/suffixes of tokens) alongsideallowed_tokens
(which does exact matching of values against a list of possible values).I see a few options here:
error-on-warnings
flag that returns a nonzero exit status.unused doctor
that highlights this, as well as other issues (e.g. ctags isn't installed, tags files can't be found).I'm leaning towards the first item, only because I think even with a misconfiguration, the only problem is that there might be a misrepresentation of potentially unused tokens.
Later on, that could likely be pulled into a
unused doctor
command if that makes sense.