todo-comment
What it does
Section titled “What it does”Reports a line of a comment that starts with todo in any other case, or with TODO and no colon. Javadoc comments are not read.
Why it matters
Section titled “Why it matters”A fixed form (TODO:) lets people and tools find the open items by one search. A variant spelled differently is not found.
To fix, write TODO:.
Example
Section titled “Example”class A { // TODO fix // todo: lower // TODO: good // fix TODO later // TODOS fix /* line one TODO second */ /** * TODO javadoc */ void f() {} // Todo trailing}Configuration
Section titled “Configuration”java: lint: rules: todo-comment: warn # off (default), warn, errorEnabled by the presets: java/google.
Suppress one line with sudsy-disable-next-line todo-comment in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| checkstyle | TodoComment |
partial | The Google format only, no option. |
| checkstyle | TodoFormat |
partial | The check id of the Google TodoComment instance. |