mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-11-24 14:56:40 +00:00
CI: Drop an unused loop variable in the warnings report script
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ee6f7c129b
commit
2b11931679
1 file changed
+1
-1
@@ -327,7 +327,7 @@ class Report:
|
||||
def render_text(self):
|
||||
"""All unique warnings in compiler format, for IDEs and grep."""
|
||||
lines = []
|
||||
for category, w in sorted(self.all_items(changed_only=False), key=lambda e: (e[1], e[0])):
|
||||
for w in sorted({w for _, w in self.all_items(changed_only=False)}):
|
||||
flag = f" [{w.flag}]" if w.flag else ""
|
||||
lines.append(f"{w.file}:{w.line}:{w.col}: warning: {w.msg}{flag}")
|
||||
return "\n".join(lines) + ("\n" if lines else "")
|
||||
|
||||
Reference in new issue
Block a user