Skip to content

add option to enable revive in golangci_lint#403

Merged
majewsky merged 1 commit intomainfrom
add_revive_option
Nov 6, 2025
Merged

add option to enable revive in golangci_lint#403
majewsky merged 1 commit intomainfrom
add_revive_option

Conversation

@wagnerd3
Copy link
Copy Markdown
Contributor

@wagnerd3 wagnerd3 commented Nov 5, 2025

This PR adds the option to enable specific rules of the revive linter in golangci_lint, which we want to use in our projects to ensure better documentation coverage with the snippet shown in the README.
In the limes project, this rule had many findings initially, so enabling this for all projects that use go-makefile-maker is unrealistic.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 5, 2025

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/go-makefile-maker/internal/core 0.00% (ø)
github.com/sapcc/go-makefile-maker/internal/golangcilint 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/go-makefile-maker/internal/core/config.go 0.00% (ø) 40 0 40
github.com/sapcc/go-makefile-maker/internal/golangcilint/golangci_lint.go 0.00% (ø) 0 0 0

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.

@wagnerd3
Copy link
Copy Markdown
Contributor Author

wagnerd3 commented Nov 5, 2025

I filed this PR in limes to showcase what kind of findings we get from the example lint in the README: sapcc/limes#790

@majewsky majewsky merged commit e81004a into main Nov 6, 2025
8 checks passed
@majewsky majewsky deleted the add_revive_option branch November 6, 2025 09:05
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