-
-
Notifications
You must be signed in to change notification settings - Fork 158
TODO Check in CI #682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
TODO Check in CI #682
Conversation
JackCrumpLeys
left a comment
There was a problem hiding this comment.
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
| paths = list(pathlib.Path(".").rglob("*")) | ||
|
|
||
| clean = True | ||
| for path in paths: |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
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.