Skip to content

Commit

Permalink
SONARCS-587 Don't attempt to run the C# analysis on non-Windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolkensteyn committed Apr 22, 2016
1 parent 747ea35 commit f79d95f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/sonar/plugins/csharp/CSharpSensor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f79d95f

Please sign in to comment.