Hugo Locurcio
3a3e796485
Check for clang-format version in the pre-commit hook
...
Different clang-format versions may result in different formatting.
Therefore, it's recommended to use the same version as used in CI.
(cherry picked from commit 3333b58a7f
)
2021-01-26 17:00:17 +01:00
bruvzg
f99ead735c
Git Hooks: Suppress "which" error messages.
...
(cherry picked from commit 05f041127d
)
2020-06-10 15:33:27 +02:00
bruvzg
320ae61090
Git Hooks: Add support for GUI git clients.
...
[ci skip]
(cherry picked from commit fdad0e3bd1
)
2020-06-10 15:33:23 +02:00
Rémi Verschelde
243377ffac
Hooks: Use pygmentize if available to visualize diff
...
(cherry picked from commit 4d52761da6
)
2020-06-10 15:30:52 +02:00
Rémi Verschelde
1ec7a73d1c
Hooks: Add pre-commit hook for psf/black formatting
...
(cherry picked from commit 164826a39b
)
2020-06-10 15:30:52 +02:00
fhuya
7fabfd402f
Split the Android platform java logic into an Android library module (lib
) and an application module (app
).
...
The application module `app` serves double duties of providing the prebuilt Godot binaries ('android_debug.apk', 'android_release.apk') and the Godot custom build template ('android_source.zip').
2019-09-04 16:20:22 -07:00
Rémi Verschelde
bd9f6c23cb
Style: Don't apply clang-format to platform/android/java/src/com
2019-08-27 14:33:41 +02:00
Rémi Verschelde
3c62aa778d
Style: Fix clang-format pre-commit hook for java and glsl
2018-10-02 16:10:50 +02:00
Rémi Verschelde
4226d56ca9
Style: Enable clang-format on GLSL shaders
...
As of clang-format 6.0.1, putting the `/* clang-format off */` hint
around our "invalid" `[vertex]` and `[shader]` statements isn't enough
to prevent a bogus indent of the next comments and first valid statement,
so we need to enclose that first valid statement in the unformatted chunk.
2018-08-27 07:34:14 +02:00
robfram
52abf4ba84
Change shebang of pre-commit-clang-format hook to make it portable
...
The default one is "#!/bin/bash", but BSD systems doesn't have bash
in that path. For portability reasons, it should be changed to
"#!/usr/bin/env bash".
More info: https://en.wikipedia.org/wiki/Shebang_%28Unix%29#Portability
2018-03-06 19:53:37 +01:00
Rémi Verschelde
7cb6e6b723
Style: Apply clang-format to Java files
...
Only those from org/godotengine/godot though, not the thirdparty ones.
2017-12-10 01:16:07 +01:00
Poommetee Ketson
459f526119
Fix typos 'a' and 'an'
2017-09-02 21:19:06 +07:00
Rémi Verschelde
fa2d5b91dc
squish: Update to upstream version 1.15
...
Also fix clang-format pre-commit hook to ignore thirdparty files.
2017-04-09 15:03:39 +02:00
Rémi Verschelde
3fd10ff6f0
Style: Apply clang-format (3.9.1) to Obj-C++ files
2017-04-09 14:44:52 +02:00
Rémi Verschelde
0e4ee5935a
clang-format: Add pre-commit hook
...
Derived from https://github.com/githubbrowser/Pre-commit-hooks
and https://gitlab.cern.ch/GeantV/geant/blob/master/hooks/pre-commit-clang-format
2017-02-12 00:51:31 +01:00