forked from kovetskiy/zabbixctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gometalinter issues (kovetskiy#24)
* golint: Fix don't use underscores in Go names issues 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> * golint: Fix some trivial issues 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> * gosec: Print unhandled errors to debug output See, warning: Errors unhandled.,LOW,HIGH (gosec) Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com> * responses.go: fix misspelling of "maintenance" (misspell) Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com> * zabbix.go: Fix spelling issue Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com> * Fix vetting issues 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>
- Loading branch information
1 parent
0788e5f
commit 9961c3a
Showing
17 changed files
with
114 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.