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 - name: Lint code with golangci-lint
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v3
with: with:
version: v1.36 version: v1.55.2
only-new-issues: true only-new-issues: true
tests: tests:
name: Tests name: Tests

View File

@ -9,16 +9,13 @@ output:
linters: linters:
disable-all: true disable-all: true
enable: enable:
- deadcode
- errcheck - errcheck
- gosimple - gosimple
- govet - govet
- ineffassign - ineffassign
- staticcheck - staticcheck
- structcheck
- unused - unused
- unparam - unparam
- varcheck
- bodyclose - bodyclose
- dogsled - dogsled
- dupl - dupl
@ -32,11 +29,9 @@ linters:
- gocyclo - gocyclo
- godot - godot
- goimports - goimports
- golint - revive
- gomnd - gomnd
- gosec - gosec
- ifshort
- interfacer
- lll - lll
- makezero - makezero
- maligned - maligned
@ -44,10 +39,10 @@ linters:
- nestif - nestif
- prealloc - prealloc
- predeclared - predeclared
- scopelint
- sqlclosecheck - sqlclosecheck
- unconvert - unconvert
- whitespace - whitespace
- unused
linters-settings: linters-settings:
govet: govet:
@ -143,8 +138,6 @@ linters-settings:
local-prefixes: github.com/retailcrm/mg-transport-api-client-go local-prefixes: github.com/retailcrm/mg-transport-api-client-go
lll: lll:
line-length: 120 line-length: 120
maligned:
suggest-new: true
misspell: misspell:
locale: US locale: US
nestif: nestif:

View File

@ -1,7 +1,8 @@
// Package v1 provides Go API Client implementation for MessageGateway Transport API. // 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 // You can use v1.New or v1.NewWithClient to initialize API client.
// package contains some examples on how to use this library properly. // The package github.com/retailcrm/mg-transport-api-client-go/examples contains some examples on how to
// use this library properly.
// //
// Basic usage example: // Basic usage example:
// //