Browse Source

use golangci-lint@v1.39.0

pull/64/head
hehe.bu 4 years ago
parent
commit
4eeb27cbbb
2 changed files with 2 additions and 9 deletions
  1. +2
    -2
      .github/workflows/main.yml
  2. +0
    -7
      .golangci.yml

+ 2
- 2
.github/workflows/main.yml View File

@@ -42,10 +42,10 @@ jobs:

- name: GolangCI Lint
run: |
go get github.com/golangci/golangci-lint/cmd/golangci-lint
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.39.0
golangci-lint run ./...

- name: Test
- name: Unit Tests
run: |
mkdir -p build
go test ./... -coverprofile=./build/c.out


+ 0
- 7
.golangci.yml View File

@@ -16,10 +16,3 @@ linters:
- goimports
- gocritic
- revive

linters-settings:
revive:
# see https://github.com/mgechev/revive#available-rules for details.
rules:
- name: exported
arguments : ["disableStutteringCheck"] # to be merged: https://github.com/mgechev/revive/pull/565

Loading…
Cancel
Save