1
0
mirror of synced 2024-11-21 20:46:05 +03:00

lint fixes & update golangci-lint

This commit is contained in:
Pavel 2023-12-29 11:44:18 +03:00
parent 2ba427dfc3
commit f72ec25093
3 changed files with 6 additions and 12 deletions

View File

@ -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

View File

@ -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:

View File

@ -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:
//