Skip to content

Commit

Permalink
chore: add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and bkielbasa committed Feb 16, 2021
1 parent eff218d commit f557288
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ on:

jobs:

golangci-lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.36

build:
name: Build
runs-on: ubuntu-latest
Expand Down
31 changes: 31 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
run:
skip-dirs:
- pkg/analyzer/testdata

linters-settings:
golint:
min-confidence: 0
goconst:
min-len: 2
min-occurrences: 3
misspell:
locale: US
gci:
local-prefixes: github.com/kulti/thelper

linters:
enable-all: true
disable:
- lll
- prealloc
- dupl
- wsl
- nlreturn
- goerr113
- exhaustivestruct
- paralleltest
- testpackage
- gomnd
- gocognit
- nestif
- interfacer

0 comments on commit f557288

Please sign in to comment.