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

function literals not separately counted #16

Open
paulbuis opened this issue Mar 30, 2017 · 1 comment
Open

function literals not separately counted #16

paulbuis opened this issue Mar 30, 2017 · 1 comment

Comments

@paulbuis
Copy link

It would be nice if function literals were assigned a complexity separate from the function declaration they were nested inside. This will require giving the nested function literals pseudo-names. E.g., the second function literal nested inside func Foo, might given pseudo name like "Foo.funcLit#2". It might also require using a map[string]stat rather than a []stat and indexing the map with a concatenation of package path with the function name.

@fzipp
Copy link
Owner

fzipp commented Nov 7, 2021

I agree that they should be counted separately. If someone wants to provide a PR I will review it.

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

2 participants