Skip to content

Commit da1bc93

Browse files
committed
lint: golangci: init
1 parent 16cc7dc commit da1bc93

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/lint.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: lint
2+
on: [push, pull_request]
3+
jobs:
4+
lint:
5+
strategy:
6+
matrix:
7+
go-version: [1.x]
8+
platform: [ubuntu-latest]
9+
runs-on: ${{ matrix.platform }}
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: golangci-lint
13+
uses: golangci/golangci-lint-action@v3
14+
with:
15+
version: latest
16+
args: --timeout 3m --verbose

.golangci.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
linters:
2+
enable:
3+
- dogsled
4+
- dupl
5+
- gofmt
6+
- goimports
7+
- gosec
8+
- misspell
9+
- nakedret
10+
- stylecheck
11+
- unconvert
12+
- unparam
13+
- whitespace

0 commit comments

Comments
 (0)