-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add support for ignore
like gocyclo
#18
Comments
You are using |
for example the main function is something that can contain a lot of logic that can't be broken down and it is ok to have more complexity for example having run groups is something that usually results in larger main files |
Understand, we can add this feature of course. Btw , I want to understand your needs. For your case, are you using |
I am using golangci-lint |
I use it as well, such a great project. |
I am not OP, but to add to the discussion, I'm using |
Just ran into this issue as well, I use the cli tool as followed: gocognit -over 3 -avg . I also use gocyclo -over 3 -avg -ignore "_test" . Would be great to have the same option as But unit tests are way more verbose and can have multiple assertions. Resulting in a higher cognitive complexity score. Not sure if my use case is the same as @wy98926, but at first glance it does look like it. It was that this issue already existed otherwise I would have opened it myself. |
Thanks @uudashr |
Shall we add support for the
ignore
in both command flag and code directive?Example: gocyclo
We expect to do as the following:
Command flag
Examples
Ignoring specific functions
The text was updated successfully, but these errors were encountered: