Did a bit of searching regarding this <https://git...
# detekt
p
Did a bit of searching regarding this https://github.com/arturbosch/detekt/issues/1122 and i am seeing that even though any test we would write, will work correctly, when run with Gradle, it’s like it ignores the given value and executes the Rules with the default ones (e.g.:
ObjectPropertyNaming
->
privatePropertyPattern: '[A-Za-z][_A-Za-z0-9]*'
)
m
There is a very similar sounding issue open...
Is it passing the correct config to the CLI?
p
it is the correct file
--config, /path/to/detekt-config.yml
and also the YAML config printed afterwards contains the proper value
m
I also looked at so etching similar this morning and thought the same you're describing. Somehow the default seems to be used sometimes.
p
somewhere in-between this gets overriden
Gave it a try but could not find anything that would explain it 😕 It is a very weird bug. Will probably try again tomorrow!
s
i also may be experiencing this, with
privateParameterPattern
in
ConstructorParameterNaming
m
Are you specifying
failFast: true
in your config?
enabling
failfast
could be the one of the issues. But on the other hand the config shared in https://github.com/arturbosch/detekt/issues/1132 does not use failFast so there seems to be another issue somewhere
p
I think this get’s a lot worse when failfast is enabled
i am seeing reported Rules that are commented in detekt-config.yml when I enable it
@mauin so this is not a bug as I see now on the comments, right?
m
In the case of FailFast this kind of is the intended behavior. But I'm worried that even without FailFast something seems to be off.
At least from what I can gather in these reports.
s
i don’t have failfast enabled