Skip to content

Conversation

@bartzantingh
Copy link
Contributor

@bartzantingh bartzantingh commented Feb 10, 2026

Add type assertion and check for empty "errors" array returned from rule to prevent crashes when converting to []interface{}

Issue #107

Add type assertion and check for empty `"errors"` array returned from rule to prevent crashes when converting to `[]interface{}`
@github-actions
Copy link

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/mxlint/mxlint-cli/lint 75.38% (-0.06%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/mxlint/mxlint-cli/lint/lint_rego.go 89.89% (-0.92%) 89 (+2) 80 (+1) 9 (+1) 👎

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@xiwenc xiwenc merged commit 83e6122 into main Feb 10, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants