Skip to content

Commit ed57546

Browse files
authored
Merge pull request #1013 from size12/linter2
enabled nosnakecase
2 parents 6b4c967 + 7d14e43 commit ed57546

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.golangci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ linters:
237237
- nilerr
238238
- nlreturn
239239
- nonamedreturns
240-
- nosnakecase
241240
- paralleltest
242241
- protogetter
243242
- scopelint
@@ -301,4 +300,10 @@ issues:
301300
linters:
302301
- staticcheck
303302
- path: _test\.go
304-
text: "ydb.Connection is deprecated"
303+
text: "ydb.Connection is deprecated"
304+
305+
# Allow underscore and capital camel case for readability
306+
# Examples: Type_PRIMITIVE_TYPE_ID_UNSPECIFIED, Ydb_Discovery_V1, _voidValue
307+
- linters:
308+
- nosnakecase
309+
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 commit comments

Comments
 (0)