You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the
`
com.diffplug.spotless
spotless-maven-plugin
${spotless.version}
<formats>
<!-- you can define as many formats as you want, each is independent -->
<format>
<!-- define the files to apply to -->
<includes>
<include>*.md</include>
<include>.gitignore</include>
</includes>
<!-- define the steps to apply to those files -->
<trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<!-- define a language-specific format -->
<java>
<!-- These are the defaults, you can override if you want -->
<includes>
<include>src/main/**/**/*.java</include>
<include>src/test/**/**/*.java</include>
</includes>
<importOrder /> <!-- standard import order -->
<importOrder> <!-- or a custom ordering -->
<order>java,javax,org,com,com.diffplug,</order> <!-- or use <file>${basedir}/eclipse.importorder</file> -->
<!-- You probably want an empty string at the end - all of the
imports you didn't specify explicitly will go there. -->
</importOrder>
<removeUnusedImports /> <!-- self-explanatory -->
<googleJavaFormat>
<version>1.9</version> <!-- optional -->
<style>GOOGLE</style> <!-- or AOSP (optional) -->
</googleJavaFormat>
<licenseHeader>
<content>/* (C)$YEAR */</content> <!-- or <file>${basedir}/license-header</file> -->
</licenseHeader>
</java>
<kotlin>
<!-- These are the defaults, you can override if you want -->
<includes>
<include>src/main/kotlin/**/*.kt</include>
<include>src/test/kotlin/**/*.kt</include>
</includes>
<importOrder/> <!-- standard import order -->
<importOrder> <!-- or a custom ordering -->
<order>java,javax,org,com,com.diffplug,</order> <!-- or use <file>${basedir}/eclipse.importorder</file> -->
<!-- You probably want an empty string at the end - all of the
imports you didn't specify explicitly will go there. -->
</importOrder>
<removeUnusedImports /> <!-- self-explanatory -->
<ktlint /> <!-- has its own section below -->
<ktfmt /> <!-- has its own section below -->
<prettierv/> <!-- has its own section below -->
<licenseHeader>
<content>/* (C)$YEAR */</content> <!-- or <file>${basedir}/license-header</file> -->
</licenseHeader>
</kotlin>
</configuration>
</plugin>`
problem if possible
copy-paste the full content of any console errors emitted by gradlew spotless[Apply/Check] --stacktrace
If you're just submitting a feature request or question, no need for the above.
The text was updated successfully, but these errors were encountered:
If you are submitting a bug, please include the following:
Trying to use ktlint with spotless maven plugin, however got error when running mvn spotless:check
spotless version
2.1.0
operating system and version
copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the
`
com.diffplug.spotless
spotless-maven-plugin
${spotless.version}
problem if possible
gradlew spotless[Apply/Check] --stacktrace
If you're just submitting a feature request or question, no need for the above.
The text was updated successfully, but these errors were encountered: