summaryrefslogtreecommitdiff
path: root/misc/scripts
AgeCommit message (Collapse)Author
2023-04-07CI: Visibly print trailing whitespace when static checks failRémi Verschelde
GitHub Actions seems to be hiding colored whitespace, and after lots of attempts I couldn't find a way to work it around. So instead I'm using a perl expression to replace trailing spaces with `·` and tabs with `<TAB>` in the ANSI colored diff output. This ensure that they're visible, and they are properly colored as expected too. (cherry picked from commit 266280ffca218ae1c86e6d83d9b67a16086148b8)
2023-02-28Minor typo and docs URL fixesRémi Verschelde
2023-02-01More codespell fixes, do more changes from previous ignore listRémi Verschelde
2023-02-01Fix various typos with codespellRémi Verschelde
Finally do the childs -> children rename too.
2023-01-30Fix various typos with codespellRémi Verschelde
And include #72377. Co-authored-by: Wiktor Kocielski <withaust@gmail.com>
2023-01-23Convert en_GB spelling to en_US with codespellRémi Verschelde
2023-01-12Fix file formatting script dependencies and cleanupAaron Franke
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-03[CI] Use multiple forced unmount attempts for MoltenVK image.bruvzg
2022-12-14CI: Fix dumping GDExtension interface and API for godot-cppRémi Verschelde
Follow-up to https://github.com/godotengine/godot-cpp/pull/960. Fix exit code for --dump-extension-api and --dump-gdextension-interface. Removed the planned API validation step as we still didn't implement anything, and maintaining a stub isn't useful.
2022-11-13Add an exception for thirdparty subdirectories in file_format.shRiteo Siuga
This exception is also present in clang_format.sh and is needed in some cases.
2022-11-02Style: Misc docs and comment style and language fixesRémi Verschelde
- Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
2022-10-12Fix dotnet formatRaul Santos
It was failing due to generated files being referenced in .NET projects but the files are missing because they are generated by `godot --generate-mono-glue` or `build_assemblies.py`.
2022-09-30Merge pull request #64784 from yedpodtrzitko/yed/ci-add-mypyRémi Verschelde
ci: add Python static analysis check via mypy
2022-09-30Fix typos with codespellRémi Verschelde
Using codespell 2.3-dev from current git. And fix typo in `methods.py` for `vsproj=yes` option (still won't work though).
2022-09-30ci: add Python static analysis check via mypyJiri Suchan
2022-09-26Style: Cleanup header guards for consistencyRémi Verschelde
Fix file names for {Static,Lightmap}RaycasterEmbree.
2022-09-07C#: Replace libnethost dependency to find hostfxrIgnacio Roldán Etcheverry
We want to replace libnethost as it gives us issues with some compilers. Our implementation tries to mimic libnethost's hostfxr_resolver search logic. We try to use the same function names for easier comparing in case we need to update this in the future.
2022-09-05Fix UTF-8 validation in static checksGergely Kis
Use isutf8 instead of recode to detect invalid UTF-8 sequences. Also add the necessary dependencies to run the static checks locally using act (https://github.com/nektos/act) with the Medium size image.
2022-08-27Add `dotnet format` to CI to check C# styleRaul Santos
2022-08-19ci: add basic test pipeline for shader buildersJiri Suchan
2022-08-01File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde
This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.
2022-07-29CI: Link MoltenVK statically on macOSRémi Verschelde
Same as done for official builds. Also make artifacts executable before zipping.
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-14Download Vulkan SDK disk image to a temporary folder in the scriptHugo Locurcio
This prevents a `vulkan-sdk.dmg` file from lingering in the current working directory after installing the Vulkan SDK.
2022-07-12Add a script to install the Vulkan SDK on macOSHugo Locurcio
This script can be used to make Godot easier to compile on a fresh macOS installation, including on CI platforms and containers where the Vulkan SDK isn't preinstalled.
2022-06-17Make enum/constant binds 64-bit.bruvzg
2022-06-15Stop CI when Godot crashRafał Mikrut
2022-05-23Fix the logic to restart the Godot applicationFredia Huya-Kouadio
2022-05-23Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git.
2022-04-25Merge pull request #60445 from nathanfranke/minor-changesRémi Verschelde
small changes: improve OS.get_name classref, misc/scripts fixes, remove trailing quote
2022-04-22improve OS.get_name classref, misc/scripts fixes, remove trailing quoteNathan Franke
2022-04-22Remove superfluous Android InputManager interface and implementationMarcel Admiraal
2022-03-31Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
2022-03-29Fix flickering issues with low processor mode on AndroidFredia Huya-Kouadio
2022-02-10Fix typos with codespellRémi Verschelde
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.
2022-02-01CI: Fix exclude patterns with `git ls-files`Rémi Verschelde
Follow-up to #55785. In `black_format.sh`, the `--exclude` switch was wrongly used. It's a misnomer that only excludes _untracked_ files, arcane pathspec patterns should instead be used to exclude _tracked_ files. Using this newfound knowledge, we can also simplify the other scripts.
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke
2022-01-19Improve the default project themeHugo Locurcio
The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-01-05Skip formatting .bat files in file_format.shAaron Franke
These are supposed to have CRLF because Windows, so we'll just skip this file type in the script.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
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-21Add CI step for compiling and testing godot-cppBastiaan Olij
2021-09-14Add dozens of new integration tests to the GDScript test suiteHugo Locurcio
This also ignores `.out` files in the file format static checks.
2021-08-25Print colored diffs when there are formatting failures in CIHugo Locurcio
This makes diffs more readable in CI logs.
2021-08-22Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke
2021-07-31Fix 'Attempted to remove invalid ID' errorsRafał Mikrut
2021-07-29Add script to make source tarball with `.git/HEAD`Rémi Verschelde
This allows to generate the `VERSION_HASH` constant with the Git commit hash even when building from a source tarball which is not a Git repository (and without dependency on Git itself).
2021-05-20Fix typos with codespellRémi Verschelde
Using codespell 2.0.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn GIRD leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2021-04-15Test Godot with Vulkan in CIRafał Mikrut