Skip to content

Commit

Permalink
fixup! #96 Add lint github action
Browse files Browse the repository at this point in the history
  • Loading branch information
meian committed Sep 8, 2022
1 parent 3fae5f7 commit bd5d8b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
11 changes: 11 additions & 0 deletions .github/config/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@ run:
go: "1.18"
linters:
enable-all: true
disable:
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck
fast: false
17 changes: 0 additions & 17 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,3 @@ jobs:

# Can pass --config flag to change golangci-lint behavior and target directory.
golangci_lint_flags: "--config=.github/config/.golangci.yml ./testdata"
# workdir: subdirectory/

# You can add more and more supported linters with different config.
errcheck:
name: errcheck
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: errcheck
uses: reviewdog/action-golangci-lint@v2
with:
go_version: "1.18"
golangci_lint_flags: "--disable-all -E errcheck"
tool_name: errcheck
level: info
fail_on_error: true

0 comments on commit bd5d8b4

Please sign in to comment.