Baseline file not created
See original GitHub issueUsing v10.1.0.
I have an Android project with many modules. In the main project build script we have the following:
subprojects {
apply plugin: 'org.jlleitschuh.gradle.ktlint'
// Global ktlint config
ktlint {
enableExperimentalRules.set(true)
baseline.set(file("my-project-ktlint-baseline.xml"))
outputColorName = "RED"
outputToConsole = true
verbose = true
reporters {
reporter "checkstyle"
}
filter {
// Exclude generated files
exclude("**/build/**")
exclude("**/KtAnalyticsEvents.kt")
}
}
}
When I run the ktlintCheck
task, the baseline file is not created.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Should the Baseline task generate a baseline file when no ...
Personally I think it should not, because the mere existance of a baseline file - even if empty - suggests that it is...
Read more >Analyzing the baseline file - IBM
In a real baseline file (such as the tmroid.xml file that you created in the previous step), this information is automatically supplied by...
Read more >android lintoptions with baseline file is not working
I have a project which has few lint warnings. For newly created changes if there are any lint warnings I want the build...
Read more >Create or update a baseline or an interim plan in Project desktop
If you need to keep records of extensive project data during the planning phase, it is a good idea to set multiple baselines...
Read more >Code Smell Baseline | Detekt
This will create one baseline file per Gradle module. As this might not be the desired behavior for a multi module project, think...
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
Baseline is generated using special task -
ktlintGenerateBaseline
. Will add it to project readme.Yes, make sense to not generate baseline file if there are no lint errors present.