Repository navigation
v0.4.0
·
2 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
molint adds molint.New, which builds an analyzer from typed settings. Nothing molint reports changes.
molint.New
New builds an analyzer of its own from a molint.Config. It has no flags, so two analyzers share nothing with each other or with molint.Analyzer (#22):
a, err := molint.New(molint.Config{
Rules: map[string]bool{"return-error": true},
})Rules turns a rule on or off by its name, as the flags do. A rule left out keeps its default. New fails on an unknown rule. molint.Analyzer keeps the flags, for the command and go vet. The golangci-lint plugin now builds its analyzer with New.
Other changes
| Change | Effect |
|---|---|
The skills move from the root package to github.com/mpyw/molint/skills (#21) |
The analyzer no longer pulls in go-skill-embed. molint.Skills is removed. Use skills.Set |
The analyzer is built without init (#22) |
None |
| The README says AI coding agents are used (#22) | None |
golang.org/x/tools goes from v0.50.0 to v0.52.0 (#16, #18) |
None |
The design notes drop a repeated paragraph (#17), and the icon moves to .github/assets (#15) |
None |
declscope, which checks the repository itself, was updated too (#12, #13, #14, #19, #20). It is a development tool, and not part of the binary.
Upgrading
| Who | Do |
|---|---|
| golangci-lint plugin | Set version: v0.4.0 in .custom-gcl.yml |
Code that read molint.Skills |
Import github.com/mpyw/molint/skills and read skills.Set |
| Everyone else | Nothing |
Install
mise use "github:mpyw/molint@0.4.0"Full changelog: v0.3.0...v0.4.0