0ad/source/tools
Dunedan ea647067f0
Enable ruff rules to check for ambiguous code
This enables some ruff rules to check for ambiguous and dead Python
code, which might cause unintended side-effects.

The enabled rules are:

- a bunch of rules related to shadowing of builtin structures (A)
- a bunch of rules checking for unused arguments (ARG)
- a rule checking for useless expressions (B018)
- a rule checking for unbound loop variables (B023)
- a rule checking redefined function parameters (PLR1704)
2024-08-27 19:28:11 +02:00
..
atlas Don't use std::shared_ptr to store m_ScriptContext and m_ScriptInterface in the CGUIManager 2024-06-27 19:09:30 +00:00
cmpgraph Add executable bits for files with shebangs 2024-08-26 07:46:38 +02:00
dist Format shell scripts using shfmt 2024-08-26 09:03:00 +02:00
entdocs Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
entgraph Fix line endings of all files in source/ except source/third_party/. 2016-07-25 09:07:45 +00:00
entity Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
fontbuilder2 Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
i18n Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
mapcompatibility Enable additional ruff rules 2024-08-25 06:29:39 +02:00
openlogsfolder Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
profiler2 Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
replayprofile Add executable bits for files with shebangs 2024-08-26 07:46:38 +02:00
rlclient/python Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
spirv Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
springimport Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
templatesanalyzer Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
templatessorter Format shell scripts using shfmt 2024-08-26 09:03:00 +02:00
tracelogger Format shell scripts using shfmt 2024-08-26 09:03:00 +02:00
webservices Add executable bits for files with shebangs 2024-08-26 07:46:38 +02:00
xmlvalidator Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
LICENSE.txt Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00