From c74469ee63b765b741787399bc4d47db1bc51fc6 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 21 May 2021 00:13:35 +0200 Subject: [PATCH] ci: Disable lll linter (#355) It has not given us much value. Instead of adding 'nolint' lines for the few cases where we do need long lines, better not have this linter and keep the code base free of linter pragmas. --- .golangci.yml | 1 - transport_test.go | 1 - 2 files changed, 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 04c0bc198..65bb64e6f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -20,7 +20,6 @@ linters: - govet - ineffassign - interfacer - - lll - maligned - misspell - nakedret diff --git a/transport_test.go b/transport_test.go index 05b015750..1844d592d 100644 --- a/transport_test.go +++ b/transport_test.go @@ -19,7 +19,6 @@ type unserializableType struct { UnsupportedField func() } -//nolint: lll const ( basicEvent = `{"message":"mkey","sdk":{},"user":{}}` enhancedEventInvalidBreadcrumb = `{"extra":{"info":"Could not encode original event as JSON. Succeeded by removing Breadcrumbs, Contexts and Extra. Please verify the data you attach to the scope. Error: json: error calling MarshalJSON for type *sentry.Event: json: error calling MarshalJSON for type *sentry.Breadcrumb: json: unsupported type: func()"},"message":"mkey","sdk":{},"user":{}}`