Skip to content

Releases: Antonboom/testifylint

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

Another Yet Sanity Check

03 Oct 13:28
7caf9ef
Compare
Choose a tag to compare
Merge pull request #3 from Antonboom/feat/another-yet-self-review

self-review fixes: no panic, no extra cycles of analysis

golangci-lint integration

24 Sep 05:45
28ab901
Compare
Choose a tag to compare
Merge pull request #2 from Antonboom/no-init

No init() for checkers registry

Meet testifylint

07 Sep 16:48
Compare
Choose a tag to compare