Commit Graph

8 Commits

Author SHA1 Message Date
Markus Thömmes 980a33719a
Fix revive related linting issues (#2131) 2021-05-26 01:10:28 -07:00
Ben Moss cfc1eed828
Better support for error wrapping with ReconcilerEvents (#2106)
* Fix codegen to work outside GOPATH

* Fix ReconcilerEvent handling of %w format strings

Using fmt.Errorf(...).Error() means we get %w's translated to %v's for
printing
2021-04-26 11:00:40 -07:00
Ben Moss 0c5259d650
Allow errors.As to work with reconciler.Events (#2100) 2021-04-22 14:00:38 -07:00
Markus Thömmes 565516e224
Add errorlint and fix all existing issues (#1855) 2020-10-29 01:14:35 -07:00
Markus Thömmes 385c8b9c0e
Fix nolint warnings and adhere to best practices (#1823) 2020-10-20 09:33:59 -07:00
Victor Agababov 7bad843466
Enable golint and exclude some other generated or additional dirs (#1783)
* Enable golint and exclude some other generated or additional dirs

Also remove `test` ignore, since it's covered by path ignore rule.

* meh

* fixes

* more

* progressing

* further

* like a boss
2020-10-07 14:58:20 -07:00
Markus Thömmes 5fbbde31b3
Align linters with serving (enables stylecheck and asciicheck) (#1738) 2020-09-23 07:37:40 -07:00
Scott Nichols 2c145de3d5 Creating an Event interface and ReconcilerEvent type to be used in ReconcileKind (#952)
* Adding a base class to use as strong typed reconciler events.

* fmt, rename.

* support wrapped errors.

* make a custom alias for errors.Is and errors.As, use Event as an interaface.

* add context name (event) to is and as

* update based on feedback.

* fix test fail messages.

* feedback updated.

* cleanup test code.
2020-01-07 15:08:51 -08:00