Stan
934ca601d7
Add a Jenkinsfile linter
2025-05-08 19:50:21 +02:00
Itms
1adab34511
Generate signatures and hashes in the bundles job
2025-05-08 19:08:56 +02:00
Ralph Sennhauser
5378f452cf
Fix eslint rule 'prefer-const' in petra/worker
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/worker.js
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-08 18:31:51 +02:00
Ralph Sennhauser
08e21f3186
Fix eslint rule 'prefer-const' in petra/navalManager
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/navalManager.js
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-07 19:36:47 +02:00
Ralph Sennhauser
c6b14fbb2c
Fix eslint rule 'prefer-const' in petra/defense
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/defense*
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-07 18:49:03 +02:00
Ralph Sennhauser
06b8857c04
Fix eslint rule 'prefer-const' in petra/queueplan
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/queueplan*
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-07 15:36:02 +02:00
Ralph Sennhauser
baa8d99be3
Fix eslint rule 'prefer-const' in petra/headquarters
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/headquarters.js
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-07 14:04:48 +02:00
Ralph Sennhauser
e83d5069f0
Fix eslint rule 'prefer-const' in petra/baseManager
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/baseManager.js
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-07 13:24:54 +02:00
Ralph Sennhauser
0d59444401
Fix eslint rule 'prefer-const' in petra/attackPlan
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/attackPlan.js
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-07 12:56:45 +02:00
Itms
5b7feb360e
Fix nightly pipeline syntax mistake in 2659efdb38
2025-05-07 12:49:51 +02:00
Itms
2659efdb38
Speed up nightly build generation
...
New files in the repository are naively added using `svn add --force`
which adds all unversioned files according to the documentation.
However, this iterates through the entire repository and takes about 12
minutes. Using `svn status` and parsing through the results only takes a
couple seconds.
2025-05-06 22:02:21 +02:00
Itms
b58ea2698e
Fix bug in nightly pipeline on spaces in filenames
...
The call to `svn delete` on deleted files does not work if filenames
contain spaces. This happens in particular when we fix spaces in
filenames, as the pipeline doesn't understand file renames.
2025-05-06 22:02:01 +02:00
Ralph Sennhauser
a800441783
Fix eslint rule 'prefer-const' in petra/attackManager
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/simulation/ai/petra/attackManager.js
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-06 18:43:37 +02:00
Ralph Sennhauser
7df1bd1a42
Fix eslint rule 'prefer-const' in gui/gamesetup
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/gui/gamesetup
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-06 18:12:37 +02:00
Ralph Sennhauser
7e73841d50
Fix eslint rule 'prefer-const' in gui/maps
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/gui/maps
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-06 17:18:12 +02:00
Ralph Sennhauser
0791504491
Fix eslint rule 'prefer-const' in globalscripts
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/globalscripts
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-06 14:16:42 +02:00
Ralph Sennhauser
7684e12717
Fix eslint rule 'prefer-const' in modmod
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/mod
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-06 13:49:13 +02:00
Ralph Sennhauser
6aeb09228a
Fix eslint rule 'no-multi-assign'
...
Manual fixes needed for:
eslint --no-config-lookup --rule '"no-multi-assign": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-06 13:15:10 +02:00
Ralph Sennhauser
1ee51e2d86
Fix eslint rule 'prefer-const' in gui/lobby
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/gui/lobby
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-06 09:48:52 +02:00
Lancelot de Ferrière
6931aca983
Switch to -fstack-protector-strong
...
This allows the compiler to skip stack guards on some functions, leading to better performance at limited security expanse.
Examples of such functions include isqrt64 and ComponentManager::PostMessage.
2025-05-06 08:47:30 +02:00
Ralph Sennhauser
dc16f1ce82
Fix eslint rule 'prefer-const' in gamesettings
...
eslint --no-config-lookup --fix --rule '"prefer-const": 1' \
binaries/data/mods/public/gamesettings
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-05 19:35:16 +02:00
Ralph Sennhauser
bc5f42d4a4
Fix eslint rule 'no-else-return'
...
Use ternary expressions instead.
eslint--no-config-lookup --fix --rule '"no-else-return": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-04 22:34:54 +02:00
scuti
0e1c881fef
Check for broken animated meshes in checkrefs.
...
Added and integrated P293 by @trompetin17 and @Stan
Addresses #6714
2025-05-04 22:25:47 +02:00
Ralph Sennhauser
e218cfa170
Fix eslint rule 'dot-notation'
...
For consistency with other commandline args containing '-' which can't
make use of the dot notation disable the rule for affected lines.
eslint --no-config-lookup --fix --rule '"dot-notation": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-04 21:31:21 +02:00
Ralph Sennhauser
3916fab66f
Fix eslint rule 'no-undef-init'
...
Manual fix needed, remove all assignments to undefined and rely on the
default state.
eslint --no-config-lookup --rule '""no-undef-init: 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-04 20:34:40 +02:00
Ralph Sennhauser
08a5f4405f
Fix eslint rule 'no-empty'
...
Manual fix needed, using 'noop' comment to silence warnings and convert
for loop to a probably more readable while loop.
eslint --no-config-lookup --rule '"no-empty": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-04 20:05:02 +02:00
Lancelot de Ferrière
7cc495ec91
Fix UnitMotion 'path prediction' to not trigger if following a short path
...
This is needed otherwise units might never go around pure unit obstructions.
Adds a small test map.
Fixes def0f57365
2025-05-04 11:22:31 +02:00
Ralph Sennhauser
dc6544a6c4
Fix eslint rule 'operator-assignment'
...
eslint --no-config-lookup --fix --rule '"operator-assignment": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 19:02:10 +02:00
Ralph Sennhauser
2b67499e05
Fix eslint rule 'no-trailing-spaces'
...
eslint --no-config-lookup --fix --rule '"no-trailing-spaces": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 17:31:47 +02:00
Ralph Sennhauser
1da93a6d2f
Fix eslint rule 'object-curly-spacing'
...
eslint --no-config-lookup --fix --rule '"object-curly-spacing": ["warn", "always"]'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 17:17:35 +02:00
Ralph Sennhauser
12640ad63e
Fix eslint rule 'brace-on-same-line'
...
eslint --no-config-lookup --fix --plugin eslint-plugin-brace-rules \
--rule '"brace-rules/brace-on-same-line": [
"warn",
{
"FunctionDeclaration": "never",
"FunctionExpression": "ignore",
"ArrowFunctionExpression": "always",
"IfStatement": "never",
"TryStatement": "ignore",
"CatchClause": "ignore",
"DoWhileStatement": "never",
"WhileStatement": "never",
"ForStatement": "never",
"ForInStatement": "never",
"ForOfStatement": "never",
"SwitchStatement": "never",
},
{
"allowSingleLine": true,
}
]'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 16:16:44 +02:00
Ralph Sennhauser
27c70de8ae
Fix eslint rule 'key-spacing'
...
eslint --no-config-lookup --fix --rule '"key-spacing": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 15:44:04 +02:00
Ralph Sennhauser
fd0f7cc270
Fix eslint rule 'comma-spacing'
...
eslint --no-config-lookup --fix --rule '""comma-spacing: 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 15:12:53 +02:00
Ralph Sennhauser
7ab9416acc
Fix eslint rule 'quote-props'
...
eslint --no-config-lookup --fix --rule '"quote-props": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 14:31:11 +02:00
Ralph Sennhauser
81c119bf39
Fix eslint rule 'semi'
...
eslint --no-config-lookup --fix --rule '"semi": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 14:13:14 +02:00
Ralph Sennhauser
ddba1ceabd
Fix eslint rule 'no-extra-semi'
...
eslint --no-config-lookup --fix --rule '"no-extra-semi": 1'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 11:18:16 +02:00
Ralph Sennhauser
24c47c81c7
Fix eslint rule 'no-multi-spaces'
...
eslint --no-config-lookup --fix --rule '"no-multi-spaces": ["warn", { "ignoreEOLComments": true, }]'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 10:50:50 +02:00
Ralph Sennhauser
b6df170303
Fix eslint indent rule
...
eslint --no-config-lookup --fix --rule 'indent: ["warn", "tab", { "outerIIFEBody": 0, }]'
Ref: #7812
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 09:39:58 +02:00
Ralph Sennhauser
57cf9578a7
Fix schema for TurretHolder
...
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-03 09:39:58 +02:00
Lancelot de Ferrière
1f2156adcc
Fix library build on MacOS Sonoma
2025-05-02 21:05:31 +02:00
Stan
00793d2918
Add rooster model and template.
2025-05-02 14:41:29 +02:00
Ralph Sennhauser
9038b555fe
Eslint auto-fix JS in profiler2 webui
...
This fixes all issues eslint can safely do automatically. Drastically
reducing the number of open style issues reported.
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-02 13:25:23 +02:00
Ralph Sennhauser
545cf99a0c
Add JS to editorconfig
...
Uses tabs for JS files
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-05-02 13:25:23 +02:00
abian
853ae057dd
Do not require Traders for Diaspora
...
Remove the need to train 3 Traders before researching Diaspora, which
will now be researched directly from the Market instead of the Civic
Center. To compensate, increase cost by +100 food, +200 metal, and
+10 research time, matching the three resources used to produce
Traders, but in smaller quantities.
Fixes #7381
2025-05-01 22:01:32 +02:00
Pio
7f684cbcd3
Fix incorrect shaders path in LICENSE.md
...
The two shaders are actually located in mods/mod/shaders/glsl
2025-05-01 17:13:37 +02:00
fiftydinar
26acb9df22
Add StartupWMClass to desktop file
...
This fixes the potential edge-cases of icon not showing, like in Gnome's dash for example.
2025-04-29 15:18:41 +02:00
Dunedan
d79c05f10e
Allow loading multiple profiling reports at once
...
This allows selecting multiple reports to load at once in the file
chooser dialog. Reports will be loaded in parallel and the last one to
finish loading will be the active one.
2025-04-29 12:40:31 +02:00
Dunedan
1e276bb4ad
Remove duplicate call of on_report_loaded()
...
This removes a duplicate call of on_report_loaded() when loading a
profiling report. This second call caused loading reports to fail,
whenever it took longer than 5 seconds. While that was probably a
measure to prevent reports loading too long and taking up too much
resources, it didn't achieve that goal, as the actual loading of the
report din't get aborted.
2025-04-29 12:40:31 +02:00
Ralph Sennhauser
19d568d506
Add linter to check for copyright year
...
This replaces the previous arclint linter for checking the copyright
year in license headers with a gitea workflow job.
As the date of last edit might differ from commit date due to reverts
the copyright linter is run against a base commit.
The python script doing the heavy lifting is written by @Dunedan.
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Co-Authored-by: Dunedan <dunedan@phoenitydawn.de>
2025-04-28 16:14:34 +02:00
Ralph Sennhauser
263b481442
Cmake-4 support for nvtt
...
Fix nvtt build to support cmake-4, while at it also fix other
related outstanding cmake issues in nvtt.
Fixes : #7538
Fixes : #7764
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-04-27 09:58:23 +02:00