public CheckstyleSensor(RulesProfile profile, CheckstyleExecutor executor) {
this.profile = profile;
this.executor = executor;
}
public boolean shouldExecuteOnProject(Project project) {
<BUG>return project.getFileSystem().hasJavaSourceFiles() &&
!profile.getActiveRulesByRepository(CheckstyleConstants.REPOSITORY_KEY).isEmpty();</BUG>
}
public void analyse(Project project, SensorContext context) {
executor.execute();

public CheckstyleSensor(RulesProfile profile, CheckstyleExecutor executor) {
this.profile = profile;
this.executor = executor;
}
public boolean shouldExecuteOnProject(Project project) {
return !project.getFileSystem().mainFiles(Java.KEY).isEmpty() &&
!profile.getActiveRulesByRepository(CheckstyleConstants.REPOSITORY_KEY).isEmpty();
}
public void analyse(Project project, SensorContext context) {
executor.execute();
