Skip to content

Commit

Permalink
Upgrade to Cadence 1.0 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
sequel21 authored Nov 13, 2024
1 parent 1cb6b8b commit 41ad1ac
Show file tree
Hide file tree
Showing 100 changed files with 6,552 additions and 6,226 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.22

- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.22
- uses: actions/cache@v3
with:
path: |
Expand All @@ -65,7 +65,7 @@ jobs:
- uses: zencargo/github-action-go-mod-tidy@v1
with:
path: lib/go/iinft
go-version: 1.18
go-version: 1.22

test:
runs-on: ubuntu-latest
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.22
- name: Set up Cache
uses: actions/cache@v3
with:
Expand Down
13 changes: 8 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
linters-settings:
errcheck:
check-type-assertions: true
check-type-assertions: false
goconst:
min-len: 2
min-occurrences: 3
Expand All @@ -12,9 +12,11 @@ linters-settings:
- performance
- style
govet:
check-shadowing: true
enable:
# report about shadowed variables
- shadowing
nolintlint:
require-explanation: true
require-explanation: false
require-specific: true
funlen:
lines: 100
Expand All @@ -30,12 +32,12 @@ linters:
- asciicheck
- bodyclose
- contextcheck
- depguard
- copyloopvar
# - depguard
- dogsled
# - dupl
- errcheck
- errorlint
- exportloopref
- exhaustive
- goconst
# - gocritic
Expand Down Expand Up @@ -65,4 +67,5 @@ linters:

run:
issues-exit-code: 1
go: '1.22'

Loading

0 comments on commit 41ad1ac

Please sign in to comment.