Skip to content

TODO Check in CI#682

Open
Cheezer1656 wants to merge 3 commits into
valence-rs:mainfrom
Cheezer1656:todo-check
Open

TODO Check in CI#682
Cheezer1656 wants to merge 3 commits into
valence-rs:mainfrom
Cheezer1656:todo-check

Conversation

@Cheezer1656

Copy link
Copy Markdown
Contributor

Objective

Get people to make issues for every TODO so that they are well defined, accessible, and in a central location.

Solution

Add a CI check for TODOs that do not reference a Github issue.

@JackCrumpLeys JackCrumpLeys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just had some concerns about what code we are scanning

Comment thread scripts/check_todos.py
paths = list(pathlib.Path(".").rglob("*"))

clean = True
for path in paths:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you are just starting but this will include code in target so be careful. We cannot copntroll TODO usage in code outside valence. I would stick to examples/*, src/*, crates/*, extractor/src/* and any stand alone files in . (like cargo.toml).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Do you think it would be better to have a whitelist or blacklist for scanning?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably both (whitelist text files and skip checking things like json, while blacklisting certain dirs) idk tho if its worth going outside of just .rs files to cover some on the config files. for detecting comments most languages either have // or # so that should cover alot. the java is a little more complex as with the /* syntax

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In commit 5c8a13d I made it so that the script only searches these directories: .github assets benches crates examples extractor/src scripts src tools website. Is this good enough?

@Cheezer1656 Cheezer1656 marked this pull request as ready for review March 28, 2025 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants