lint fixes & update golangci-lint
This commit is contained in:
parent
2ba427dfc3
commit
f72ec25093
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user