New Issue Checklist
New rule request
Currently, the todo rule issues warnings for both TODO and FIXME comments. I would like to be able to configure the rule to only apply to one, or both, of those types of comment. (Specifically, in my case, I only want warnings for FIXME comments, and no warnings for TODO.)
- Why should this rule be added?
Currently, in order to have SwiftLint produce warnings for one of the types of comments, we have to have warnings issued for both—even in the case where we do not want warnings on the the second type.
- Provide several examples of what would and wouldn't trigger violations.
Identical to current rule, except warnings would not be issued for the excluded type of comment.
- Should the rule be configurable, if so what parameters should be configurable?
Yes. This request is to add a configuration key such as only, which would take FIXME or TODO as its value.
- Should the rule be opt-in or enabled by default? Why?
The rule is currently enabled by default.
New Issue Checklist
New rule request
Currently, the
todorule issues warnings for bothTODOandFIXMEcomments. I would like to be able to configure the rule to only apply to one, or both, of those types of comment. (Specifically, in my case, I only want warnings forFIXMEcomments, and no warnings forTODO.)Currently, in order to have SwiftLint produce warnings for one of the types of comments, we have to have warnings issued for both—even in the case where we do not want warnings on the the second type.
Identical to current rule, except warnings would not be issued for the excluded type of comment.
Yes. This request is to add a configuration key such as
only, which would takeFIXMEorTODOas its value.The rule is currently enabled by default.