Skip to content
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

Fix 4913 - use JSON output for golangci-lint instead of regexps. #4917

Conversation

hsanson
Copy link
Contributor

@hsanson hsanson commented Mar 5, 2025

golangci-lint linter uses regular expressions for parsing linter output that is fragile given that golangci-lint is a meta linter that supports many others with different outputs. Fortunately it supports JSON output since at least version 1.7 from 2018 that is more stable and easier to parse.

This PR modifies ALE golangci-lint handler to parse JSON output.

@hsanson hsanson merged commit 7882fb9 into dense-analysis:master Mar 7, 2025
7 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.

1 participant