Rule Request: [todo] Extend todo rule to allow FIXME and TODO be separately chosen #5232
Closed
2 tasks done
Labels
enhancement
Ideas for improvements of existing features and rules.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
New rule request
Currently, the
todo
rule issues warnings for bothTODO
andFIXME
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 forFIXME
comments, 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 takeFIXME
orTODO
as its value.The rule is currently enabled by default.
The text was updated successfully, but these errors were encountered: