-
Notifications
You must be signed in to change notification settings - Fork 35
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
Reduce cognitive complexity of AstraUtils#isStaticallyImportedMethod #89
Comments
Hello @RadikalJin , I want to try on this function :) Can I be assigned? Thank you 👌 |
Hello @cmuagab, Sure! Thanks for your interest in contributing to Astra. I'll assign this over to you now. |
If my calculations are correct I have a cognitive complexity of 11 👍 |
Thanks very much for submitting this PR, @cmuagab - it looks like breaking the function up into smaller functions is the way to go. |
Thank you for your responsiveness ! 😍 |
Great stuff! I've made a couple of tweaks - mostly formatting but also noticed that, although not caught by any unit test - there was a potential issue with returning false too early here: f6b77be#diff-d04ef1893e85db481c55f07e071e0e14bc32303f660d1612c23cff78a2c05767R652 This is a really nice change, thank you for your contribution to Astra, @cmuagab! Merging now. |
(#89) Reduce cognitive complexity of AstraUtils#isStaticallyImportedMethod
See https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&id=alfasoftware_astra&open=AXhfYNiw01lXSQw-3UdK
The text was updated successfully, but these errors were encountered: