Description / Features
Exclude files from analysis based on a cutoff date threshold (or a cutoff period). Any source file that was last modified prior to the configured cutoff date is excluded. This can be useful when you want to analyze the work done on an existing code base and measure the quality of new code/changes only. This way previous phases of the project will not impact the analysis.
- Install the Cutoff plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
The cutoff date or cutoff period can be set at global or project level: go to Configuration > General Settings (or Settings) > Cutoff and set either the 'sonar.cutoff.date' or 'sonar.cutoff.periodInDays' property.
The plugin currently relies on the file system date which is very random and will be difficult to reproduce on a different machine. The next step is really to get the information from SCM.