Releases: Antonboom/testifylint
Releases · Antonboom/testifylint
Less false positives for `go-require`
What's Changed
- build(deps): bump golangci/golangci-lint-action from 3 to 4 by @dependabot in #68
- build(deps): bump golang.org/x/tools from 0.17.0 to 0.18.0 by @dependabot in #69
- go-require: do not skip anonymous test funcs by @Antonboom in #70
Full Changelog: v1.1.2...v1.1.3
Less false positives for `require-error`
Full Changelog: v1.1.1...v1.1.2
Fix of regress after golangci-lint v1.56.0
What's Changed
- build(deps): bump actions/setup-go from 4 to 5 by @dependabot in #58
- build(deps): bump golang.org/x/tools from 0.16.1 to 0.17.0 by @dependabot in #59
- build(deps): bump actions/checkout from 3 to 4 by @dependabot in #57
- expected-actual: support & and * expr by @Antonboom in #63
- require-error: support '} else if' by @Antonboom in #64
Full Changelog: v1.1.0...v1.1.1
v1.1.0
What's Changed
- build(deps): bump golang.org/x/tools from 0.14.0 to 0.16.0 by @dependabot in #42
- build(deps): bump golang.org/x/tools from 0.16.0 to 0.16.1 by @dependabot in #46
- More examples in checkers documentation by @Antonboom in #49
- require-error: improve the doc by @Antonboom in #50
- nil-compare false positives investigation by @Antonboom in #55
- Add new advance checker: blank-import by @hendrywiranto in #45
- setup dependabot config for github-actions by @mmorel-35 in #52
- new checker 'useless-assert' by @Antonboom in #56
New Contributors
- @hendrywiranto made their first contribution in #45
- @mmorel-35 made their first contribution in #52
Full Changelog: v1.0.2...v1.1.0
v1.0.2
What's Changed
- analysisutil.IsObj: don't use obj.Id() as uniq identifier by @Antonboom in #32
Full Changelog: v1.0.1...v1.0.2
First Stable Version
Description
The large release based on the first wave of feedback from community.
What's Changed
Config
- Support of
enable-all
anddisable-all
withenable
anddisable
. - Support of
require-error.fn-pattern
.
New checkers
Checkers
Global
Support more assertions in expected-actual
and comparison-based checkers:
EqualExportedValues
EqualValues
Exactly
InDelta
InDeltaMapValues
InDeltaSlice
InEpsilon
IsType
NotEqualValues
NotSame
Same
WithinDuration
bool-compare
- Ignore arguments of empty interface type.
empty
- Ignore
len(n) > 1
andlen(n) >=1
cases (false positives fix).
error-is-as
- Check
ErrorAs
target.
error-nil
- Support
ErrorIs(err, nil)
andNotErrorIs(err, nil)
(false negatives fix).
float-compare
- Fix report for formatted assertions.
- Trigger if one of argument is float (false negatives fix).
len
- Ignore comparisons when
len(arr)
is expected value and actual is not literal (false positives fix).
require-error
- Significantly minimize the number of false positives by analysing of surrounding context.
- Support of
require-error.fn-pattern
.
New ideas for contribution
New Contributors
Full Changelog: v0.2.3...v1.0.0
Analyze not only test files
Merge pull request #4 from Antonboom/feat/analyze-all-files Do not ignore not test files
Another Yet Sanity Check
Merge pull request #3 from Antonboom/feat/another-yet-self-review self-review fixes: no panic, no extra cycles of analysis
golangci-lint integration
Merge pull request #2 from Antonboom/no-init No init() for checkers registry