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

email.go: Line 22: warning: cyclomatic complexity 19 of function IsEmail() is high (> 15) (gocyclo) #78

Closed
cinar opened this issue Jun 21, 2023 · 0 comments · Fixed by #88
Assignees
Labels
enhancement New feature or request

Comments

@cinar
Copy link
Owner

cinar commented Jun 21, 2023

gocyclo98%
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.

email.go
Line 22: warning: cyclomatic complexity 19 of function IsEmail() is high (> 15) (gocyclo)

https://goreportcard.com/report/github.com/cinar/checker

@cinar cinar self-assigned this Jun 21, 2023
@cinar cinar added the enhancement New feature or request label Jun 21, 2023
@cinar cinar linked a pull request Jun 22, 2023 that will close this issue
@cinar cinar closed this as completed in #88 Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant