Skip to content

v0.11.0

Choose a tag to compare

@chrisophus chrisophus released this 17 Jul 17:40
· 88 commits to main since this release

Fixed

  • wrap-errors: sentinel branch before bare return err was skippedif err != nil blocks containing an errors.Is sentinel branch followed by a bare return nil, err were skipped entirely.
  • wrap-errors: bare return err inside loops was skippedif err != nil blocks nested inside for/range/switch/select bodies were never visited.
  • wrap-errors: doc comment of next function embedded in fmt.Errorf — The go/printer could pull the doc comment of the immediately following function into the fmt.Errorf(...) argument list and remove it from its correct position.
  • error-not-wrapped lint rule: false positives inside function literalsreturn err inside filepath.Walk/WalkDir callbacks was reported as an unwrapped error on the outer exported function.