Skip to content

Commit

Permalink
lint: golangci: init
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Nov 19, 2023
1 parent 16cc7dc commit da1bc93
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: lint
on: [push, pull_request]
jobs:
lint:
strategy:
matrix:
go-version: [1.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 3m --verbose
13 changes: 13 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
linters:
enable:
- dogsled
- dupl
- gofmt
- goimports
- gosec
- misspell
- nakedret
- stylecheck
- unconvert
- unparam
- whitespace

0 comments on commit da1bc93

Please sign in to comment.