github / github/codeql

Too many arguments for string format. - false positive

Ouverte
#8,070 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
false-positive Python
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
141

Description

**Description of the false positive**

The format string in the following code snippet is flagged, but is valid python code. There is even a similar example in the [python docs](https://docs.python.org/3/library/string.html#format-examples):

```py
def int_formatter(val, chars, delta, left):
return '{:{}{}}'.format(int(val), '<' if left else '>', chars)
```

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

https://lgtm.com/projects/g/tammoippen/plotille/snapshot/74aed13cb730bbfe2f6800352c6c52298823ea05/files/examples/logo_example.py?sort=name&dir=ASC&mode=heatmap#xda5b6013af34ebb6:1

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.