Skip to content

Commit

Permalink
add nolint comment
Browse files Browse the repository at this point in the history
  • Loading branch information
grischperl committed Sep 19, 2024
1 parent 23c517e commit 52342d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ func GetStructuredMessageHeaders() http.Header {

func GetBinaryMessageHeaders() http.Header {
headers := make(http.Header)
headers.Add(CeIDHeader, EventID)
headers.Add(CeTypeHeader, CloudEventType)
headers.Add(CeSourceHeader, CloudEventSource)
headers.Add(CeSpecVersionHeader, CloudEventSpecVersion)
headers.Add(CeIDHeader, EventID) //nolint:canonicalheader // used in testing.

Check failure on line 158 in testing/test_helpers.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

directive `//nolint:canonicalheader // used in testing.` is unused for linter "canonicalheader" (nolintlint)
headers.Add(CeTypeHeader, CloudEventType) //nolint:canonicalheader // used in testing.

Check failure on line 159 in testing/test_helpers.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

directive `//nolint:canonicalheader // used in testing.` is unused for linter "canonicalheader" (nolintlint)
headers.Add(CeSourceHeader, CloudEventSource) //nolint:canonicalheader // used in testing.

Check failure on line 160 in testing/test_helpers.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

directive `//nolint:canonicalheader // used in testing.` is unused for linter "canonicalheader" (nolintlint)
headers.Add(CeSpecVersionHeader, CloudEventSpecVersion) //nolint:canonicalheader // used in testing.

Check failure on line 161 in testing/test_helpers.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

directive `//nolint:canonicalheader // used in testing.` is unused for linter "canonicalheader" (nolintlint)
return headers
}

Expand Down

0 comments on commit 52342d9

Please sign in to comment.