Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Set up golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Mar 20, 2020
1 parent 735e24d commit 9edbde8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on: push

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14

- name: Run golangci-lint
run: docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.24.0 golangci-lint run
24 changes: 24 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
output:
print-issued-lines: false

linters:
enable-all: true
disable:
- funlen
- gochecknoglobals
- gocognit
- gomnd
- maligned
- wsl

linters-settings:
lll:
max-length: 100
tab-width: 2

issues:
max-per-linter: 0
max-same: 0
exclude-use-default: false
exclude:
- "Line contains TODO/BUG/FIXME"

0 comments on commit 9edbde8

Please sign in to comment.