Skip to content

todo-syntax false positives for substrings and lowercase #355

@joaoscalett

Description

@joaoscalett

Comments with words partially containing the word "todo" are marked the todo-syntax error, even if it is not a TODO comment.

E.g. in a comment with the word Todorov (could be a name of a method, class, variable, etc.), the issue happens, and I have to either disable tailor on the comment or misspell the word. Which are both bad, since I want to keep tailor on, while I correctly spell the word in the comment.

I suggest assuming the todo-syntax mark only if there is a TODO word that, either:

  1. is NOT substring of another (like in "Todorov")
  2. is the first word of the comment
  3. is all in capital case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions