Skip to content

Commit da2d636

Browse files
committed
fix: add linters
1 parent 2d375f3 commit da2d636

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
5757
- name: Run linters
5858
run: |
59-
echo 'eirctl run vuln:check'
59+
eirctl run lints
6060
6161
- name: Unit Tests
6262
run: |

.golangci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: "2"
2+
linters:
3+
# Default set of linters.
4+
# The value can be: `standard`, `all`, `none`, or `fast`.
5+
# Default: standard
6+
default: standard
7+
exclusions:
8+
generated: lax
9+
# Log a warning if an exclusion rule is unused.
10+
# Default: false
11+
warn-unused: true
12+
# Predefined exclusion rules.
13+
# Default: []
14+
presets:
15+
- comments
16+
- std-error-handling
17+
- common-false-positives
18+
- legacy
19+
# Excluding configuration per-path, per-linter, per-text and per-source.
20+
rules:
21+
# Exclude some linters from running on tests files.
22+
- path: _test\.go
23+
linters:
24+
- gocyclo
25+
- errcheck
26+
- dupl
27+
- gosec
28+
- ineffassign
29+
- staticcheck
30+
- unused
31+
- govet

0 commit comments

Comments
 (0)