-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix documentation issues #230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
- Declining Code Health: 1 findings(s) 🚩
- Improving Code Health: 6 findings(s) ✅
- Affected Hotspots: 1 files(s) 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
- Declining Code Health: 2 findings(s) 🚩
- Improving Code Health: 9 findings(s) ✅
- Affected Hotspots: 1 files(s) 🔥
@@ -15,6 +15,9 @@ | |||
import java.util.ArrayList; | |||
import java.util.List; | |||
import java.util.Set; | |||
import java.util.stream.Collectors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 9.22 to 7.77, threshold = 4
} | ||
return operators; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Getting better: Bumpy Road Ahead
processDocXMLOperators decreases from 5 to 2 logical blocks with deeply nested code, threshold is one single block per function
} | ||
return operators; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Getting better: Complex Method
processDocXMLOperators decreases in cyclomatic complexity from 24 to 12, threshold = 9
private void addConcepts(org.w3c.dom.Element operator, ExecutableElement e) { | ||
org.w3c.dom.Element conceptsElt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ New issue: Code Duplication
The module contains 5 functions with similar structure: addCategories,addConcepts,processDocXMLStatementsInsideKind,processDocXMLStatementsInsideSymbol and 1 more functions
} | ||
return operators; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ No longer an issue: Deep, Nested Complexity
processDocXMLOperators is no longer above the threshold for nested complexity depth
I think that's good enough for the codescene report, the only thing we could do to help with code "duplication" is to refactor completely the module to have getConcepts, getCategories and getDocElt to merge into one method. I don't think it's worth the hassle and it would probably lead to a monster of a method anyway |
I think that's good enough for the codescene report, the only thing we could do to help with code "duplication" is to refactor completely the module to have getConcepts, getCategories and getDocElt to merge into one method. I don't think it's worth the hassle and it would probably lead to a monster of a method anyway.
because that test was already done a few lines above, so my guess was that it was some forgotten code with no practical impact, but maybe I overlooked it and it makes sense ? |
Indeed you can remove one if :-) |
Fixes attempt for issues #222, #219, #220, #214 from gama-platform.github.io repository