Skip to content

Releases: go-critic/go-critic

v0.8.2

27 Jul 13:26
40e60d7
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8.1...v0.8.2

v0.8.1

19 May 07:48
d97daec
Compare
Choose a tag to compare

What's Changed

  • build(deps): bump golang.org/x/tools from 0.8.0 to 0.9.0 by @dependabot in #1342
  • build(deps): bump golang.org/x/tools from 0.9.0 to 0.9.1 by @dependabot in #1343
  • checkers/httpNoBody: also warn on using "nil" instead of "http.NoBody" on (net/http/httptest).NewRequest by @leonklingele in #1345

New Contributors

Full Changelog: v0.8.0...v0.8.1

v0.8.0

27 Apr 11:28
54f0186
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.8.0

v0.7.0

17 Mar 08:45
186320f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.7...v0.7.0

v0.6.7

19 Feb 20:33
c62488b
Compare
Choose a tag to compare

Updated ruleguard and gogrep versions.

v0.6.6

19 Feb 13:32
bb4a086
Compare
Choose a tag to compare
  • checkers: fix reflect.Value suggestion in redundantSprint (#1260)
  • update astequal and astcopy packages (#1261)
  • checkers: fix typeUnparen for func type literals (#1262)
  • checkers: fix httpNoBody suggestion (#1204)
  • update ruleguard to 0.3.18 (#1263)
  • checkers/dupBranchBody: fix grammar in error (#1264)
  • checkers: add new rule uncheckedInlineErr (#1259)
  • checkers: ignore generics in newDeref (#1273)
  • checkers: use stable sort in badRegexp (#1275)
  • checkers: add minimum threshold parameter for ifElseChain linter (#1269)
  • checkers: fixed value assignment in the ifElseChain checker (#1278)
  • framework,checkers: add new method for ruleguard warnings (#1280)
  • go,ci: update Go version (#1302)
  • checkers: fix hugeParam and rangeValCopy when generics (#1309)
  • checkers: expand supported conditions for badCondition checker (#1287)

v0.6.5

28 Aug 23:32
baa3245
Compare
Choose a tag to compare
  • checkers: return an error instead of panic in InitEmbeddedRules (#1250)
  • docs: update README install instruction for go 1.18 (#1254)
  • checkers: fix reflect.Value suggestion in redundantSprint (#1260)
  • update astequal and astcopy packages (#1261)
  • checkers: fix typeUnparen for func type literals (#1262)
  • checkers: fix httpNoBody suggestion (#1204)
  • update ruleguard to 0.3.18 (#1263)

v0.6.4

11 Aug 21:39
d9c2d89
Compare
Choose a tag to compare
  • Updated ruleguard and x/tools
  • all: use cristalhq/acmd #1198
  • checkers: add time range expr simplify (#1220)
  • ci: add Go 1.18 (#1240)
  • checkers: turn init() for embedded rules into exported func (#1246)
  • checkers: don't call SizeOf for type parameters (#1237)
  • checkers: supported generics for typeDefFirst and paramTypeCombine (#1239)
  • checkers: use ctx.SizeOf instead of SizesInfo.SizeOf (#1247)

A special thanks goes to @mcdoker18, @cristaloleg and @peakle + everyone who helps to keep this project afloat.

v0.6.3

09 Apr 12:15
498eef8
Compare
Choose a tag to compare

Checkers

  • checkers: add todoCommentWithoutDetail #1169
  • checkers: add new checker stringsCompare #1195

Features

  • ruleguard: add filter by tags for analyzer mode #1205
  • checkers: add skip experimental tag by default for user defined rules #1217

Deps

v0.6.2

10 Jan 08:00
f0a10a0
Compare
Choose a tag to compare

Checkers

  • checkers: add deferInLoop checker (#1145)
  • checkers: add dynamicFmtString checker (#1156)

Fixes

  • checkers: update preferWriteByte (#1151)
  • checkers: treat //noinspection as pragma in commentFormatting (#1166)
  • checkers: fix equalFold rules autofix templates (#1178)
  • checkers: ignore labeled continue in select statement (#1158)

Improvements

  • checkers: add At() for httpNoBody checker (#1164)
  • checkers: add enable/disable flags to ruleguard checker (#1181)
  • checker/whyNoLint: compile regex when it is needed (#1182)
  • checkers: add fixable for commentFormatting (#1190) (#1191)

Tests

  • checkers: add more octalLiteral tests (#1150)
  • checkers: add tests for #1166 (#1172)
  • checkers: add few lines test cases for deprecatedComment (#1189)

Docs

  • checkers/preferFprint: fix docs (#1142)

Development

  • checkers: add hidden ruleguard debug handle (#1134)
  • tools: move tools into own module (#1162)
  • checkers: move out embedded rules from checkers.go (#1186)

Performance

  • checkers: optimize deprecatedComment (#1188)
  • checkers: optimize commentFormatting (#1192)