Skip to content

Commit 2c50038

Browse files
committed
style: fix comments in proxy golangci.yml
1 parent ab26f06 commit 2c50038

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

api/proxy/.golangci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ linters:
1717
- unused # checks for unused constants, variables, functions and types
1818
## disabled by default
1919
- asasalint # checks for pass []any as any in variadic func(...any)
20-
- asciicheck # checks that your code does not contain non-ASCII identifiers1
20+
- asciicheck # checks that your code does not contain non-ASCII identifiers
2121
- bidichk # checks for dangerous unicode character sequences
2222
- bodyclose # checks whether HTTP response body is closed successfully
2323
- cyclop # checks function and package cyclomatic complexity
@@ -195,7 +195,9 @@ linters:
195195
- unparam
196196

197197
# Allow certain patterns to be ignored by lll (long lines)
198-
- source: '".{100,}"' # Ignores double-quoted strings longer than 120 chars
198+
# This should probably be 120 to match our golines formatter, but there is a weird interaction which an external contributor hit.
199+
# The bug was a string smaller than 120, but with key + string made the line bigger than 120, which invalidated the exclusion rule.
200+
- source: '".{100,}"' # Ignores double-quoted strings longer than 100 chars
199201
linters: [lll]
200202
- source: "// https?://" # This pattern matches comments containing URLs
201203
linters: [lll]
@@ -218,4 +220,4 @@ issues:
218220
# Maximum count of issues with the same text.
219221
# Set to 0 to disable.
220222
# Default: 3
221-
max-same-issues: 50
223+
max-same-issues: 50

0 commit comments

Comments
 (0)