refactor: enable errcheck linter

I think, the errcheck is useful linter.

Enable the errcheck linter and fix the reported issues in library code:

  • PublishPackageFile: return the error from req.SetBody.
  • NewAuthSourceClient: return the error from setBaseURL.
  • Explicitly ignore errors from limiter.Wait in configureLimiter (fails silently by design) and from draining the response body in Do.

errcheck is excluded for test files: unchecked errors from mock HTTP handlers don't affect test results.

Edited by Oleksandr Redko

Merge request reports

Loading
Loading