Releases: go-critic/go-critic
Releases · go-critic/go-critic
v0.8.2
What's Changed
- build(deps): bump golang.org/x/tools from 0.9.1 to 0.9.2 by @dependabot in #1346
- build(deps): bump golang.org/x/tools from 0.9.2 to 0.9.3 by @dependabot in #1347
- build(deps): bump golang.org/x/tools from 0.9.3 to 0.10.0 by @dependabot in #1348
- build(deps): bump golang.org/x/tools from 0.10.0 to 0.11.0 by @dependabot in #1352
- checker/rangeValCopy: stop panicking by @cristaloleg in #1355
Full Changelog: v0.8.1...v0.8.2
v0.8.1
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
- @leonklingele made their first contribution in #1345
Full Changelog: v0.8.0...v0.8.1
v0.8.0
What's Changed
- docs: update by @cristaloleg in #1271
- all: use checker tags by @cristaloleg in #1333
- checkers/octalLiteral: should warn only for Go >= 1.13 by @alexandear in #1335
- build(deps): bump golang.org/x/tools from 0.7.0 to 0.8.0 by @dependabot in #1336
- checkers: remove err.Error redundantChecker suggest by @alexandear in #1339
- checkers: fix setting of Go version for ruleguard by @alexandear in #1340
New Contributors
- @alexandear made their first contribution in #1335
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
- deps: bump by @cristaloleg in #1316
- all: cleanup internal things by @cristaloleg in #1317
- cmd,framework: remove lintmain by @cristaloleg in #1318
- deps: bump toolmantim/release-drafter from 5.20.0 to 5.23.0 by @dependabot in #1320
- dev: added makefile step to generate new checker by @neverix in #993
- all: get rid of framework package by @cristaloleg in #1321
- deps: bump github.com/cristalhq/acmd from 0.11.0 to 0.11.1 by @dependabot in #1323
- checkers/wrapperFunc: suggest
strings.Contains*
instead ofstrings.Index* >= 0
by @junk1tm in #1290 - ci: trigger more often, use more versions & do cron by @cristaloleg in #1324
- dev: better linter config by @cristaloleg in #1325
- checkers: add sloppyTestFuncName by @cristaloleg in #1322
- checkers: extend
preferFprint
forWriteString
calls by @tdakkota in #1154 - checkers/wrapperFunc: merge into master by @cristaloleg in #1329
- checkers: remove the
ioutil
check by @jeffwidman in #1212 - cmd/gocritic: use checkGenerated flag properly by @cristaloleg in #1327
- deps: bump golang.org/x/tools from 0.6.0 to 0.7.0 by @dependabot in #1330
- deps: bump github.com/go-toolsmith/pkgload from 1.2.1 to 1.2.2 by @dependabot in #1331
- cmd/gocritic: add concurrency flag by @cristaloleg in #1328
- deps: bump actions/setup-go from 3 to 4 by @dependabot in #1332
- checkers: run go/analysis concurrently by @cristaloleg in #1319
New Contributors
- @neverix made their first contribution in #993
- @jeffwidman made their first contribution in #1212
Full Changelog: v0.6.7...v0.7.0
v0.6.7
v0.6.6
- 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
- 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
- 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
Checkers
Features
- ruleguard: add filter by tags for analyzer mode #1205
- checkers: add skip experimental tag by default for user defined rules #1217
Deps
- deps: remove colored output support (https://github.com/go-critic/go-critic/pull/1207)\
- update ruleguard #1214
v0.6.2
Checkers
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)