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

gocyclo Error #59

Closed
appleboy opened this issue Apr 16, 2016 · 0 comments
Closed

gocyclo Error #59

appleboy opened this issue Apr 16, 2016 · 0 comments

Comments

@appleboy
Copy link
Owner

https://goreportcard.com/report/github.com/appleboy/gorush

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 '||'

gorush/gorush.go
Line 9: warning: cyclomatic complexity 16 of function main() is high (> 15) (gocyclo)

gorush/gorush/notification.go
Line 172: warning: cyclomatic complexity 22 of function GetIOSNotification() is high (> 15) (gocyclo)
appleboy added a commit that referenced this issue Apr 17, 2016
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
appleboy added a commit that referenced this issue Apr 17, 2016
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant