Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradle: add spotless plugin #1292

Merged
merged 4 commits into from
Oct 17, 2023
Merged

gradle: add spotless plugin #1292

merged 4 commits into from
Oct 17, 2023

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Jun 3, 2023

This adds the build support for formatting-checks
in CI. Run with:

./gradlew spotlessCheck -PclangFormat=clang-format-15

to use a different clang-format binary.

No checks are enabled by default with the build commands
currently used by Contiki-NG and this repository.

@pjonsson pjonsson force-pushed the gradle-spotless branch 10 times, most recently from c5feb72 to 508bcc6 Compare October 16, 2023 07:31
.github/workflows/build.yml Outdated Show resolved Hide resolved
Use the LLVM style with a couple of exceptions
to allow shorter code, and use the 100 column
width from Google the Google Java Style guide.
Prevent Gradle from picking up the default
Java 8 on macOS.
This adds the build support for formatting-checks
in CI. Run with:

./gradlew spotlessCheck -PclangFormat=clang-format-15

to use a different clang-format binary, or put:

clangFormat = clang-format-15

in gradle.properties.
@nfi nfi merged commit e7594d2 into contiki-ng:master Oct 17, 2023
2 checks passed
@pjonsson pjonsson deleted the gradle-spotless branch October 17, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants