scripts: new linter script to detect goal_src files with trailing whitespace (#3387)

Removes trailing whitespace from goal_src files, eventually the
formatter will do this as well but it's not ready yet so this is a
decent interim solution.

A competent text editor will also do this / flag it for you.
This commit is contained in:
Tyler Wilding
2024-02-24 14:27:56 -05:00
committed by GitHub
parent 0ae0938965
commit 5eeaffcde0
85 changed files with 567 additions and 520 deletions
+4
View File
@@ -84,6 +84,7 @@ tasks:
desc: "Format code"
cmds:
- cmd: python ./scripts/cpp/format-includes.py
- cmd: python ./scripts/ci/lint-trailing-whitespace.py --fix
- cmd: python ./third-party/run-clang-format/run-clang-format.py -r common decompiler game goalc test tools lsp -i
- task: format-json
# DECOMPILING
@@ -153,6 +154,9 @@ tasks:
desc: Finds and tries to fix invalid translation Characters
cmds:
- python ./scripts/ci/lint-characters.py --fix
lint:
cmds:
- python ./scripts/ci/lint-trailing-whitespace.py
# TESTS
offline-tests: # ran by jenkins
cmds: