Skip to content

Releases: Antonboom/testifylint

`compares` and `error-nil` false behaviour fix

27 May 17:51
09870c1
Compare
Choose a tag to compare

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

18 May 16:30
a6e65e3
Compare
Choose a tag to compare

What's Changed

Checkers

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

Full Changelog: v1.2.0...v1.3.0

bool-compare: support custom types

03 Mar 14:54
68b2b3e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.3...v1.2.0

Less false positives for `go-require`

02 Mar 14:21
b57841c
Compare
Choose a tag to compare

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`

09 Feb 08:23
Compare
Choose a tag to compare

Fix of regress after golangci-lint v1.56.0

08 Feb 13:18
049b11c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

24 Jan 06:27
586e7ba
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.2...v1.1.0

v1.0.2

07 Nov 20:12
6aa6afc
Compare
Choose a tag to compare

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

05 Nov 11:17
0a99a3c
Compare
Choose a tag to compare

Description

The large release based on the first wave of feedback from community.

What's Changed

Config

  • Support of enable-all and disable-all with enable and disable.
  • 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 and len(n) >=1 cases (false positives fix).

error-is-as

  • Check ErrorAs target.

error-nil

  • Support ErrorIs(err, nil) and NotErrorIs(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

04 Oct 18:48
724570e
Compare
Choose a tag to compare
Merge pull request #4 from Antonboom/feat/analyze-all-files

Do not ignore not test files