-
Notifications
You must be signed in to change notification settings - Fork 12
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
add linter action and task, fix append bug in sql/client #194
Conversation
pks := make([][]byte, len(primaryKeys)) | ||
pks := make([][]byte, 0, len(primaryKeys)) | ||
for _, primaryKey := range primaryKeys { | ||
pks = append(pks, primaryKey.Blob()) |
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.
The makezero
linter that I've enabled in CI found this bug.
.github/workflows/ci.yaml
Outdated
@@ -48,6 +48,13 @@ jobs: | |||
run: | | |||
task pb:compile:v1 | |||
|
|||
- name: golangci-lint |
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 this step change the code?
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.
No, linters only report issues, but don't change anything.
The new task fmt
will change it however, but that's not in CI.
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.
LGTM
Thx. Just testing something else right now, pls don't merge yet |
build all before lint to speed up lint and test compile
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
OK guys, good to go. Some things to note:
We should set up our IDEs to lint on save and/or run |
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.
A big step forward for kwil
No description provided.