github / github/codeql

LGTM.com - false positive Python "Wrong number of arguments for format"

Open
#7,068 2 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

The number of format arguments in our python code is correct. LGTM still reports an issue.

https://lgtm.com/projects/g/frePPLe/frepple/snapshot/6b89289c3b22cc0c42e3253033a18cf870ccbccd/files/freppledb/output/views/buffer.py?sort=name&dir=ASC&mode=heatmap#xa17cfbfa70726cca:1

Maybe the query gets confused with the use of "%%s"?

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.