Releases: go-critic/go-critic
Releases · go-critic/go-critic
v0.5.3
Improvements
- extend
flagNamediagnostics @quasilyte (#1005) - enable
ruleguarddebug via[email protected]=<name>@quasilyte (#1002) ruleguardnow supports multi rules input @quasilyte (#1001)- improve
exitAfterDeferwarnings text @josephzidell (#978)
New checkers
- added
badLockchecker @quasilyte (#999) - added
builtinShadowDecl@quasilyte (#970) - added
typeDefFirstchecker @LevOspennikov (#960)
Fixes
- fix
stringXbytes@cristaloleg (#1013) - fix
unlambdafalse positive on ptr vars @quasilyte (#1008) - fix
unlambdapanic on variadic func literals @quasilyte (#992) - ignore
defer exit()inexitAfterDefer@quasilyte (#996) - don't warn on nolint with reason in commentFormatting @quasilyte (#986)
- make
argOrderchecker more conservative @quasilyte (#969)
More stable checkers
Changes
- checkers: mark more checkers as stable @quasilyte (#956)
Checkers that are now considered to be stable:
* argOrder
* badCall
* badCond
* codegenComment
* commentFormatting
* deprecatedComment
* exitAfterDefer
* flagName
* mapKey
* newDeref
* offBy1
* stringXbytes
* valSwap
* wrapperFunc
Every checker from this list was tested on several big Go projects.
v0.5.1: checkers: update ruleguard to v0.2.0 (#952)
Updated go-ruleguard version to v0.2.0.
This minor release is an attempt to fix a broken dependency.
See #953
Lintpack-free release
It's now possible to install go-critic with go get (no lintpack required).
New checkers:
- 9a11c85 added
deferUnlambdachecker. - 99489e1 added
badRegexpchecker. - 3a3e885 added
regexpSimplifychecker. - 3916229 added
sloppyTypeAssertchecker. - d6fa699 added
sqlQuerychecker. - 33d100b added
sortSlicechecker.
Fixes:
v0.4.3: checkers: add ruleguard checker (#907)
This is part of the ruleguard integration experiment. Hopefully, we can get some feedback to improve the way it's integrated. The simplest way to try it out: gocritic check -enable ruleguard [email protected] <gorules> <target> Where: <gorules> is a path to a Go rules file <target> is a linting target An example gorules file can be found here: https://github.com/quasilyte/go-ruleguard/blob/master/rules.go Visit https://github.com/quasilyte/go-ruleguard for more info on the ruleguard. Updates #873 Updates #869 Updates #837 Updates #836 Updates #831 Signed-off-by: Iskander Sharipov <[email protected]>
v0.4.2
Changes
- checkers: add ruleguard checker @quasilyte (#907)
- add draw.Draw to draw.DrawMask checker @seregayoga (#904)
- checkers: rename deferAtTheEnd to unnecessaryDefer @quasilyte (#902)
- checker: add defer at the end of function checker @janisz (#901)
v0.4.1
Changes
- all: rename release-config.yaml to release-drafter.yml @cristaloleg (#898)
- readme: add "cd" step to installation guide @quasilyte (#896)
- checkers: add mapKey checker @quasilyte (#895)
- checkers: fix integration tests @quasilyte (#894)
- all: use Github Actions @cristaloleg (#891)
- all: make automate releases @cristaloleg (#892)
- makefile: correct linter.version argument @sosiska (#890)
v0.4.0 Delayed release
Long time ago we did v0.3.4 release, it's time to make them more regular.
Current one contains mostly bugfixes.
v0.3.4: checkers: fix nil pointer dereference in flagName (#750)
- Fixed a number of false positives and panics for stable checkers
- Moved to a
lintpackframework which uses https://godoc.org/golang.org/x/tools/go/packages - Improved the test suite for checkers
- Moved less maintained and too experimental checkers to contrib repo
Marked several checkers stable.
The current list of stable checkers:
appendAssign [diagnostic]
appendCombine [performance]
assignOp [style]
builtinShadow [style opinionated]
captLocal [style]
caseOrder [diagnostic]
defaultCaseOrder [style]
dupArg [diagnostic]
dupBranchBody [diagnostic]
dupCase [diagnostic]
dupSubExpr [diagnostic]
elseif [style]
flagDeref [diagnostic]
hugeParam [performance]
ifElseChain [style]
importShadow [style opinionated]
indexAlloc [performance]
paramTypeCombine [style opinionated]
rangeExprCopy [performance]
rangeValCopy [performance]
regexpMust [style]
singleCaseSwitch [style]
sloppyLen [style]
switchTrue [style]
typeSwitchVar [style]
typeUnparen [style opinionated]
underef [style]
unlambda [style]
unslice [style]