Skip to content

Commit

Permalink
refactor: updated spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Dankoy committed Jul 6, 2024
1 parent 1eafeb7 commit b2f09b0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,41 @@
<java>
<!-- no need to specify files, inferred automatically, but you can if you want -->

<cleanthat>
<version>2.8</version> <!-- optional version of Cleanthat -->
<sourceJdk>${maven.compiler.source}</sourceJdk> <!-- optional. Default to ${maven.compiler.source} else '1.7' -->
<mutators>
<mutator>SafeAndConsensual</mutator> <!-- optional. Default to 'SafeAndConsensual' to include all mutators -->
</mutators>
<mutators> <!-- List of mutators: https://github.com/solven-eu/cleanthat/blob/master/MUTATORS.generated.MD -->
<mutator>LiteralsFirstInComparisons</mutator> <!-- You may alternatively list the requested mutators -->
</mutators>
<excludedMutators>
<excludedMutator>OptionalNotEmpty</excludedMutator> <!-- You can discard specific rules -->
</excludedMutators>
<includeDraft>false</includeDraft> <!-- optional. Default to false, not to include draft mutators from Composite mutators -->
</cleanthat>

<!-- <prettier /> &lt;!&ndash; has its own section below &ndash;&gt;-->


<!-- apply a specific flavor of google-java-format and reflow long strings -->
<googleJavaFormat>
<version>${google-java-format}</version>
<style>GOOGLE</style>
<reflowLongStrings>true</reflowLongStrings>
<formatJavadoc>false</formatJavadoc>
</googleJavaFormat>
<excludes>
<exclude>target/**</exclude>
</excludes>

<removeUnusedImports>
<engine>google-java-format</engine>
</removeUnusedImports> <!-- self-explanatory -->

<formatAnnotations /> <!-- fixes formatting of type annotations, see below -->

</java>
<sql>
<!-- You have to set the target manually -->
Expand Down

0 comments on commit b2f09b0

Please sign in to comment.