Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pyspector/triage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def create_fingerprint(issue: Dict[str, Any]) -> str:
# Use rule ID, file path relative to a potential project root, and the line content
# This makes the fingerprint stable across different checkout directories
unique_string = f"{issue.get('rule_id', '')}|{issue.get('file_path', '')}|{issue.get('line_number', '')}|{issue.get('code', '').strip()}"
return hashlib.sha256(unique_string.encode('utf-8')).hexdigest()
return hashlib.sha1(unique_string.encode('utf-8')).hexdigest()

class PySpectorTriage(App):
"""An interactive TUI for triaging PySpector findings."""
Expand Down