0ad/source
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
..
collada Use UTF-8 as encoding when working with files 2024-08-29 07:22:46 +02:00
graphics Remove internationalization of log messages 2024-08-05 15:27:12 +00:00
gui Get a promise when starting a GUIpage 2024-07-08 19:07:04 +00:00
i18n Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
lib Add a RC file to add metadata to the pyrogenesis executable 2024-08-28 23:37:36 +02:00
lobby Check for source of XMPP stanzas 2024-08-13 04:59:38 +00:00
maths Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
mocks Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
network Reduce time needed for STUN 2024-08-23 21:00:15 +02:00
pch Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ps Add a RC file to add metadata to the pyrogenesis executable 2024-08-28 23:37:36 +02:00
renderer Remove internationalization of log messages 2024-08-05 15:27:12 +00:00
rlinterface Shutdown mongoose in rl-interface gracefully 2024-06-23 17:26:03 +00:00
scriptinterface Add final to classes introduced in f9114a87f2 2024-08-25 13:38:09 +02:00
simulation2 Get a promise when starting a GUIpage 2024-07-08 19:07:04 +00:00
soundmanager Don't check memory allocation made using new 2024-01-21 14:29:30 +00:00
third_party Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
tools Enable ruff rules for docstrings and comments 2024-08-31 21:09:20 +02:00
main.cpp Don't use std::shared_ptr to store m_ScriptContext and m_ScriptInterface in the CGUIManager 2024-06-27 19:09:30 +00:00
test_setup.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00