Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Add gocyclo linter #31

Merged
merged 1 commit into from
Jul 19, 2021
Merged

Add gocyclo linter #31

merged 1 commit into from
Jul 19, 2021

Conversation

lucacome
Copy link
Member

Adding https://github.com/fzipp/gocyclo

Gocyclo calculates cyclomatic complexities of functions in Go source code.
Cyclomatic complexity is a code quality metric which can be used to identify code that needs refactoring. It measures the number of linearly independent paths through a function's source code.

@lucacome lucacome requested a review from a team July 14, 2021 19:41
@lucacome lucacome self-assigned this Jul 14, 2021
@lucacome lucacome requested review from ciarams87 and soneillf5 and removed request for a team July 14, 2021 19:41
@github-actions github-actions bot added the chore Pull requests for routine tasks label Jul 14, 2021
@lucacome lucacome requested a review from pleshakov July 15, 2021 17:03
@lucacome lucacome enabled auto-merge (squash) July 15, 2021 23:25
@@ -28,12 +28,15 @@ linters-settings:
- name: unused-parameter
- name: var-declaration
- name: var-naming
gocyclo:
min-complexity: 15

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is 'min-complexity' is that report anything over that amount ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

@lucacome lucacome merged commit 55832cb into master Jul 19, 2021
@lucacome lucacome deleted the chore/add-gocyclo branch July 19, 2021 08:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chore Pull requests for routine tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants