diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaa019b..84656c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,8 @@ jobs: name: Main Process runs-on: ubuntu-latest env: - GO_VERSION: 1.18 - GOLANGCI_LINT_VERSION: v1.46.2 + GO_VERSION: 1.19 + GOLANGCI_LINT_VERSION: v1.49.0 CGO_ENABLED: 0 steps: diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index 6911b2a..f583e19 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - go-version: [ 1.17, 1.x ] + go-version: [ 1.18, 1.x ] os: [ubuntu-latest, macos-latest, windows-latest] steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c201bfc..0ebbc35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: name: Release Process runs-on: ubuntu-latest env: - GO_VERSION: 1.18 + GO_VERSION: 1.19 CGO_ENABLED: 0 steps: diff --git a/.golangci.yml b/.golangci.yml index 2348c4a..77ec35f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ run: - deadline: 10m - skip-files: ['temp.go' ] + timeout: 10m + skip-files: [ 'temp.go' ] skip-dirs: [ ] linters-settings: @@ -10,8 +10,6 @@ linters-settings: - fieldalignment gocyclo: min-complexity: 15 - maligned: - suggest-new: true goconst: min-len: 5 min-occurrences: 3 @@ -55,12 +53,17 @@ linters-settings: linters: enable-all: true disable: - - maligned # deprecated - - interfacer # deprecated - scopelint # deprecated + - interfacer # deprecated + - maligned # deprecated - golint # deprecated - exhaustivestruct # deprecated - - execinquery # not relevant (SQL) + - scopelint # deprecated + - varcheck # deprecated + - structcheck # deprecated + - nosnakecase # deprecated + - deadcode # deprecated + - ifshort # deprecated - sqlclosecheck # not relevant (SQL) - rowserrcheck # not relevant (SQL) - cyclop # duplicate of gocyclo @@ -79,7 +82,6 @@ linters: - prealloc - forcetypeassert - bodyclose # Too many false positives: https://github.com/timakin/bodyclose/issues/30 - - ifshort - varnamelen - nilnil - ireturn diff --git a/mocktail.go b/mocktail.go index 06870db..44d89c4 100644 --- a/mocktail.go +++ b/mocktail.go @@ -1,3 +1,4 @@ +// package main Naive code generator that creates mock implementation using `testify.mock`. package main import (