Skip to content

Commit

Permalink
chore: update CI and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Aug 29, 2022
1 parent 3fc83d3 commit e81c3a1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 10 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
run:
deadline: 10m
skip-files: ['temp.go' ]
timeout: 10m
skip-files: [ 'temp.go' ]
skip-dirs: [ ]

linters-settings:
Expand All @@ -10,8 +10,6 @@ linters-settings:
- fieldalignment
gocyclo:
min-complexity: 15
maligned:
suggest-new: true
goconst:
min-len: 5
min-occurrences: 3
Expand Down Expand Up @@ -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
Expand All @@ -79,7 +82,6 @@ linters:
- prealloc
- forcetypeassert
- bodyclose # Too many false positives: https://github.com/timakin/bodyclose/issues/30
- ifshort
- varnamelen
- nilnil
- ireturn
Expand Down
1 change: 1 addition & 0 deletions mocktail.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// package main Naive code generator that creates mock implementation using `testify.mock`.
package main

import (
Expand Down

0 comments on commit e81c3a1

Please sign in to comment.