Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misreport TODO on a string containing 'XXX' #12

Open
jianingy opened this issue May 5, 2019 · 2 comments
Open

Misreport TODO on a string containing 'XXX' #12

jianingy opened this issue May 5, 2019 · 2 comments

Comments

@jianingy
Copy link

jianingy commented May 5, 2019

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

@DmytroLitvinov
Copy link

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.

@nmzgnv
Copy link

nmzgnv commented Sep 19, 2023

+1

{
   'file_id': 'XXXYYYZZZ'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants