github / github/codeql

LGTM.com - false positive (Python regex in verbose mode)

Open
#4,707 8 comments 0 reactions 0 assignees View on GitHub
false-positive Python
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**Description of the false positive**

In verbose regular expressions, spaces are ignored and comments are allowed. The py/regex/unmatchable-dollar and py/regex/unmatchable-caret tests give false positive.

**URL to the alert on the project page on LGTM.com**

https://lgtm.com/projects/g/2ndquadrant-it/barman/snapshot/958a76c31198ee1879d2f89ef418979c034824c7/files/barman/copy_controller.py?sort=name&dir=ASC&mode=heatmap#xfa2c7f56a58e38c9:1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.