Repository navigation
fix(cli): baseline command fingerprints expanded findings (#630) #643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3180,8 +3180,10 @@ def baseline( | |
| # output_format is irrelevant here; we consume findings, not report_body. | ||
| state = _scan_state(input_path, FormatChoice.json, no_llm) | ||
| state["baseline_path"] = os.path.abspath(output.expanduser()) | ||
| from skillspector.nodes.report import _expand_occurrences | ||
|
|
||
| result = graph.invoke(state) | ||
| findings = effective_findings(result) | ||
| findings = _expand_occurrences(effective_findings(result)) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same limitation as #631: |
||
| data = build_baseline_dict( | ||
| findings, | ||
| reason=reason, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is why
lintfails atmake format-check:ruff format --checkwants a blank line after the function-local import (Would reformat: src/skillspector/cli.py). Please import at module level next toreport(from skillspector.nodes.report import report, cli.py:63) and runmake format, or drop the import if you switch approach.