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

Fix gometalinter issues #24

Merged
merged 6 commits into from
Oct 12, 2019

Conversation

mjtrangoni
Copy link
Contributor

Hi @kovetskiy,

I fixed here some trivial issues, in separated commits, so that I can drop some if you do not like it.
BTW I moved some unhandled messages to the debug output.

Thanks!

See,
$ gometalinter --disable-all --enable golint | grep under
hosts_test.go:14:2:warning: don't use underscores in Go names; const
hosts_get should be hostsGet (golint)
hosts_test.go:103:2:warning: don't use underscores in Go names; const
hosts_remove should be hostsRemove (golint)
maintenances_test.go:15:2:warning: don't use underscores in Go names;
const maintenance_get should be maintenanceGet (golint)
maintenances_test.go:52:2:warning: don't use underscores in Go names;
const maintenances_remove should be maintenancesRemove (golint)
maintenances_test.go:66:2:warning: don't use underscores in Go names;
const maintenance_create should be maintenanceCreate (golint)
zabbix_issue18_test.go:13:2:warning: don't use underscores in Go names;
const issue18_data should be issue18Data (golint)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
See,
$ gometalinter --disable-all --enable golint  | grep -v comment
responses.go:34:6:warning: type ResponseApiVersion should be
ResponseAPIVersion (golint)
zabbix.go:163:23:warning: method GetApiVersion should be GetAPIVersion
(golint)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
See,
warning: Errors unhandled.,LOW,HIGH (gosec)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
See,
$ gometalinter --disable-all --enable vet
item.go:42:3:error: unreachable code (vet)
zabbix.go:593:3:error: unreachable code (vet)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
@kovetskiy kovetskiy merged commit 9961c3a into kovetskiy:master Oct 12, 2019
@kovetskiy
Copy link
Owner

Hey! Thanks for the contribution!

No idea how I missed that 😄

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.

None yet

2 participants