Skip to content

Commit

Permalink
introduce reviewdog (denisenkom#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 authored Nov 3, 2020
1 parent d64bfdb commit d4db269
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: reviewdog
on: [pull_request]
jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
level: warning
reporter: github-pr-review
10 changes: 10 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
linters:
enable:
# basic go linters
- gofmt
- golint
- govet

# sql related linters
- rowserrcheck
- sqlclosecheck

0 comments on commit d4db269

Please sign in to comment.