import org.sonar.batch.events.BatchStepEvent;
import org.sonar.batch.events.EventBus;
import org.sonar.batch.issue.IssueCache;
-import org.sonar.core.i18n.RuleI18nManager;
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Writer;
+import java.io.*;
import java.util.ArrayList;
import java.util.List;
-import java.util.Locale;
import java.util.Set;
import static com.google.common.collect.Sets.newHashSet;
private UserFinder userFinder;
public JsonReport(Settings settings, ModuleFileSystem fileSystem, Server server, RuleFinder ruleFinder, IssueCache issueCache,
- EventBus eventBus, ComponentSelectorFactory componentSelectorFactory, AnalysisMode mode, UserFinder userFinder) {
+ EventBus eventBus, ComponentSelectorFactory componentSelectorFactory, AnalysisMode mode, UserFinder userFinder) {
this(settings, fileSystem, server, ruleFinder, issueCache, eventBus, componentSelectorFactory.create(), mode, userFinder);
}
@VisibleForTesting
JsonReport(Settings settings, ModuleFileSystem fileSystem, Server server, RuleFinder ruleFinder, IssueCache issueCache,
- EventBus eventBus, ComponentSelector componentSelector, AnalysisMode analysisMode, UserFinder userFinder) {
+ EventBus eventBus, ComponentSelector componentSelector, AnalysisMode analysisMode, UserFinder userFinder) {
this.settings = settings;
this.fileSystem = fileSystem;
this.server = server;
import org.apache.commons.lang.StringUtils;
import org.picocontainer.Startable;
import org.sonar.api.ServerComponent;
-import org.sonar.api.rules.Rule;
import org.sonar.core.i18n.RuleI18nManager;
-import javax.annotation.CheckForNull;
-
import java.util.Map;
/**
}
private static void translateNonBlankKey(Map<String, String> options, Map<String, String> params, String optionKey, String paramKey) {
- if(options.get(optionKey) != null && StringUtils.isNotBlank(options.get(optionKey).toString())) {
+ if (options.get(optionKey) != null && StringUtils.isNotBlank(options.get(optionKey).toString())) {
params.put(paramKey, options.get(optionKey).toString());
}
}