Skip to content

Commit

Permalink
Linters configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Maya Sergeeva committed Apr 19, 2022
1 parent ec1a5b8 commit de8908d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
32 changes: 27 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ linters:
- ifshort
- importas
- ineffassign
- interfacer
# - interfacer
- lll
- makezero
- maligned
- nakedret
- nestif
- nilassign
- nilerr
- nilnil
- nlreturn
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de8908d

Please sign in to comment.