๐ Comment TODO analyzer
Comment TODO Analyzer is a .NET analyzer for C#, it ensires that all TODO comments in your code respect the same standards.
Options
These option can be setup inside the .editorconfig
:
todo_analyzer.comment.format
- Description: The format of the comment containing the TODO.
- Accepted values:
github
,jira
,custom
- Default:
github
- Example:
todo_analyzer.comment.format = github
todo_analyzer.comment.format.custom.token_regex
- Description: The token used to identify if the comment is a TODO when
todo_analyzer.comment.format
iscustom
. - Default:
\bTODO\b
- Example:
todo_analyzer.comment.format.custom.token = ใใในใใใจ
- Note: This is a regular expression.
- Description: The token used to identify if the comment is a TODO when
todo_analyzer.comment.format.custom.regex
- Description: The regular expression used to check if the comment match the expected criteria when
todo_analyzer.comment.format
iscustom
. - Default:
^ TODO .*$
- Example:
todo_analyzer.comment.format.custom.regex = ^ TODO \[MY-PROJECT\] [\d+] .+\.$
- Description: The regular expression used to check if the comment match the expected criteria when
Default formats
github
(Default) :^ TODO \[\#[0-9]+\] .*\.$
- Example:
TODO [#33] This needs to be handled.
- Example:
jira
:^ TODO \[[a-zA-Z0-9]+\-[0-9]+\] .*\.$
- Example:
TODO [COMMON-1234] This needs to be handled.
- Example: