Preparing report...

Report for github.com/miczone/gorush

A+    Excellent!    Found 6 issues across 49 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo91%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • gorush/notify/notification_apns.go
    • Line 56: warning: cyclomatic complexity 26 of function InitAPNSClient() is high (> 15) (gocyclo)
    • Line 322: warning: cyclomatic complexity 20 of function GetIOSNotification() is high (> 15) (gocyclo)
    • Line 427: warning: cyclomatic complexity 20 of function PushToIOS() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 17 of function iosAlertDictionary() is high (> 15) (gocyclo)

golint97%

Golint is a linter for Go source code.

    • gorush/notify/notification_apns.go
    • Line 56: warning: don't use underscores in Go names; func parameter key_path should be keyPath (golint)
    • Line 56: warning: don't use underscores in Go names; func parameter key_base64 should be keyBase64 (golint)
    • Line 56: warning: don't use underscores in Go names; func parameter key_type should be keyType (golint)
    • Line 56: warning: don't use underscores in Go names; func parameter key_id should be keyID (golint)
    • Line 56: warning: don't use underscores in Go names; func parameter team_id should be teamID (golint)
    • Line 63: warning: don't use underscores in Go names; var key_file_path should be keyFilePath (golint)
    • Line 68: warning: don't use underscores in Go names; var key_base64_string should be keyBase64String (golint)
    • Line 73: warning: don't use underscores in Go names; var key_password should be keyPassword (golint)
    • Line 78: warning: don't use underscores in Go names; var key_type_string should be keyTypeString (golint)
    • Line 83: warning: don't use underscores in Go names; var key_id_string should be keyIDString (golint)
    • Line 88: warning: don't use underscores in Go names; var team_id_string should be teamIDString (golint)
    • Line 406: warning: don't use underscores in Go names; var apns_client should be apnsClient (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!