From f72ec25093b62604cb6a120a2a08a7b5c4f6825f Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Fri, 29 Dec 2023 11:44:18 +0300 Subject: [PATCH] lint fixes & update golangci-lint --- .github/workflows/ci.yml | 2 +- .golangci.yml | 11 ++--------- v1/doc.go | 5 +++-- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c51bddc..2569ecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Lint code with golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.36 + version: v1.55.2 only-new-issues: true tests: name: Tests diff --git a/.golangci.yml b/.golangci.yml index ed8c8bd..02a09bc 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,16 +9,13 @@ output: linters: disable-all: true enable: - - deadcode - errcheck - gosimple - govet - ineffassign - staticcheck - - structcheck - unused - unparam - - varcheck - bodyclose - dogsled - dupl @@ -32,11 +29,9 @@ linters: - gocyclo - godot - goimports - - golint + - revive - gomnd - gosec - - ifshort - - interfacer - lll - makezero - maligned @@ -44,10 +39,10 @@ linters: - nestif - prealloc - predeclared - - scopelint - sqlclosecheck - unconvert - whitespace + - unused linters-settings: govet: @@ -143,8 +138,6 @@ linters-settings: local-prefixes: github.com/retailcrm/mg-transport-api-client-go lll: line-length: 120 - maligned: - suggest-new: true misspell: locale: US nestif: diff --git a/v1/doc.go b/v1/doc.go index 7162f3c..cc9ae67 100644 --- a/v1/doc.go +++ b/v1/doc.go @@ -1,7 +1,8 @@ // Package v1 provides Go API Client implementation for MessageGateway Transport API. // -// You can use v1.New or v1.NewWithClient to initialize API client. github.com/retailcrm/mg-transport-api-client-go/examples -// package contains some examples on how to use this library properly. +// You can use v1.New or v1.NewWithClient to initialize API client. +// The package github.com/retailcrm/mg-transport-api-client-go/examples contains some examples on how to +// use this library properly. // // Basic usage example: //