10 Commits
Author SHA1 Message Date
Trần BáchandGitHub bfb7d0d758 fix(security): potential indexerror when parsing malformed readme (#632)
If a line starting with `*` (app entry) appears before any category header (`### •` or `## –`), `categories[-1]` will raise an `IndexError` because the `categories` list will be empty. A malformed or tampered README.md could cause the CI script to crash with an unhandled exception.

Affected files: ensure_sorted.py

Signed-off-by: Trần Bách <45133811+barttran2k@users.noreply.github.com>
2026-04-07 18:15:24 +00:00
toanmapandGitHub 1fd659ceb1 refactor: unclosed file handle for readme.md (#620)
The `README.md` file is opened using `open('README.md', 'r')` but is never explicitly closed. This can lead to resource leaks, especially in long-running processes or if the script were to be extended to open many files. While Python's garbage collector might eventually close it, it's not guaranteed and is considered bad practice.

Affected files: ensure_sorted.py

Signed-off-by: toanmap <174589430+maptoan@users.noreply.github.com>
2026-03-30 15:10:40 +00:00
offa be159dc77d Use python exception type (#615) 2026-03-27 12:53:52 +01:00
Khiet Tam NguyenandGitHub ede8e5ca81 style: fix trailing new lines + spaces (#598) 2026-01-18 12:45:53 +00:00
offaandAmmar64 e4efbb47dc Fix CI check 2024-11-07 19:50:13 +02:00
Ammar64 83f8bf5370 Make it work for older python versions 2024-11-07 19:45:02 +02:00
Ammar64 acae682442 count categories that starts with '## –' as well 2024-11-07 13:06:26 +02:00
Ammar64 99910ef42d Show how to sort but better 2024-11-07 11:53:58 +02:00
Ammar64 db4def5f1c Show how to sort 2024-11-07 11:40:07 +02:00
Ammar64 2dccd0ee5f Make python script to check wether all categories are sorted or not 2024-11-07 01:43:40 +02:00