hi, I want to integrate detekt formatting into my Android app but it’s not very clear for me what steps to follow from the documentation… the docs in GitHub just mention a dependency block in gradle and that’s it.
Is there any gradle task like “ktLintFormat” that is added that I can use to automatically format my code for example? or how does it works?
thank you in advance and sorry for the complete ignorance on this matters, I’m kind of new to all this tools
If you want to reformat the code, you can invoke it with ``--auto-correct`
gammax
10/20/2022, 5:00 PM
And yeah 😞 The docs on this are really limited, we should definitely improve them
s
Subodh Nijsure
10/21/2022, 2:59 AM
Is there way to run detekt formatting specific items set to true and all other false, from command line? Mainly to keep scope of formatting changes smaller.
g
gammax
10/21/2022, 11:00 AM
Not sure I follow you. Like do you want to run only one rule?
a
aherbel
10/21/2022, 11:07 AM
That’s what I was looking for @gammax , Thank you
s
schalkms
10/21/2022, 7:46 PM
@Subodh Nijsure sure, you can do that. Just set the