Skip to content

Commit ac73802

Browse files
bors[bot]Kay-Zee
andauthored
Merge #1509
1509: Update golangci, trying to fix lint r=Kay-Zee a=Kay-Zee This updates the golangci action to just use the latest v2 action, which is recommended for the action. Also, skipping the PKG cache because of all the File Exists error. Will have to follow: golangci/golangci-lint-action#244 to see when this is resolved. (though lint is one of the faster jobs, so it's fine even if we skip the cache) Lastly, I'm suggesting we skip the `unused` lint for TEST FILES ONLY, as there are many cases where we want to use `t.Skip()` to quarantine, but then it causes "unused" errors. This will resolve those cases and better allow us to use `t.Skip()` Co-authored-by: Kay-Zee <[email protected]>
2 parents 11299bb + 8503a6a commit ac73802

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ jobs:
2626
- name: Build relic
2727
run: make crypto/relic/build
2828
- name: Run golangci-lint
29-
uses: golangci/golangci-lint-action@v2.3.0
29+
uses: golangci/golangci-lint-action@v2
3030
with:
3131
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
3232
version: v1.41
3333
args: -v --build-tags relic
34+
skip-pkg-cache: true
3435
- name: Run ShellCheck
3536
uses: ludeeus/action-shellcheck@master
3637
with:

.golangci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ linters:
2222
enable:
2323
- goimports
2424
- gosec
25+
26+
issues:
27+
exclude-rules:
28+
- path: _test\.go # disable some linters on test files
29+
linters:
30+
- unused

0 commit comments

Comments
 (0)