QUESTION: Shouldn't formatKotlin run after lintKotlin if ignoreFailures = true?
See original GitHub issueI’ve added kotlinter to my build script and I expected that 2 new tasks (lintKotlin and formatKotlin) would run after the rest!
But only lintKotlin runs… formatKotlin only runs if I trigger it manually with ./gradlew formatKotlin
Am I doing something wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
How to fail a task after it has run? Aka how to ignoreFailures ...
I made it work using “finalizedBy” (instead of “ignoreFailures” and “dependsOn”) to chain the “test”, “testNg”, and “testReport” tasks. See ...
Read more >Step by Step: How to setup ktlint with spotless? - SourceLevel
In this example, I use Spotless, which is a tool for formatting code according to the configuration of your Gradle script.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Input and help always useful. Discussion here: https://github.com/jeremymailen/kotlinter-gradle/pull/137#pullrequestreview-427739206
For reference, this is what the pre-push look looks like when installed
.git/hooks/pre-push