0ad/source/tools/xmlvalidator
Dunedan 0ea6d32fa5
Enable various ruff rules
This commit enables a bunch of unrelated ruff rules, which only require
minimal changes to the code base to enable them.

The rules enabled by this commit are:

- check the use of datetime objects without timezone (DTZ005)
- check the performance of try-except in loops (PERF203)
- check the number of function arguments (PLR0913)
- check for mutable class defaults (RUF012)
- check for the use of secure hashing algorithms (S324)
- check for raising base exceptions (TRY002)
- check for raising other exceptions where TypeErrors should be raised
  (TRY004)
2024-09-21 20:54:30 +02:00
..
validate_grammar.py Enable various ruff rules 2024-09-21 20:54:30 +02:00
validate.pl Fix checkrefs following D11 / 1c9efa6fb5 2021-03-06 13:57:11 +00:00
validator.py Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00