Python: False positive for blank space characters
Open
false-positive
- Dominant language
- CodeQL
- Stars
- 10.1k
- Forks
- 2.1k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 141
Description
https://github.com/github/codeql/blob/main/python/ql/src/Functions/ConsistentReturns.ql
return "" is being interpreted as a implicit return, but it is actually an explicit return (blankspace).
Contributor guide
Research direction
Start by reading python/ql/src/Functions/ConsistentReturns.ql and trace how return "" is classified. Confirm the query distinguishes this explicit return from an implicit return, then verify the existing query behavior with the repository's relevant tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100