aboutcode-org / aboutcode-org/vulnerablecode
fix: Remove unnecessary f-string prefix in vulnrichment.py
- Lingua principale
- Python
- Stelle
- 702
- Fork
- 328
- Merge medio
- 3g 8h
- PR unite (30g)
- 3
Descrizione
## Summary
The file [vulnerabilities/importers/vulnrichment.py](cci:7://file:///D:/Projects2.0/Gsoc/vulnerablecode/vulnerabilities/importers/vulnrichment.py:0:0-0:0) contains an f-string without any placeholders at line 32, which violates ruff rule F541.
## Problem
Using `f"..."` syntax without any `{variable}` placeholders inside is:
- Unnecessary overhead (f-strings are marginally slower than regular strings)
- Misleading to readers who expect interpolation
- A code quality issue flagged by linters
## Location
**File:** [vulnerabilities/importers/vulnrichment.py](cci:7://file:///D:/Projects2.0/Gsoc/vulnerablecode/vulnerabilities/importers/vulnrichment.py:0:0-0:0)
**Line:** 32
**Current code:**
```python
for file_path in base_path.glob(f"**/**/*.json"):
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.