summaryrefslogtreecommitdiff
path: root/misc/hooks
AgeCommit message (Collapse)Author
2021-10-26Merge pull request #54179 from aaronfranke/make-rstRémi Verschelde
2021-10-25clang-format: Enable `--Wno-error=unknown` for compat with older versionsRémi Verschelde
This prevents errors when encountering options which have been defined in newer versions of clang-format, and are invalid in the YAML for the old version. Bump minimum supported clang-format version to 12 (where `--Wno-error=unknown` was added). Use clang-format 12 on CI (13 is not available yet on the Ubuntu 20.04 images).
2021-10-24Rename "makerst.py" to "make_rst.py"Aaron Franke
2021-10-22clang-format: Sync config with LLVM 13Rémi Verschelde
Disable minimum amount of spaces in comment prefix for now, as it otherwise modifies the whole codebase. That's something we probably want to use as it matches our convention, but we should look into fully converting these comments to our style guide at the same time.
2021-08-22Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke
2021-06-07Allow clang-format 12 in the pre-commit hookHugo Locurcio
clang-format 12's formatting is identical to clang-format 11's.
2021-06-07Style: Cleanup uses of double spaces between wordsRémi Verschelde
Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.
2021-05-10Fix Ubuntu clang-format version detection in the pre-commit hookHugo Locurcio
2021-03-14clang-format: Fix version number in hook warningRémi Verschelde
2021-02-17Dynamically load libudev.so.1 on Linux if `udev=yes`Rémi Verschelde
This makes it possibly to run Linux binaries compiled with udev support on Linux systems which do not provide udev (typically systemd-less distros). If udev is missing, we fall back to parsing `/dev/input` like when compiled without udev support (`udev=no`). Also adding some verbose debug statements to know which method we're using when debugging Linux joypad issues. The libudev so wrappers were generated on Mageia 8 with libudev 246.9 using https://github.com/hpvb/dynload-wrapper: ``` ./generate-wrapper.py --include /usr/include/libudev.h --sys-include '<libudev.h>' \ --soname libudev.so.1 --init-name libudev --omit-prefix gnu_ \ --output-header libudev-so_wrap.h --output-implementation libudev-so_wrap.c ```
2021-01-26Merge pull request #45141 from Calinou/clang-format-hook-check-versionRémi Verschelde
Check for clang-format version in the pre-commit hook
2021-01-19Cleanup: Remove executable bit from files which don't need itRémi Verschelde
Drop unused xpmfix.sh script.
2021-01-12Check for clang-format version in the pre-commit hookHugo Locurcio
Different clang-format versions may result in different formatting. Therefore, it's recommended to use the same version as used in CI.
2020-04-24Git Hooks: Suppress "which" error messages.bruvzg
2020-04-21Git Hooks: Add support for GUI git clients.bruvzg
[ci skip]
2020-03-31Merge pull request #37445 from nekomatata/hook-makerst-fixRémi Verschelde
Fixed errors in makerst pre-commit hook
2020-03-31Fixed errors in makerst pre-commit hookPouleyKetchoupp
2020-03-30Pre-commit hook instructions on WindowsPouleyKetchoupp
2020-03-30Hooks: Use pygmentize if available to visualize diffRémi Verschelde
2020-03-30Hooks: Add pre-commit hook for psf/black formattingRémi Verschelde
2019-12-06Add a pre-commit hook to check the class reference syntaxHugo Locurcio
This also makes documentation helper scripts executable.
2019-09-04Split the Android platform java logic into an Android library module (`lib`) ↵fhuya
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-08-27Style: Don't apply clang-format to platform/android/java/src/comRémi Verschelde
2018-10-02Style: Fix clang-format pre-commit hook for java and glslRémi Verschelde
2018-08-27Style: Enable clang-format on GLSL shadersRémi Verschelde
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-03-06Change shebang of pre-commit-clang-format hook to make it portablerobfram
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
2017-12-10Style: Apply clang-format to Java filesRémi Verschelde
Only those from org/godotengine/godot though, not the thirdparty ones.
2017-09-02Fix typos 'a' and 'an'Poommetee Ketson
2017-04-09squish: Update to upstream version 1.15Rémi Verschelde
Also fix clang-format pre-commit hook to ignore thirdparty files.
2017-04-09Style: Apply clang-format (3.9.1) to Obj-C++ filesRémi Verschelde
2017-02-12clang-format: Add pre-commit hookRémi Verschelde
Derived from https://github.com/githubbrowser/Pre-commit-hooks and https://gitlab.cern.ch/GeantV/geant/blob/master/hooks/pre-commit-clang-format