Skip to content
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

Local GoKart #603

Merged
merged 1 commit into from
Sep 8, 2021
Merged

Local GoKart #603

merged 1 commit into from
Sep 8, 2021

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Sep 7, 2021

I was looking to see if GoKArt is part of golang-ci - not at the moment.
I have added a make target gokart. Static analysis came out very well, no code changes needed.
GoKart is checking code including imported packages, see output:

Using config found at /Users/ab011th/.gokart/analyzers.yml

Revving engines VRMMM VRMMM
3...2...1...Go!

Race Complete! Analysis took 1.862020787s and 569 Go files were scanned (including imported packages)
GoKart found 0 potentially vulnerable functions

Signed-off-by: kuritka kuritka@gmail.com

related to #600
I was looking to see if GoKArt is part of golang-ci - not at the moment.
I have added a make target gokart. Static analysis came out very well, no code changes needed.
GoKart is checking code including imported packages, see output:

```shell
Using config found at /Users/ab011th/.gokart/analyzers.yml

Revving engines VRMMM VRMMM
3...2...1...Go!

Race Complete! Analysis took 1.862020787s and 569 Go files were scanned (including imported packages)
GoKart found 0 potentially vulnerable functions
```

Signed-off-by: kuritka <kuritka@gmail.com>
Copy link
Member

@jkremser jkremser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make gokart worked well on my mac

VRMMM VRMMM 🚗

@jkremser
Copy link
Member

jkremser commented Sep 8, 2021

it's unrelated to this change, but when I was trying to do full make check target, I got this on the current master:

...
golangci-lint run
WARN [runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner.  Replaced by revive.
controllers/providers/dns/infoblox.go:54:11: appendAssign: append result not assigned to the same slice (gocritic)
	final := append(local, remote...)
	         ^
make: *** [lint] Error 1

and I am not sure if it's ony a "PEBKAC" or some real issue in the gh ci setup.. do we actually run make check on each commit? I can't find it under .github/* yamls

@kuritka
Copy link
Collaborator Author

kuritka commented Sep 8, 2021

@jkremser , seems the newest golangci-lint use revive instead of golint.

Im working on #609 to fix that

@kuritka kuritka merged commit 12611a4 into master Sep 8, 2021
@kuritka kuritka deleted the 600-gokart-local branch September 8, 2021 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants