flake8-todo
flake8-todo copied to clipboard
Misreport TODO on a string containing 'XXX'
We have a string literal like, shirt_size = 'XXXL'
or shirt_size = 'XXXXL'
, which been reported as TODO entry.
I would be nice if flake8-todo can ignore string literals.
Thanks
Similar issue with next code:
customer_postal_code = models.CharField(
_('customer postal code'),
max_length=5,
validators=[RegexValidator(regex=zip_regex, message=_('Enter a zip code in the format XXXX.'))],
)
Reported line next line:
validators=[RegexValidator(regex=zip_regex, message=_('Enter a zip code in the format XXXX.'))],
as TODO entry.
+1
{
'file_id': 'XXXYYYZZZ'
}