[Paper Review] ModularityCheck: A Tool for Assessing Modularity using Co-Change Clusters
ModularityCheck is a tool that assesses software package modularity by mining co-change clusters from version control histories and issue reports, using distribution maps to visualize how these clusters align with existing package structures. It identifies modularity issues such as crosscutting concerns and partial encapsulation, offering a complementary evolutionary view to traditional structural metrics.
It is widely accepted that traditional modular structures suffer from the dominant decomposition problem. Therefore, to improve current modularity views, it is important to investigate the impact of design decisions concerning modularity in other dimensions, as the evolutionary view. In this paper, we propose the ModularityCheck tool to assess package modularity using co-change clusters, which are sets of classes that usually changed together in the past. Our tool extracts information from version control platforms and issue reports, retrieves co-change clusters, generates metrics related to co-change clusters, and provides visualizations for assessing modularity. We also provide a case study to evaluate the tool. http://youtu.be/7eBYa2dfIS8
Motivation & Objective
- To address the dominant decomposition problem in traditional modularity metrics by incorporating evolutionary change behavior.
- To detect modularity flaws such as crosscutting concerns and ripple effects through co-change patterns.
- To provide a visualization and metric-based analysis of co-change clusters projected onto existing package structures.
- To support software architects in understanding and improving package modularity using real change history.
- To offer an automated, tool-supported approach to assess modularity beyond static structural coupling and cohesion.
Proposed method
- The tool extracts commits from version control (SVN/GIT) and filters out noisy commits by cross-referencing with issue reports.
- It constructs co-change graphs where nodes are classes and edges represent co-changes in the same commit.
- Edges with low weights are pruned, and the graph is clustered to extract co-change clusters—groups of classes that frequently change together.
- Distribution maps are used to visualize the projection of co-change clusters onto the existing package structure, revealing adherence or misalignment.
- Metrics such as focus and spread are computed to characterize cluster distribution across packages (e.g., focus ≈ 1.0 and spread = 1 indicates strong encapsulation).
- The tool supports identifying patterns like crosscutting clusters (high spread, low focus) and partially encapsulated clusters (high focus, spread > 1), indicating potential ripple effects.
Experimental results
Research questions
- RQ1How can co-change clusters extracted from version history reveal flaws in package modularity?
- RQ2To what extent do co-change clusters align with the current package decomposition in real-world systems?
- RQ3Can distribution maps effectively visualize and characterize the evolutionary modularity of software packages?
- RQ4What types of modularity violations (e.g., crosscutting concerns, partial encapsulation) can be detected using co-change patterns?
- RQ5How does the evolutionary view of modularity compare to traditional structural metrics in identifying design issues?
Key findings
- Four co-change clusters in Geronimo were fully encapsulated within a single package (focus ≈ 1.0, spread = 1), indicating strong alignment with package boundaries.
- Cluster 8 in Geronimo showed partial encapsulation (focus = 0.97, spread = 2), indicating it touched classes in multiple packages, suggesting a potential ripple effect.
- The tool detected crosscutting cluster patterns in other systems (not in Geronimo), indicating modularity violations where changes span multiple unrelated packages.
- The tool successfully pruned noisy commits by filtering those not linked to maintenance issues, not changing classes, or associated with multiple issues.
- The use of distribution maps enabled clear identification of recurrent distribution patterns, including well-modularized and crosscutting clusters.
- The tool’s metrics (focus and spread) effectively distinguished between well-encapsulated and problematic co-change clusters in real-world systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.