Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

  1. Install the Cutoff plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
  2. Restart the Sonar server

Usage

Go to plugin settings and choose the cuttoff date or period for the analysis

...

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.

Known Limitations

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.

...