-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yml
37 lines (35 loc) · 1.13 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
task:
alias: Go Lint
container:
image: golangci/golangci-lint:latest
fetch_script:
- go mod tidy
- go generate ./...
- go mod tidy
# interfacebloat complains about miekg/pkcs11 API's that we can't change.
# nosnakecase complains about miekg/pkcs11 API's that we can't change.
lint_script: golangci-lint run --enable-all --disable exhaustivestruct,exhaustruct,gochecknoglobals,gochecknoinits,interfacebloat,nosnakecase,gomoddirectives,lll $GOLANGCI_ARGS -v --out-format json > lint-report.json
matrix:
- name: Go Lint New
env:
GOLANGCI_ARGS: "--new-from-rev=HEAD~"
- name: Go Lint Mandatory
env:
GOLANGCI_ARGS: "--disable=cyclop,dupl,gci,godox,goerr113,gomnd,gosimple,ifshort,lll,nosnakecase,revive,varnamelen,wrapcheck"
- name: Go Lint
env:
GOLANGCI_ARGS: ""
allow_failures: true
always:
golangci_artifacts:
path: lint-report.json
type: text/json
format: golangci
task:
name: ShellCheck
container:
image: fedora:latest
cpu: 1
memory: 1G
install_script: dnf install -y ShellCheck
lint_script: bash testdata/shellcheck.bash