If you are submitting a bug, please include the following:
If you're just submitting a feature request or question, no need for the above.
Summary
Since gradle plugin version 6.9.0 running clang-format (version 11.0.1-2, style chromium, no other configuration) formats files very differently.
Gradle version: 7.4.2
spotless version: gradle 6.9.0, likely affects maven 2.24.0 as well
OS: Linux 5.10.0-16-amd64 amd64, debian 11
Problem is likely some array mangling in #1257 (which I authored). The array created may have equal size to the list instead of being 1 larger as per the docs. Then the next line replaces the --style=<style> parameter with the filename.
I'll do some debugging to find if that is actually the cause and try to push a PR this week.
If you are submitting a bug, please include the following:
gradlew spotless[Apply/Check] --stacktraceIf you're just submitting a feature request or question, no need for the above.
Summary
Since gradle plugin version 6.9.0 running clang-format (version 11.0.1-2, style chromium, no other configuration) formats files very differently.
Gradle version: 7.4.2
spotless version: gradle 6.9.0, likely affects maven 2.24.0 as well
OS: Linux 5.10.0-16-amd64 amd64, debian 11
Problem is likely some array mangling in #1257 (which I authored). The array created may have equal size to the list instead of being 1 larger as per the docs. Then the next line replaces the
--style=<style>parameter with the filename.I'll do some debugging to find if that is actually the cause and try to push a PR this week.