Disabling or changing the mechanisms

In very specific cases, you may have to disable or change the incremental analysis mechanism.

Disabling the Skip unchanged files mechanism

You can disable the Skip unchanged files mechanisms used by the Kotlin and Java analyzers by setting the sonar.kotlin.skipUnchanged or the sonar.java.skipUnchanged to false.

Disabling the analysis cache mechanism

In particular cases, you may need to disable the analysis cache mechanism.

The analysis cache mechanism is enabled by default. If you disable it, the analyzer will analyze all files from scratch.

To disable the analysis cache mechanism, add the following parameter to your analysis (See Analysis parameters for information about the setup of analysis parameters for the scanner.):

sonar.analysisCache.enabled=false

The parameter sonar.analysisCache.enabled is not compatible with SonarScanner for .NET.

Using the local filesystem for analysis caching

With the C/C++/Objective-C analyzer, you can configure the filesystem cache instead of using the analysis cache on the server. See also Customizing the analysis and Analysis cache mechanism.

Last updated

Was this helpful?