Repository navigation
refactor: reduce cognitive complexity in ExpressionParser.parseExpres… - #1899
Conversation
|
Welcome to the Microcks community! 💖 Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly. Hope you have a great time there! 🌟 ~~~~~~~~~ 🌟 📢 If you like Microcks, please ⭐ star ⭐ our repo to support it! 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. |
a44a24b to
b99ce51
Compare
|
Hey! Thanks for taking the time pushing this! It actually looks great but it's targeting the |
b99ce51 to
58d0a4c
Compare
Signed-off-by: Laurent Broudoux <[email protected]> Signed-off-by: Nimesh-0000 <[email protected]>
…sions - Extract validation logic into separate helper methods - Reduce cognitive complexity from 20 to 15 - Improve code readability and maintainability - No functional changes, all tests passing (41/41) Methods extracted: - addLiteralIfNeeded(): Handle literal expression addition - validateSuffixFound(): Validate suffix existence - validateSuffixNotEmpty(): Validate non-empty expressions - extractAndValidateExpression(): Extract and validate expression string - addParsedExpression(): Handle expression parsing with curly brace wrapping Signed-off-by: Nimesh-0000 <[email protected]>
58d0a4c to
08fcf23
Compare
|
Build is ok and it looks good. I'll have a final review before merging. Thanks again for taking the time to push this @Nimesh-0000 !! 👍 |
|
You are now a Microcks community contributor! 💖 Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏 📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌" Kudos and please keep going, we need you 🙌 🌟 ~~~~~~~~~ 🌟 📢 If you like Microcks, please ⭐ star ⭐ our repo to support it! 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. |
issue --> java:S3776 Cognitive Complexity of methods should not be too high
Link: https://sonarcloud.io/project/issues?issueStatuses=OPEN%2CCONFIRMED&id=microcks_microcks&open=AYmZthxVBCcdL_hhQMb2&tab=activity
Changes -->
Methods extracted: