Search in sources :

Example 1 with ProjectLogOutput

use of org.sonarlint.intellij.util.ProjectLogOutput in project sonarlint-intellij by SonarSource.

the class ConnectedSonarLintFacade method analyze.

@Override
protected AnalysisResults analyze(Path baseDir, Path workDir, Collection<ClientInputFile> inputFiles, Map<String, String> props, IssueListener issueListener, ProgressMonitor progressMonitor) {
    ConnectedAnalysisConfiguration config = new ConnectedAnalysisConfiguration(moduleKey, baseDir, workDir, inputFiles, props);
    console.debug("Starting analysis with configuration:\n" + config.toString());
    return sonarlint.analyze(config, issueListener, new ProjectLogOutput(console, projectSettings), progressMonitor);
}
Also used : ProjectLogOutput(org.sonarlint.intellij.util.ProjectLogOutput) ConnectedAnalysisConfiguration(org.sonarsource.sonarlint.core.client.api.connected.ConnectedAnalysisConfiguration)

Example 2 with ProjectLogOutput

use of org.sonarlint.intellij.util.ProjectLogOutput in project sonarlint-intellij by SonarSource.

the class StandaloneSonarLintFacade method analyze.

@Override
protected AnalysisResults analyze(Path baseDir, Path workDir, Collection<ClientInputFile> inputFiles, Map<String, String> props, IssueListener issueListener, ProgressMonitor progressMonitor) {
    StandaloneAnalysisConfiguration config = new StandaloneAnalysisConfiguration(baseDir, workDir, inputFiles, props);
    console.debug("Starting analysis with configuration:\n" + config.toString());
    return sonarlint.analyze(config, issueListener, new ProjectLogOutput(console, projectSettings), progressMonitor);
}
Also used : ProjectLogOutput(org.sonarlint.intellij.util.ProjectLogOutput) StandaloneAnalysisConfiguration(org.sonarsource.sonarlint.core.client.api.standalone.StandaloneAnalysisConfiguration)

Aggregations

ProjectLogOutput (org.sonarlint.intellij.util.ProjectLogOutput)2 ConnectedAnalysisConfiguration (org.sonarsource.sonarlint.core.client.api.connected.ConnectedAnalysisConfiguration)1 StandaloneAnalysisConfiguration (org.sonarsource.sonarlint.core.client.api.standalone.StandaloneAnalysisConfiguration)1