Skip to content

Commit

Permalink
Add default Cleanthat configuration (#261)
Browse files Browse the repository at this point in the history
Co-authored-by: cleanthat[bot] <65607995+cleanthat[bot]@users.noreply.github.com>
  • Loading branch information
cleanthat[bot] authored May 28, 2024
1 parent 786b410 commit 75af758
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .cleanthat/cleanthat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax_version: "2023-01-09"
meta:
labels:
- "cleanthat"
refs:
protected_patterns:
- "refs/heads/develop"
- "refs/heads/main"
- "refs/heads/master"
excluded_patterns:
- "refs/heads/release/*"
full_clean_on_configuration_change: false
can_edit_not_protected_branches: true
source_code:
encoding: "UTF-8"
line_ending: "GIT"
engines:
- engine: "spotless"
skip: false
source_code: {}
steps:
- id: "spotless"
skip: false
parameters:
configuration: "repository:/.cleanthat/spotless.yaml"
58 changes: 58 additions & 0 deletions .cleanthat/spotless.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
syntax_version: "2023-01-09"
encoding: "UTF-8"
git:
core_eol: "native"
line_ending: "GIT_ATTRIBUTES"
formatters:
- format: "java"
steps:
- id: "toggleOffOn"
skip: false
parameters: {}
- id: "cleanthat"
skip: false
parameters:
source_jdk: "11"
mutators:
- "SafeAndConsensual"
- id: "removeUnusedImports"
skip: false
parameters: {}
- id: "importOrder"
skip: true
parameters:
file: "repository:.cleanthat/java-importorder.properties"
- id: "eclipse"
skip: true
parameters:
version: "4.29"
file: "repository:/.cleanthat/eclipse_java-stylesheet.xml"
- format: "markdown"
steps:
- id: "flexmark"
skip: false
parameters:
version: "0.64.8"
- id: "freshmark"
skip: false
parameters:
properties:
k1: "v1"
- format: "pom"
steps:
- id: "sortPom"
skip: false
parameters:
version: "3.2.1"
encoding: "UTF-8"
lineSeparator: "\n"
expandEmptyElements: true
spaceBeforeCloseEmptyElement: false
keepBlankLines: true
nrOfIndentSpace: 2
indentBlankLines: false
indentSchemaLocation: false
predefinedSortOrder: "recommended_2008_06"
sortProperties: false
sortModules: false
sortExecutions: false

0 comments on commit 75af758

Please sign in to comment.