flake8-todo icon indicating copy to clipboard operation
flake8-todo copied to clipboard

Misreport TODO on a string containing 'XXX'

Open jianingy opened this issue 5 years ago • 2 comments

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

jianingy avatar May 05 '19 02:05 jianingy

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.

DmytroLitvinov avatar Feb 08 '22 07:02 DmytroLitvinov

+1

{
   'file_id': 'XXXYYYZZZ'
}

nmzgnv avatar Sep 19 '23 12:09 nmzgnv