Skip to content

Commit

Permalink
update github action linter
Browse files Browse the repository at this point in the history
  • Loading branch information
eshanholtz committed Apr 20, 2021
1 parent 8d67753 commit ea478b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: reviewdog
name: golangci-lint
on: [pull_request]
jobs:
golangci-lint:
name: runner / golangci-lint
name: lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: golangci-lint
uses: docker://reviewdog/action-golangci-lint:v1
uses: golangci/golangcli-lint-action@v2
with:
version: latest
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--enable-all --exclude-use-default=false -D errcheck -D gomnd"
level: error
tool_name: golint
args: "--enable-all --exclude-use-default=false -D errcheck -D gomnd"
only-new-issues: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.so
*.dylib
.idea
*.iml

**/.openapi-generator

Expand Down

0 comments on commit ea478b1

Please sign in to comment.