Releases: Antonboom/testifylint
Releases · Antonboom/testifylint
`compares` and `error-nil` false behaviour fix
What's Changed
- compares: support Same/NotSame by @Antonboom in #96
- helpers: isError: strict type comparison instead of implementing check by @Antonboom in #97
Full Changelog: v1.3.0...v1.3.1
New `negative-positive` checker and minor changes
What's Changed
Checkers
- add new checker: negative-positive by @ccoVeille in #78
- go-require: require-error: support HTTP handlers by @Antonboom in #90
- require-error: ignore assertion in bool expr by @Antonboom in #89
- useless-assert: support bool ops by @Antonboom in #91
Other
- build(deps): bump golang.org/x/tools from 0.18.0 to 0.19.0 by @dependabot in #74
- Add links in CONTRIBUTING.md by @ccoVeille in #77
- README: notice about "fixing with golangci-lint" by @Antonboom in #85
- build(deps): bump golangci/golangci-lint-action from 4 to 5 by @dependabot in #87
- build(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0 by @dependabot in #86
- introduce helpers_*.go files by @Antonboom in #92
New Contributors
- @ccoVeille made their first contribution in #77
Full Changelog: v1.2.0...v1.3.0
bool-compare: support custom types
What's Changed
- bool-compare: support custom types by @Antonboom in #71
Full Changelog: v1.1.3...v1.2.0
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