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
Currently, the formats are represented into a slice, this type has been introduced mainly for compatibility reasons with the initial format option (a simple string)
A side effect of a slice is the possibility of defining the same format several times but with different output paths.
But I think this is not a real use case.
Another side effect is the flag parsing complexity because the flag --out-format value is a simple string.
Non-User friendly CLI flag
The current syntax can be used only if you know the syntax and there is no suggestion/completion.
Important
This is a proposal: I don't know if it is possible and what the impact could be inside the code.
The proposal may evolve.
The current configuration
⛑️ The Problems
Global Options but Only For Some Formats
output.print-issued-lines
is forline-number
,colored-line-number
formats.output.print-linter-name
is forline-number
,colored-line-number
,tab
,colored-tab
formats.Format Names
The names of the colored variants have an unexpected style:
line-number
,colored-line-number
tab
,colored-tab
I think
tab
,tab-colored
are more natural.Slice of Formats
Currently, the formats are represented into a slice, this type has been introduced mainly for compatibility reasons with the initial
format
option (a simple string)A side effect of a slice is the possibility of defining the same format several times but with different output paths.
But I think this is not a real use case.
Another side effect is the flag parsing complexity because the flag
--out-format
value is a simple string.Non-User friendly CLI flag
The current syntax can be used only if you know the syntax and there is no suggestion/completion.
--out-format=checkstyle:report.xml,json:stdout,line-number-colored
💭 Proposal
Configuration
CLI flags
example
Before:
--out-format=checkstyle:report.xml,json:stdout,line-number-colored
After:
The text was updated successfully, but these errors were encountered: