diff --git a/src/main/java/org/sonar/plugins/csharp/CSharpSensor.java b/src/main/java/org/sonar/plugins/csharp/CSharpSensor.java index f21602c06d5..1074fcc61c3 100644 --- a/src/main/java/org/sonar/plugins/csharp/CSharpSensor.java +++ b/src/main/java/org/sonar/plugins/csharp/CSharpSensor.java @@ -37,6 +37,7 @@ import javax.xml.stream.XMLStreamConstants; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; +import org.apache.commons.lang.SystemUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.batch.Sensor; @@ -94,7 +95,7 @@ public CSharpSensor(Settings settings, RuleRunnerExtractor extractor, FileSystem @Override public boolean shouldExecuteOnProject(Project project) { - return filesToAnalyze().iterator().hasNext(); + return SystemUtils.IS_OS_WINDOWS && filesToAnalyze().iterator().hasNext(); } @Override