if (commandLine.getProject().getFileCount() == 0 && !commandLine.justPrintConfiguration() && !commandLine.justPrintVersion()) { System.out.println("No files to be analyzed");
private IClassPath buildClassPath(IClassPathBuilder builder, IClassFactory factory) throws InterruptedException, IOException, CheckedAnalysisException { progress.startScanningArchives(project.getFileCount()); for (String path : project.getFileList()) { builder.addCodeBase(factory.createFilesystemCodeBaseLocator(path), true); } for (String path : project.getAuxClasspathEntryList()) { builder.addCodeBase(factory.createFilesystemCodeBaseLocator(path), false); } IClassPath classPath = factory.createClassPath(); builder.build(classPath, progress); progress.doneScanningArchives(); return classPath; }
progressReporter.reportNumberOfArchives(project.getFileCount() + project.getNumAuxClasspathEntries()); profiler.start(this.getClass());
if(project.getFileCount() == 0) { LOG.info("Findbugs analysis skipped for this project."); return new ArrayList<>();
private void clearProjectSettings(Project p) { // First clear p's old files, otherwise we can't remove a file // once an analysis has been performed on it int numOldFiles = p.getFileCount(); for (int x = 0; x < numOldFiles; x++) { p.removeFile(0); } int numOldAuxFiles = p.getNumAuxClasspathEntries(); for (int x = 0; x < numOldAuxFiles; x++) { p.removeAuxClasspathEntry(0); } int numOldSrc = p.getNumSourceDirs(); for (int x = 0; x < numOldSrc; x++) { p.removeSourceDir(0); } }
if (commandLine.getProject().getFileCount() == 0 && !commandLine.justPrintConfiguration() && !commandLine.justPrintVersion()) { System.out.println("No files to be analyzed");
private IClassPath buildClassPath(IClassPathBuilder builder, IClassFactory factory) throws InterruptedException, IOException, CheckedAnalysisException { progress.startScanningArchives(project.getFileCount()); for (String path : project.getFileList()) { builder.addCodeBase(factory.createFilesystemCodeBaseLocator(path), true); } for (String path : project.getAuxClasspathEntryList()) { builder.addCodeBase(factory.createFilesystemCodeBaseLocator(path), false); } IClassPath classPath = factory.createClassPath(); builder.build(classPath, progress); progress.doneScanningArchives(); return classPath; }
progress.reportNumberOfArchives(project.getFileCount() + project.getNumAuxClasspathEntries()); profiler.start(this.getClass());