Skip to content

Commit

Permalink
Merge pull request #8 from GreenMeteor/cleanthat/configure_v2
Browse files Browse the repository at this point in the history
Configure CleanThat
  • Loading branch information
ArchBlood authored May 6, 2024
2 parents 304497e + 2f36f77 commit 8ba2cd0
Show file tree
Hide file tree
Showing 2 changed files with 74 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"
49 changes: 49 additions & 0 deletions .cleanthat/spotless.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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: "json"
steps:
- id: "jackson"
skip: false
parameters:
features:
ORDER_MAP_ENTRIES_BY_KEYS: true
yaml_features:
QUOTE_FIELD_NAMES: false
- format: "markdown"
steps:
- id: "flexmark"
skip: false
parameters:
version: "0.64.8"
- id: "freshmark"
skip: false
parameters:
properties:
k1: "v1"

0 comments on commit 8ba2cd0

Please sign in to comment.