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

Code complexity #46

Open
marcelloh opened this issue Oct 10, 2023 · 0 comments
Open

Code complexity #46

marcelloh opened this issue Oct 10, 2023 · 0 comments

Comments

@marcelloh
Copy link

I love the KISS principle and so I've written a linter that pinpoints to complex functionality.
(This can hide bugs, and is more difficult to maintain.)

Here the list, that could be candidates for refactoring:
parigot/api/plugin/httpconnector/httpconnectorhost.go:108:1 - callHostDispatch has complexity: 18
parigot/api/plugin/queue/queuehost.go:416:1 - receive has complexity: 19
parigot/command/protoc-gen-parigot/codegen/finder.go:37:1 - GoPackageOption has complexity: 16
parigot/command/protoc-gen-parigot/codegen/finder.go:108:1 - AddressingNameFromMessage has complexity: 32
parigot/command/protoc-gen-parigot/codegen/finder.go:161:1 - FindMessageByName has complexity: 23
parigot/command/protoc-gen-parigot/codegen/generate.go:21:1 - BasicGenerate has complexity: 57
parigot/command/protoc-gen-parigot/codegen/generate.go:138:1 - Collect has complexity: 16
parigot/command/protoc-gen-parigot/codegen/pass.go:81:1 - MethodsPass has complexity: 31
parigot/command/protoc-gen-parigot/main.go:128:1 - generateNeutral has complexity: 50
parigot/command/protoc-gen-parigot/test/main.go:15:1 - main has complexity: 18
parigot/command/protoc-gen-parigot/util/plugin.go:27:1 - ReadStdinIntoBuffer has complexity: 18
parigot/command/runner/runner/config.go:131:1 - Parse has complexity: 50
parigot/sys/kernel/block.go:20:1 - ReadOne has complexity: 30
parigot/sys/kernel/starter.go:157:1 - requirementsMet has complexity: 16
parigot/sys/kernel/starter.go:205:1 - detectCycle has complexity: 33
142 = files
818 = functions
57 = highest complexity
2.90 = overall average complexity

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

No branches or pull requests

1 participant