Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

DUO110: false positive on re.compile #16

Closed
scorpp opened this issue Jul 31, 2019 · 2 comments
Closed

DUO110: false positive on re.compile #16

scorpp opened this issue Jul 31, 2019 · 2 comments

Comments

@scorpp
Copy link

scorpp commented Jul 31, 2019

The following code triggers DUO110 which is regarding compile built-in, not the re.compile

from re import compile, search

class CustomValidator(object):
    digits = compile('[0-9]+')
@mschwager
Copy link
Collaborator

Good catch!

Tracking my thoughts here:

Thanks!

@mschwager
Copy link
Collaborator

@scorpp,

This false positive will be gone in the next release of Dlint :)

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

No branches or pull requests

2 participants