Commit 1114e769
1114e769d170Merged
Svyatoslav Dumchenko <[email protected]> · 4 years ago · 32 files · ~32 modified
Description
Merge pull request #239 from helmwave/error-wrap
Wrap external errors
Details
- Commit
- 1114e769d170
- Parent
- 6ed7ccb73812
- Merge parent
- 477d33580022
.golangci.ymlmodifiedView file
@@ -22,7 +22,7 @@
2222
- maligned # deprecated2323
- scopelint # deprecated2424
- varnamelen # I don't think short names are bad25-
- wrapcheck # TODO: need to wrap all external errors into our own25+
#- wrapcheck # TODO: need to wrap all external errors into our own2626
- wsl # lots of style checks2727
2828
# all available settings of specific linters@@ -353,6 +353,41 @@
353353
multi-if: false # Enforces newlines (or comments) after every multi-line if statement354354
multi-func: false # Enforces newlines (or comments) after every multi-line function signature355355
356+
wrapcheck:357+
# An array of strings that specify substrings of signatures to ignore.358+
# If this set, it will override the default set of ignored signatures.359+
# See https://github.com/tomarrell/wrapcheck#configuration for more information.360+
ignoreSigs:361+
- .Errorf(362+
- errors.New(363+
- errors.Unwrap(364+
- .Wrap(365+
- .Wrapf(366+
- .WithMessage(367+
- .WithMessagef(368+
- .WithStack(369+
ignoreSigRegexps:370+
- \.New.*Error\(371+
ignorePackageGlobs:372+
- encoding/*373+
- github.com/pkg/*374+
- github.com/helmwave/helmwave/*375+
376+
wsl:377+
# See https://github.com/bombsimon/wsl/blob/master/doc/configuration.md for378+
# documentation of available settings. These are the defaults for379+
# `golangci-lint`.380+
allow-assign-and-anything: false381+
allow-assign-and-call: true382+
allow-cuddle-declarations: false383+
allow-multiline-assign: true384+
allow-separated-leading-comment: false385+
allow-trailing-comment: false386+
force-case-trailing-whitespace: 0387+
force-err-cuddling: false388+
force-short-decl-cuddling: false389+
strict-append: true390+
356391
issues:357392
# Independently from option `exclude` we use default exclude patterns,358393
# it can be disabled by this option. To list allpkg/helper/file.gomodifiedView file
Loading diff…
pkg/helper/helm.gomodifiedView file
Loading diff…
pkg/helper/http.gomodifiedView file
Loading diff…
pkg/helper/yml.gomodifiedView file
Loading diff…
pkg/kubedog/multitrack.gomodifiedView file
Loading diff…
pkg/log/log.gomodifiedView file
Loading diff…
pkg/parallel/parallel.gomodifiedView file
Loading diff…
pkg/plan/apply.gomodifiedView file
Loading diff…
pkg/plan/build_manifests.gomodifiedView file
Loading diff…
pkg/plan/diff.gomodifiedView file
Loading diff…
pkg/plan/export.gomodifiedView file
Loading diff…
pkg/plan/import.gomodifiedView file
Loading diff…
pkg/plan/new.gomodifiedView file
Loading diff…
pkg/plan/new_export_test.gomodifiedView file
Loading diff…
pkg/plan/validate.gomodifiedView file
Loading diff…
pkg/release/chart.gomodifiedView file
Loading diff…
pkg/release/get.gomodifiedView file
Loading diff…
pkg/release/install.gomodifiedView file
Loading diff…
pkg/release/interface.gomodifiedView file
Loading diff…
pkg/release/list.gomodifiedView file
Loading diff…
pkg/release/rollback.gomodifiedView file
Loading diff…
pkg/release/status.gomodifiedView file
Loading diff…
pkg/release/uninstall.gomodifiedView file
Loading diff…
pkg/release/upgrade.gomodifiedView file
Loading diff…
pkg/release/values.gomodifiedView file
Loading diff…
pkg/repo/install.gomodifiedView file
Loading diff…
pkg/repo/interface.gomodifiedView file
Loading diff…
pkg/template/extra.gomodifiedView file
Loading diff…
pkg/template/gomplate.gomodifiedView file
Loading diff…
pkg/template/sprig.gomodifiedView file
Loading diff…
pkg/template/tpl2yml.gomodifiedView file
Loading diff…