go-critic v0.5.0 Release Notes

Release Date: 2020-06-15 // almost 4 years ago
  • ๐Ÿ‘• It's now possible to install go-critic with go get (no lintpack required).

    ๐Ÿ†• New checkers:

    • 9a11c85 added deferUnlambda checker.
    • 99489e1 added badRegexp checker.
    • 3a3e885 added regexpSimplify checker.
    • 3916229 added sloppyTypeAssert checker.
    • d6fa699 added sqlQuery checker.
    • 33d100b added sortSlice checker.

    ๐Ÿ›  Fixes:

    • โš  4757c17 typeSwitchVar now generates 1 warning per switch statement.
    • 7668b86 commentFormatting does not report //go:generate comments.
    • 730db5a commentFormatting does not report //export comments.
    • f4eb84b unnecessaryDefer false positive fix.