diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-11-03 15:59:10 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-11-03 15:59:10 +0100 |
commit | 0b4f1ffbd4231942dd9d536a99f77411a17301c1 (patch) | |
tree | 2f23f2a8663bcee27d04dec4b80479c4a27517fe /plugins/sonar-xoo-plugin | |
parent | 38a55b31c34ae84caa107935337cd147de2c2ec0 (diff) | |
download | sonarqube-0b4f1ffbd4231942dd9d536a99f77411a17301c1.tar.gz sonarqube-0b4f1ffbd4231942dd9d536a99f77411a17301c1.zip |
Fix some quality flaws
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooScmProvider.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooScmProvider.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooScmProvider.java index 5807d820043..1dbcb2c04fd 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooScmProvider.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/scm/XooScmProvider.java @@ -22,6 +22,8 @@ package org.sonar.xoo.scm; import org.sonar.api.batch.scm.BlameCommand; import org.sonar.api.batch.scm.ScmProvider; +import java.io.File; + public class XooScmProvider extends ScmProvider { private final XooBlameCommand blame; @@ -31,6 +33,11 @@ public class XooScmProvider extends ScmProvider { } @Override + public boolean supports(File baseDir) { + return new File(baseDir, ".xoo").exists(); + } + + @Override public String key() { return "xoo"; } |