Skip to content

Commit

Permalink
Add golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyfrosch committed Mar 22, 2021
1 parent 072d680 commit 9ed3609
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/golangci-lint.yml
@@ -0,0 +1,23 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: golangci-lint
uses: golangci/golangci-lint-action@v2

- name: Go mod tidy
run: |
go mod tidy
git diff --exit-code go.sum
17 changes: 17 additions & 0 deletions .golangci.yml
@@ -0,0 +1,17 @@
run:
deadline: 1m

linters:
disable-all: false
enable:
- funlen
- dogsled
- dupl
- lll
- whitespace
- wsl
presets:
- bugs
- unused
# - style
fast: false

0 comments on commit 9ed3609

Please sign in to comment.