feat(cli): JSON/SARIF reportSummary 계약 추가 - #87
Merged
Conversation
machine-readable 출력에 reportSummary를 추가하고 --lang 언어 계약을 스키마와 테스트로 고정합니다. Closes #81
Owner
Author
|
APPROVE (comment fallback) 공식 approval은 GitHub가 self-authored PR이라 거부했습니다. 독립 PR 리뷰 결과 Critical/High blocker는 없습니다. 확인한 사항:
검증:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
#81은 텍스트 리포트와 같은 판정 요약을 JSON/SARIF 사용자도 자동화에서 사용할 수 있게 만드는 작업입니다.
변경 사항
scan/optimize --json,budget --json,ci --json에reportSummary를 추가했습니다.scan/ci --sarif의runs[0].properties.reportSummary를 추가했습니다.reportSummary.language가--lang ko|en을 따르도록 했고, SARIFmessage.text/shortDescription.text는 언어별 human text를 사용하되ruleId는 유지했습니다.reportSummary를 required contract로 검증하도록 갱신했습니다.검증
cargo fmt --all --checkgit diff --checkcargo test -p legolas-cli --test json_schema_contractcargo test -p legolas-cli --test sarif_contractcargo test -p legolas-cli --test budget_contractcargo test -p legolas-cli --test ci_contractcargo test -p legolas-cli --test cli_contractcargo test -p legolas-cli --test config_contractcargo test -p legolas-cli --test baseline_contractcargo test --workspacecargo clippy --workspace --all-targets -- -D warnings리뷰 게이트
reportSummaryschema required 누락)브랜치 / 워크트리
origin/masterfeature/81-report-summary-schema/tmp/legolas-issue-81Closes #81