| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
`pre-commit` can be installed with pip, and configured in the Godot repo with
`pre-commit install`. It can then easily be run both locally with
`pre-commit run`, and on CI, in a cross-platform way.
This makes it much easier for contributors to set up pre-commit hooks,
without having to manually copy files to their git folder.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
|
|
|
|
| |
It had been ignored by misc/scripts/clang_format.sh since 388d35b74d8919b251faae9e24af50476f12b1a2 but not the hook.
|
|
|
|
|
|
|
|
|
| |
It only introduced a difference in a .glsl file, which I've worked
around by removing an empty line. This keeps formatting consistent
between clang-format 15 and 16.
Also added a change in the 3-to-4 project converter to fix bogus
formatting in clang-format < 17.
|
|
|
|
|
|
|
|
|
| |
This helps to find such classes without digging
through the rest of the class reference.
Editor-only classes can still be found under
your normal "Node" and "Resource" types.
This also fixes a typo and a missed case from the recent platform docs PR.
|
|
|
|
| |
In documentation and comments, ignoring thirdparty code
|
| |
|
|
|
|
|
|
|
|
|
| |
When going from version 14 to 15 it would introduce a tiny change in
`websocket_macros.h` just before the comment re-enabling clang-format,
but this can be solved by just letting it do its work.
Bonus cosmetic change in `math_fieldwise.cpp` where clang-format isn't
used, and bump recommended versions for pre-commit hook to [13; 15].
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
| |
This is automatically enabled on all platforms including
Windows 10 and later, whenever a TTY environment is detected.
In non-TTY environments such as CI, this can be forced using the
`--color` command line argument.
|
|
|
|
| |
Closes #60778.
|
|
|
|
|
|
|
| |
Using codespell 2.2-dev from current git.
Added `misc/scripts/codespell.sh` to make it easier to run it once in a
while and update the skip and ignore lists.
|
|
|
|
| |
Now hook can find .py files.
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
clang-format 12's formatting is identical to clang-format 11's.
|
|
|
|
|
| |
Or after punctuation. Tried to leave third-party stuff alone, unless it has
been heavily modified for Godot.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
```
|
|\
| |
| | |
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.
|
|/
|
|
| |
Drop unused xpmfix.sh script.
|
| |
|
|
|
|
| |
[ci skip]
|
|\
| |
| | |
Fixed errors in makerst pre-commit hook
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
| |
This also makes documentation helper scripts executable.
|
|
|
|
|
|
| |
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').
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Only those from org/godotengine/godot though, not the thirdparty ones.
|
| |
|
|
|
|
| |
Also fix clang-format pre-commit hook to ignore thirdparty files.
|
| |
|
|
Derived from https://github.com/githubbrowser/Pre-commit-hooks
and https://gitlab.cern.ch/GeantV/geant/blob/master/hooks/pre-commit-clang-format
|