Skip to content

#175 Add object oriented disharmony detectors#176

Merged
jimbethancourt merged 40 commits into
mainfrom
#175-add-object-oriented-disharmony-detectors
Jun 2, 2026
Merged

#175 Add object oriented disharmony detectors#176
jimbethancourt merged 40 commits into
mainfrom
#175-add-object-oriented-disharmony-detectors

Conversation

@jimbethancourt
Copy link
Copy Markdown
Collaborator

Adding remaining disharmonies identified in "Object Oriented Metrics in Practice" and ranking them based on severity.

Updated detectors for Object Oriented Disharmonies to align with metric values from book
Now using homegrown God class detector.
- Now using class FQN and source path captured in JavaVisitor.  One less traversal needed!
- Removed extra mapping maps that were populated by the now superfluous path walking in CycleRanker
- Path mappings for inner classes are now being captured
- BUG: Static method calls and definitions are not being scanned, but were previously being captured.  Will take this as a bug for now and address this issue ASAP.
- BUG: Static method calls and definitions are not being scanned, but were previously being captured.  Will take this as a bug for now and address this issue ASAP.
Simplified variable and try catch type processing
- Forgot to add new classes
- Also changed TCC metric sort order to DESCENDING for God classes
- Fixed sort direction to match greater than / less than direction specified in Object Oriented Metrics in Practice
- Added MAXNESTING as ranking criteria for method coupling metrics
Disharmony SCM information lookup now being performed correctly.
@jimbethancourt jimbethancourt merged commit 87cc067 into main Jun 2, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

1 participant