1
0
forked from 0ad/0ad
0ad/source/tools/xmlvalidator
Dunedan bcf97b608b
Enable ruff rules for docstrings and comments
This enables some ruff rules for docstrings and comments. The idea is to
not enforce the presence of docstrings, but to ensure they are properly
formatted if they're present.

For comments this adds checks that they don't contain code and verify
the formatting of comments with "TODO" tags.

As part of this, some commented out code which hasn't been touch in the
past 10 years gets removed as well.

The rules enabled enabled by this are:

- check formatting of existing docstrings (D200-)
- check comments for code (ERA)
- check formatting of TODO tags (TD001, TD004-)
2024-08-31 21:09:20 +02:00
..
validate_grammar.py Enable ruff rules for docstrings and comments 2024-08-31 21:09:20 +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