False positive and false negative results for H904
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hacking |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The H904 rule is poorly regex implemented [0], which causes false positive and false negative results too.
False positive: the rule shoots on the codes, however they should not (live example at [1]):
LOG = logging.
def lowerize(st):
return st.lower()
def foo(random_string):
False negative: the rule should shoot on the code, but it does not (live example at [2]):
logger = logging.
def lowerize(st):
return st.lower()
def foo(random_string):
[0]: https:/
[1]: https:/
[2]: https:/
Changed in hacking: | |
assignee: | nobody → Gábor Antal (gabor.antal) |
description: | updated |
Changed in hacking: | |
status: | New → Confirmed |
summary: |
- False positive and false negative resulst for H904 + False positive and false negative results for H904 |
Changed in hacking: | |
assignee: | Gábor Antal (gabor.antal) → nobody |