Skip to content

Commit

Permalink
clarified the shouldExecuteOnProject log-message; now it's clear this is
Browse files Browse the repository at this point in the history
a SCALA specific sensor
  • Loading branch information
johanneszink committed Feb 27, 2015
1 parent 9ab3bad commit 9e91098
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public CoberturaSensor(FileSystem fileSystem, PathResolver pathResolver, Setting

public boolean shouldExecuteOnProject(Project project) {
if(fileSystem.languages().contains(Scala.KEY)){
LOG.info("CoberturaSensor will be executed");
LOG.info("SonarScala - CoberturaSensor will be executed");
return true;
} else {
LOG.info("CoberturaSensor will NOT be executed");
LOG.info("SonarScala - CoberturaSensor will NOT be executed");
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ public SurefireSensor (Settings settings, FileSystem fileSystem, MavenProject po

public boolean shouldExecuteOnProject(Project project) {
if( fileSystem.hasFiles(fileSystem.predicates().hasLanguage(Scala.KEY))){
LOG.info("SurefireSensor will be executed");
LOG.info("SonarScala - SurefireSensor will be executed");
return true;
} else {
LOG.info("SurefireSensor will NOT be executed");
LOG.info("SonarScala - SurefireSensor will NOT be executed");
return false;
}
}
Expand Down

0 comments on commit 9e91098

Please sign in to comment.