Skip to content

Commit

Permalink
Merge pull request #1013 from size12/linter2
Browse files Browse the repository at this point in the history
enabled nosnakecase
  • Loading branch information
asmyasnikov authored Jan 24, 2024
2 parents 6b4c967 + 7d14e43 commit ed57546
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ linters:
- nilerr
- nlreturn
- nonamedreturns
- nosnakecase
- paralleltest
- protogetter
- scopelint
Expand Down Expand Up @@ -301,4 +300,10 @@ issues:
linters:
- staticcheck
- path: _test\.go
text: "ydb.Connection is deprecated"
text: "ydb.Connection is deprecated"

# Allow underscore and capital camel case for readability
# Examples: Type_PRIMITIVE_TYPE_ID_UNSPECIFIED, Ydb_Discovery_V1, _voidValue
- linters:
- nosnakecase
text : "(?:_[a-z]+(?:[A-Z](?:[a-z\\d]+|[A-Z\\d]+))+|(?:[A-Z][a-z\\d]+|[A-Z][A-Z\\d]+)+_(?:(?:[A-Z][a-z\\d]+|[A-Z\\d][A-Z\\d]+)_?)+)"

0 comments on commit ed57546

Please sign in to comment.