Detekt's 2.0 cli #3616
Replies: 2 comments
-
I agree with moving out the build and processor, console report stuff out of the config/hiding it behind Introducing a The defaut config and the baseline feature is already part of core :). |
Beta Was this translation helpful? Give feedback.
-
from #2267 (comment) remove --fail-fast |
Beta Was this translation helpful? Give feedback.
-
The same as #2680 but for talk about breaking changes that we could like to have in the cli once Dekte 2.0 arrives. The same as before, there's nothing wrong in 1.0. We don't need a breaking change in the inmediate future but it's good to talk about ideas.
My ideas:
I think that we should simplify our config file. It should only contain the configuration of the rules. And maybe the
config
about the exclusion... But I'm not sure about that last part.The other things could be moved out. For example
maxIssues
by default is 0. To change it we could use a flag like--max-issues=10
or--max-issues=-1
console-reports
doesn't seems like a good thing. If they are reports we should allow the user to have them in other formats to process them later. And if they are not "really" reports we should hide them behind averbose
mode.And the processors that we support right now are two types: show progress and show counts. I think that the counts should be displayed in some reports and print them in the
versbose
mode. And the progress the same, behind theverbose
mode or drop it. Or maybe we could rethink it and print the name of the file that we are processing. Somthing liketar
works with-v
.And now that I'm thinking it... probably we should move the configuration file outside the
cli
because we want to use the same configuration file for thegradle-plugin
. Same thing for thebaseline
.Beta Was this translation helpful? Give feedback.
All reactions