@Test public void fails_if_project_dir_not_set() { thrown.expect(NullPointerException.class); thrown.expectMessage("Project directory must be set"); SonarScanner.create().check(); }
public static SonarScanner create() { return new SonarScanner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); }
SonarScanner extends SonarRunner { public static SonarScanner create() { return new SonarScanner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } }
SonarScanner extends SonarRunner { public static SonarScanner create() { return new SonarScanner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } SonarScanner(); }
SonarScanner extends SonarRunner { public static SonarScanner create() { return new SonarScanner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } SonarScanner(); @Override SonarScanner setEnvironmentVariable(String name, String value); @Deprecated @Override SonarScanner setRunnerVersion(String s); Version scannerVersion(); SonarScanner setScannerVersion(String s); @Override SonarScanner setProjectDir(File dir); @Override SonarScanner setProjectKey(@Nullable String s); @Override SonarScanner setProjectVersion(@Nullable String s); @Override SonarScanner setProjectName(@Nullable String s); @Override SonarScanner setSourceDirs(@Nullable String s); @Override SonarScanner setTestDirs(@Nullable String testDirs); @Deprecated @Override SonarScanner setBinaries(@Nullable String s); @Deprecated @Override SonarScanner setLibraries(@Nullable String s); @Override SonarScanner setLanguage(@Nullable String s); @Override SonarScanner setSourceEncoding(@Nullable String s); @Override SonarScanner setDebugLogs(boolean b); @Override SonarScanner setShowErrors(boolean b); @Override SonarScanner setTask(String task); @Override SonarScanner setProfile(String profileKey); @Override SonarScanner addArgument(String additionalArgument); @Override SonarScanner addArguments(List<String> additionalArguments); @Override SonarScanner addArguments(String... additionalArguments); @Override SonarScanner setProperty(String key, String value); @Override SonarScanner setProperties(Map<String, String> p); @Override SonarScanner setProperties(String... keyValues); SonarScanner setUseOldSonarRunnerScript(boolean useOldSonarRunnerScript); @Override boolean isUseOldSonarRunnerScript(); SonarScanner useNative(); @Override String classifier(); static SonarScanner create(); static SonarScanner create(File projectDir, String... keyValueProperties); }
SonarScanner extends SonarRunner { public static SonarScanner create() { return new SonarScanner() .setProperty(PROP_KEY_SOURCE_ENCODING, DEFAULT_SOURCE_ENCODING); } SonarScanner(); @Override SonarScanner setEnvironmentVariable(String name, String value); @Deprecated @Override SonarScanner setRunnerVersion(String s); Version scannerVersion(); SonarScanner setScannerVersion(String s); @Override SonarScanner setProjectDir(File dir); @Override SonarScanner setProjectKey(@Nullable String s); @Override SonarScanner setProjectVersion(@Nullable String s); @Override SonarScanner setProjectName(@Nullable String s); @Override SonarScanner setSourceDirs(@Nullable String s); @Override SonarScanner setTestDirs(@Nullable String testDirs); @Deprecated @Override SonarScanner setBinaries(@Nullable String s); @Deprecated @Override SonarScanner setLibraries(@Nullable String s); @Override SonarScanner setLanguage(@Nullable String s); @Override SonarScanner setSourceEncoding(@Nullable String s); @Override SonarScanner setDebugLogs(boolean b); @Override SonarScanner setShowErrors(boolean b); @Override SonarScanner setTask(String task); @Override SonarScanner setProfile(String profileKey); @Override SonarScanner addArgument(String additionalArgument); @Override SonarScanner addArguments(List<String> additionalArguments); @Override SonarScanner addArguments(String... additionalArguments); @Override SonarScanner setProperty(String key, String value); @Override SonarScanner setProperties(Map<String, String> p); @Override SonarScanner setProperties(String... keyValues); SonarScanner setUseOldSonarRunnerScript(boolean useOldSonarRunnerScript); @Override boolean isUseOldSonarRunnerScript(); SonarScanner useNative(); @Override String classifier(); static SonarScanner create(); static SonarScanner create(File projectDir, String... keyValueProperties);  }