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
To just check files use the `-n` (or `--dry-run`) parameter:
@@ -35,20 +40,32 @@ To just check files use the `-n` (or `--dry-run`) parameter:
35
40
36
41
May be wrapped in git pre-commit if desired, there are [examples on line](https://github.com/justinludwig/gjfpc-hook) demonstrating this
37
42
38
-
If you would like to contribute a pre-commit hook, perhaps one that is Husky-compatible, that would be great! Open a PR with the hook and remove this comment 🙏😊
43
+
If you would like to contribute a pre-commit hook, perhaps one that is Husky-compatible, that would be great! Open a PR with the hook and remove this comment :-)
39
44
40
45
### Github Actions
41
46
42
47
May be used in GitHub Actions workflows to verify PRs meet formatting standards,
43
-
as done in [Invertase](https://invertase.io)[react-native-firebase](https://github.com/Invertase/react-native-firebase/)
48
+
as done in [Invertase](https://invertase.io)[react-native-firebase](https://github.com/Invertase/react-native-firebase/), specifically this `package.json` run script is called in a CI job and sets exit status correctly to fail the job if there are formatting inconsistencies found:
Something like that (with a glob that matches your java file roots) could work for you
44
61
45
62
## Inspiration
46
63
47
64
The wonderful [clang-format](https://github.com/angular/clang-format) from the Angular team is so useful, we wanted the same package for java formatting.
48
65
49
66
That package already solves so many of the little problems that occur with different platforms, and globbing etc - it's fantastic.
50
67
51
-
Go to [their repo](https://github.com/angular/clang-format), integrate it for objective-c code, and give them a ⭐, they have earned it. Thanks for the code + inspiration Angular community!
68
+
Go to [their repo](https://github.com/angular/clang-format), integrate it for objective-c code, and give them a star! They have earned it. Thanks for the code + inspiration Angular community!
0 commit comments