Search in sources :

Example 1 with Check

use of it.plugins.checks.Check in project sonarqube by SonarSource.

the class PluginsTest method analysis_of_project_with_all_supported_languages.

@Test
public void analysis_of_project_with_all_supported_languages() {
    SonarScanner analysis = newAnalysis();
    BuildResult result = ORCHESTRATOR.executeBuildQuietly(analysis);
    if (result.getLastStatus() != 0) {
        fail(result.getLogs());
    }
    for (Check check : CHECKS) {
        System.out.println(check.getClass().getSimpleName() + "...");
        check.validate(new Validation(ORCHESTRATOR, errorCollector));
    }
}
Also used : Validation(it.plugins.checks.Validation) BuildResult(com.sonar.orchestrator.build.BuildResult) PliCheck(it.plugins.checks.PliCheck) PhpCheck(it.plugins.checks.PhpCheck) Check(it.plugins.checks.Check) JavaCheck(it.plugins.checks.JavaCheck) AbapCheck(it.plugins.checks.AbapCheck) GroovyCheck(it.plugins.checks.GroovyCheck) PythonCheck(it.plugins.checks.PythonCheck) VbCheck(it.plugins.checks.VbCheck) SwiftCheck(it.plugins.checks.SwiftCheck) CCheck(it.plugins.checks.CCheck) RpgCheck(it.plugins.checks.RpgCheck) JavascriptCheck(it.plugins.checks.JavascriptCheck) WebCheck(it.plugins.checks.WebCheck) FlexCheck(it.plugins.checks.FlexCheck) CobolCheck(it.plugins.checks.CobolCheck) CppCheck(it.plugins.checks.CppCheck) SonarScanner(com.sonar.orchestrator.build.SonarScanner) Test(org.junit.Test)

Aggregations

BuildResult (com.sonar.orchestrator.build.BuildResult)1 SonarScanner (com.sonar.orchestrator.build.SonarScanner)1 AbapCheck (it.plugins.checks.AbapCheck)1 CCheck (it.plugins.checks.CCheck)1 Check (it.plugins.checks.Check)1 CobolCheck (it.plugins.checks.CobolCheck)1 CppCheck (it.plugins.checks.CppCheck)1 FlexCheck (it.plugins.checks.FlexCheck)1 GroovyCheck (it.plugins.checks.GroovyCheck)1 JavaCheck (it.plugins.checks.JavaCheck)1 JavascriptCheck (it.plugins.checks.JavascriptCheck)1 PhpCheck (it.plugins.checks.PhpCheck)1 PliCheck (it.plugins.checks.PliCheck)1 PythonCheck (it.plugins.checks.PythonCheck)1 RpgCheck (it.plugins.checks.RpgCheck)1 SwiftCheck (it.plugins.checks.SwiftCheck)1 Validation (it.plugins.checks.Validation)1 VbCheck (it.plugins.checks.VbCheck)1 WebCheck (it.plugins.checks.WebCheck)1 Test (org.junit.Test)1