Skip to content

Commit

Permalink
Make spotless misc and xml target specific files to avoid build files
Browse files Browse the repository at this point in the history
  • Loading branch information
bantonsson committed Mar 11, 2021
1 parent e29cc34 commit b1acff0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gradle/spotless.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,16 @@ spotless {

format 'misc', {
toggleOffOn()
target '**/.gitignore', '**/*.md', '**/*.sh'
targetExclude '**/build/**', '**/integrations-core/**' // Exclude git submodule from evaluation.
target '.gitignore', '*.md', '.github/**/*.md', 'src/**/*.md', 'application/**/*.md', '*.sh', 'tooling/*.sh', '.circleci/*.sh'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}

format 'xml', {
toggleOffOn()
target '**/*.xml', '**/*.xsd'
targetExclude '**/build/**', '**/integrations-core/**' // Exclude git submodule from evaluation.
target 'src/**/*.xml', 'src/**/*.xsd', 'gradle/**/*.xml', 'gradle/**/*.xsd', 'conf/**/*.xml', 'conf/**/*.xsd', 'application/**/*.xml', 'application/**/*.xsd'
targetExclude '**/build/**', '**/target/**'
trimTrailingWhitespace()
endWithNewline()
eclipseWtp('xml').configFile(configPath + '/enforcement/spotless-xml.properties')
Expand Down

0 comments on commit b1acff0

Please sign in to comment.