aboutcode-org / aboutcode-org/vulnerablecode
fix: Remove unnecessary f-string prefix in vulnrichment.py
- 主要言語
- Python
- スター
- 702
- フォーク
- 328
- 平均マージ
- 3日 8時間
- マージ済み PR(30日)
- 3
説明
## 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"):
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。