Skip to content

Commit b90cc50

Browse files
Remove nolintlint; ignore in .golangci.yml
1 parent 32b7360 commit b90cc50

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ linters:
189189
# G115 checks for use of truncating conversions.
190190
path: private/buf/buflsp/semantic_tokens.go
191191
text: "G115:"
192+
- linters:
193+
- gosec
194+
# G115 checks for use of truncating conversions.
195+
path: private/buf/buflsp/cel.go
196+
text: "G115:"
192197
- linters:
193198
- gosec
194199
# G115 checks for use of truncating conversions.

private/buf/buflsp/cel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func fileByteOffsetToCELOffset(fileByteOffset int, exprLiteralSpan source.Span)
198198
// but ComputeOffset requires int32; the conversion is safe for any realistic
199199
// CEL expression length.
200200
func celLocByteOffset(line, col int, sourceInfo *celast.SourceInfo, exprString string) int {
201-
runeOffset := int32(col) + sourceInfo.ComputeOffset(int32(line), 0) //nolint:gosec // CEL expressions are never large enough to overflow int32
201+
runeOffset := int32(col) + sourceInfo.ComputeOffset(int32(line), 0)
202202
return celRuneOffsetToByteOffset(exprString, runeOffset)
203203
}
204204

0 commit comments

Comments
 (0)