Closed jokerttu closed 1 month ago
Adds support for formatting and checking the formatting for Java and Objective-C files. Formatting is checked as part of the CI and lefthook pre-commit hooks. Added helper scripts
format:
./scripts/format-java.sh ./scripts/format-objc.sh
check:
./scripts/format-java.sh --check ./scripts/format-objc.sh --check
Uses google-java-format for Java files and clang-format -style=Google for Objective-C files.
google-java-format
clang-format -style=Google
This PR is missing formatted files, and will fail on check-formatting tests. After #239 is landed, I'll update this PR to include the formatted files.
Adds support for formatting and checking the formatting for Java and Objective-C files. Formatting is checked as part of the CI and lefthook pre-commit hooks. Added helper scripts
format:
check:
Uses
google-java-format
for Java files andclang-format -style=Google
for Objective-C files.