feat: Add lipgloss-styled human output for requirement analysis commands (#219) - #241
Open
sedonnel wants to merge 1 commit into
Open
feat: Add lipgloss-styled human output for requirement analysis commands (#219)#241sedonnel wants to merge 1 commit into
sedonnel wants to merge 1 commit into
Conversation
…nds (#219) - cmd/complypack/cli/styling.go - Added share styling definitions and rendering helpers. - cmd/complypack/cli/applicability.go - cmd/complypack/cli/delta.go - cmd/complypack/cli/requirements.go - cmd/complypack/cli/triage.go - Added implementation for human output function. - cmd/complypack/cli/coverage.go - Refactored to remove styling varables (moved to styling.go). - Refactored existing use of lipgloss to use styling.go. - cmd/complypack/cli/applicability_test.go - Refactored write human test to no longer delegate to text. - Added NoGroups test to align with text testing. - cmd/complypack/cli/delta_test.go - Refactored write human test to no longer delegate to text. - Added NoComparissons test to align with text testing. - cmd/complypack/cli/requirements_test.go - Refactored write human test to no longer delegate to text. - Added Empty test to align with previous tests. - cmd/complypack/cli/triage_test.go - Refactored write human test to no longer delegate to text - Added NoPlans test to align with previous tests
✅ CRAP Load Analysis: PASS (no baseline)No baseline file found at How to Enable Regression DetectionGenerate and commit a baseline file to track CRAP score changes over time: # 1. Install gaze
go install github.com/unbound-force/gaze/cmd/gaze@latest
# 2. Run tests and generate baseline
go test -coverprofile=coverage.out ./...
mkdir -p .gaze
gaze crap --format=json --coverprofile=coverage.out ./... > .gaze/baseline.json
# 3. Commit the baseline
git add .gaze/baseline.json
git commit -m "chore: add CRAP baseline for regression detection"For more information: Summary
|
Member
|
@sedonnel the lint issue seems to be legit. Could you take a look, please? |
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.
feat: Add lipgloss-styled human output for requirement analysis commands (#219)
Changes
cmd/complypack/cli/styling.go
cmd/complypack/cli/applicability.go, cmd/complypack/cli/delta.go, cmd/complypack/cli/requirements.go, cmd/complypack/cli/triage.go
cmd/complypack/cli/coverage.go
cmd/complypack/cli/applicability_test.go
cmd/complypack/cli/delta_test.go
cmd/complypack/cli/requirements_test.go
cmd/complypack/cli/triage_test.go
Summary
Added generic
styling.gofor reusable generic helper functions for lipgloss styling. Refactoredapplicability.go,delta.go,requirements.go,triage.goandcoverage.goto use lipgloss styled output for human readable reports. Also refactored applicable tests to test the human output.Related Issues