Repository navigation
chore: trim tooling to what a small library needs - #230
Merged
Merged
Conversation
- .PHONY listed the targets with commas, so it declared "vet," and the like: a file named vet made `make vet` a no-op. - Drop VERSION, APP_NAME and BIN_DIR. VERSION referenced $(git ...) as a make variable, which expands to nothing; no script used VERSION, and APP_NAME was only echoed. - .golangci.yml set issues-exit-code: 0, so `make lint-full` passed with any findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI gated on .golangci.pipe.yml with 5 linters, while .golangci.yml with 25 linters only fed Sonar and never failed. The code passes the full config, so gate on it and drop the pipe config. Its errcheck settings and the revive defer rule move into .golangci.yml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- go_lint (golint is deprecated) and golangci_ci_execute, which nothing called, and the unused browser-opener.sh. - GO111MODULE=on, the default since Go 1.16. - Lint exclusions for paths the repo does not have (*.pb.go, vendor/, third_party, builtin, examples) and settings of gci, which is off. - The goreleaser checksum section: builds are skipped, so there is nothing to sum. - test-regression, an alias of test, and the call of the undefined colored function in help. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov already reports coverage on PRs and has a badge, and the lint job gates on golangci-lint, so Sonar duplicated both. The coverbadger badge was a third coverage number, and coverbadger is not even pinned in tools/. This also drops what only Sonar read: the checkstyle report, the go test JSON report and the second lint run in the reports job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The go command covers what they did: go test runs the tests and go tool cover renders the HTML report. The tool modules needed a newer Go than the oldstable the library supports, which is why CI could not run make test; now it does. Dependabot no longer bumps them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #230 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 99 99
=========================================
Hits 99 99 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
obalunenko
added a commit
that referenced
this pull request
Nov 15, 2026
#230 dropped the scan, and Sonar has not analyzed anything since. Restore it in the reports job with its inputs: the coverage profile, the go test JSON report and the golangci-lint checkstyle report. The checkstyle report is now requested with a flag in that one step, not in .golangci.yml, so local lint runs no longer leave linters-report.xml behind. sonar-project.properties drops the stale projectVersion and the vendor/ exclusions, as vendor/ is gone. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Description
Follow-up to a review of the repository. The tooling outweighed the library: two lint configs, three coverage reporters, five tool modules and about twenty scripts, against about 480 lines of Go. Some of it was broken. Five commits:
.PHONYlisted the targets with commas, so it declaredvet,and the like. Checked: aftertouch vet,make vetwas a no-op.VERSIONreferenced$(git …)as a make variable, which expands to nothing, and nothing used it.APP_NAMEwas only echoed..golangci.ymlhadissues-exit-code: 0, somake lint-fullpassed with any findings..golangci.pipe.yml, while the 25-linter.golangci.ymlonly fed Sonar. The code passes the full config with 0 issues, so CI now gates on it. The errcheck settings and the revivedeferrule move over from the pipe config; I checked that theexportedanddeferrules still fire.go_lint,golangci_ci_executeandbrowser-opener.sh;GO111MODULE=on;gcisettings, thoughgciis off;checksumsection, though builds are skipped;test-regressionand the undefinedcoloredcall inhelp.go testandgo tool cover -htmldo the same job. These tool modules needed a newer Go than oldstable, which is why CI could not usemake test; now it does.What stays: the go vet and test matrix (stable and oldstable), golangci-lint, Codecov, CodeQL, goreleaser release notes, dependabot, and the
goimportsandgolangci-linttool modules.Github Issue
—
Possible failures/side-effects
mastertoday with 0 issues, but new code has to meet the full config.SONAR_TOKENsecret are no longer used; delete them in SonarCloud and in the repo settings if you no longer need them.make help,make testwithGOTOOLCHAIN=local,make prepare-cover-report,make lint-full,make check-releaserandmake install-tools;golangci-lint config verify;Other notes
Independent of #229. The only overlap is the README badges at the top, which #229 does not touch.
🤖 Generated with Claude Code