-
Notifications
You must be signed in to change notification settings - Fork 65
chore: bump Go to v1.22 #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,18 @@ | ||
linters-settings: | ||
errcheck: | ||
check-type-assertions: true | ||
exhaustive: | ||
default-signifies-exhaustive: true | ||
goconst: | ||
min-len: 2 | ||
min-occurrences: 3 | ||
gocritic: | ||
enabled-tags: | ||
- diagnostic | ||
- experimental | ||
- opinionated | ||
- performance | ||
- style | ||
govet: | ||
enable-all: true | ||
nolintlint: | ||
require-explanation: true | ||
require-specific: true | ||
wsl: | ||
allow-assign-and-anything: true | ||
allow-cuddle-declarations: true | ||
allow-assign-and-call: true | ||
depguard: | ||
rules: | ||
main: | ||
list-mode: lax | ||
allow: | ||
- "github.com/uber/h3-go/v4" | ||
version: "2" | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- depguard | ||
- dogsled | ||
- dupl | ||
- errcheck | ||
# - copyloopvar Enable this after upgrading go version to 1.22 | ||
- copyloopvar | ||
- exhaustive | ||
- goconst | ||
- gofmt | ||
- goimports | ||
- mnd | ||
- gocyclo | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
|
@@ -55,14 +22,47 @@ linters: | |
- predeclared | ||
- revive | ||
- staticcheck | ||
- stylecheck | ||
- thelper | ||
- tparallel | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- whitespace | ||
- wsl | ||
settings: | ||
errcheck: | ||
check-type-assertions: true | ||
exhaustive: | ||
default-signifies-exhaustive: true | ||
goconst: | ||
min-len: 2 | ||
min-occurrences: 3 | ||
gocritic: | ||
enabled-tags: | ||
- diagnostic | ||
- experimental | ||
- opinionated | ||
- performance | ||
- style | ||
govet: | ||
enable-all: true | ||
nolintlint: | ||
require-explanation: true | ||
require-specific: true | ||
wsl: | ||
allow-assign-and-anything: true | ||
allow-cuddle-declarations: true | ||
allow-assign-and-call: true | ||
depguard: | ||
rules: | ||
main: | ||
list-mode: lax | ||
allow: | ||
- "github.com/uber/h3-go/v4" | ||
|
||
formatters: | ||
enable: | ||
- gofmt | ||
- goimports | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i didn't vet all these settings, any changes of note besides the comments being correctly enforced and the copyloop linter getting enabled? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No changes of note - the |
||
run: | ||
issues-exit-code: 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/uber/h3-go/v4 | ||
|
||
go 1.21 | ||
go 1.22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no matrix action going on here, this is just an artifact of history. if you're feeling noble you can scrap the whole matrix and inline the version. but also not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will probably leave it as is for now haha - is convention to keep this two versions behind latest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a problem! and yes, that's right. it helps make sure that the linter doesn't recommend something in 1.24 that isn't supported in 1.22. Perfect example is the copyloop var change was added in 1.22. but while we supported 1.21, we didn't want to use that rule. using the lowest supported version reinforces that design goal.