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

Fixing cyclomatic complexity of isValidEmailUser. #120

Merged
merged 1 commit into from
Jun 25, 2023
Merged

Fixing cyclomatic complexity of isValidEmailUser. #120

merged 1 commit into from
Jun 25, 2023

Conversation

cinar
Copy link
Owner

@cinar cinar commented Jun 25, 2023

Describe Request

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.

Change Type

Optimization fix.

@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Merging #120 (47ced8d) into main (20edd60) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #120   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        33           
  Lines          633       635    +2     
=========================================
+ Hits           633       635    +2     
Impacted Files Coverage Δ
email.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cinar cinar merged commit 8824f1d into main Jun 25, 2023
@cinar cinar deleted the cyclo-1 branch June 25, 2023 18:45
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.

1 participant