diff --git a/.golangci.yml b/.golangci.yml index 8c46394..dc3fb39 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -71,13 +71,11 @@ linters: - ifshort - importas - ineffassign - - interfacer + # - interfacer - lll - makezero - - maligned - nakedret - nestif - - nilassign - nilerr - nilnil - nlreturn @@ -89,12 +87,12 @@ linters: - promlinter - revive # instead of golint - rowserrcheck - - scopelint + # - scopelint - sqlclosecheck - staticcheck - structcheck - stylecheck # instead of golint - - tagliatelle + # - tagliatelle - tenv - testpackage - thelper @@ -142,6 +140,30 @@ linters-settings: line-length: 140 # tab width in spaces. Default to 1. tab-width: 4 + wrapcheck: + # An array of strings that specify substrings of signatures to ignore. + # If this set, it will override the default set of ignored signatures. + # See https://github.com/tomarrell/wrapcheck#configuration for more information. + ignoreSigs: + - .Errorf( + - errors.New( + - errors.Unwrap( + - .SetFromString( + - .Wrap( + - .Wrapf( + - .WithMessage( + - .WithMessagef( + - .WithStack( + - .WrappedError( + ignoreSigRegexps: + - \.New.*Error\( + - json-iterator\/go + ignorePackageGlobs: + - encoding/* + - jsoniter* + - github.com/pkg/* + ignoreInterfaceRegexps: + - ^(?i)c(?-i)ach(ing|e) wsl: # If true append is only allowed to be cuddled if appending value is # matching variables, fields or types on line above. Default is true. diff --git a/LICENSE b/LICENSE index 4d98e56..8f17986 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Spacetab.io +Copyright (c) 2022 Spacetab.io Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f850064..6303b4d 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ LICENSE MIT License -Copyright (c) 2021 Spacetab.io +Copyright (c) 2022 Spacetab.io Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal