Faster spotless (#844)
This commit is contained in:
parent
2af43dbf26
commit
48da19b8a1
|
@ -80,8 +80,7 @@ spotless {
|
||||||
// this formatting is applied at the root level, as some of these files are not in a submodules
|
// this formatting is applied at the root level, as some of these files are not in a submodules
|
||||||
// and would be missed otherwise
|
// and would be missed otherwise
|
||||||
format 'misc', {
|
format 'misc', {
|
||||||
target '**/.gitignore', '**/*.md', '**/*.sh'
|
target '.gitignore', '*.md', 'docs/**/*.md'
|
||||||
targetExclude 'smoke-tests/**/build/**'
|
|
||||||
indentWithSpaces()
|
indentWithSpaces()
|
||||||
trimTrailingWhitespace()
|
trimTrailingWhitespace()
|
||||||
endWithNewline()
|
endWithNewline()
|
||||||
|
|
|
@ -19,6 +19,13 @@ spotless {
|
||||||
ktlint().userData(['indent_size': '2', 'continuation_indent_size': '2'])
|
ktlint().userData(['indent_size': '2', 'continuation_indent_size': '2'])
|
||||||
licenseHeaderFile rootProject.file('gradle/enforcement/spotless.license.java'), '(package|import|public)'
|
licenseHeaderFile rootProject.file('gradle/enforcement/spotless.license.java'), '(package|import|public)'
|
||||||
}
|
}
|
||||||
|
format 'misc', {
|
||||||
|
// not using '**/...' to help keep spotless fast
|
||||||
|
target '.gitignore', '*.md', 'src/**/.md', '*.sh'
|
||||||
|
indentWithSpaces()
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task formatCode(dependsOn: ['spotlessApply'])
|
task formatCode(dependsOn: ['spotlessApply'])
|
||||||
|
|
Loading…
Reference in New Issue