First Stable Version
Description
The large release based on the first wave of feedback from community.
What's Changed
Config
- Support of
enable-allanddisable-allwithenableanddisable. - Support of
require-error.fn-pattern.
New checkers
Checkers
Global
Support more assertions in expected-actual and comparison-based checkers:
EqualExportedValuesEqualValuesExactlyInDeltaInDeltaMapValuesInDeltaSliceInEpsilonIsTypeNotEqualValuesNotSameSameWithinDuration
bool-compare
- Ignore arguments of empty interface type.
empty
- Ignore
len(n) > 1andlen(n) >=1cases (false positives fix).
error-is-as
- Check
ErrorAstarget.
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