All Versions
Latest Version
Avg Release Cycle
98 days
Latest Release
1339 days ago

Changelog History

  • v0.5.2 Changes

    August 14, 2020

    ๐Ÿ”„ Changes

    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 Changes

    August 12, 2020

    โšก๏ธ Updated go-ruleguard version to v0.2.0.

    ๐Ÿš€ This minor release is an attempt to fix a broken dependency.
    ๐Ÿ‘€ See #953

  • v0.5.0 Changes

    June 15, 2020

    ๐Ÿ‘• 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.
  • v0.4.3

    March 18, 2020
  • v0.4.1 Changes

    January 07, 2020

    ๐Ÿ”„ Changes

  • v0.4.0 Changes

    November 27, 2019

    ๐Ÿš€ 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 Changes

    January 04, 2019
    • ๐Ÿ›  Fixed a number of false positives and panics for stable checkers
    • ๐Ÿ‘• Moved to a lintpack framework which uses
    • ๐Ÿ‘Œ 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]