Checode extracts, collects and reports TODOs, FIXMEs and other keywords in your code. If you don't know why you should write a comment, look at the wiki note.
- Language agnostic
- Multithreaded
- CI ready
checode src/
checode:
stage: quality assurance
image: mishamyrt/checode
script:
checode src/
When running, Checode checks if the .checode.yaml
file is in current directory and applies it if it is. Default built-in config looks like this:
keywords:
TODO: warn
FIXME: err
STOPSHIP: err
NOTE: info
Using the configuration file, you can add processing of any keywords.
keywords:
XXX: warn
HACK: warn
To apply a configuration file with a different name, specify it as the parameter.
checode -c custom_config.yaml src/
In addition to normal comments, you can make comments with logic. The commands are triggered as follows:
// <KEYWORD>:: <command> <argument>: <message>
For example:
// FIXME:: due 2021-10-20: Remove this dirty hack after the demonstration.
due
— Limits the date until which this comment will not be considered an error. Raises the comment level toerr
if the specified date is greater than or equal to the current date. Accepts the date inyyyy-mm-dd
format.