CodeScene version 6.8.0 includes the following:
- Feature: Code Health: make the code duplication criteria configurable as part of Custom Code Health.
We’re unifying the way code duplication is reported. We made the thresholds configurable and also unified them across programming languages. So you might notice small discrepancies from previous code health scores. In previous versions, the Code Duplication had less impact on larger files, a behavior that we have now changed to be independent of file size.
Use the following custom thresholds to tailor how Code Duplication is reported:
-
- function_duplication_min_lines_of_code_for_check specifies the lower threshold for when to report duplicated code with respect to function length. Default value: 10 (LoC). The idea is that you don’t care about 1 or 2 line functions that happen to be similar – that would generate tons of false positives.
- function_duplication_min_similarity_percentage specifies the thresholds for when two – or more – functions are considered copies of each other. Default: 75 (%). Code is considered duplicated when its structural similarity exceeds this threshold.
- Feature: Added ability to filter the system map on tickets to visualize which areas of the code base were modified
The System Maps now include a filtering feature that enables visualization of modified areas in the codebase based on ticket data. Filtering can be done by selecting multiple tickets simultaneously.
This filtering feature empowers you to quickly focus on specific areas of the codebase tied to relevant issues, enabling targeted visualization and better analysis. It’s a simple and powerful tool to focus on specific issues and see how they impact the system.
To enable filtering at system maps, PM integration has to be enabled.
If you are running the JAR directly, you can download it here.