@Test public void analyze_ignoreNonProjectFiles() throws Exception { ProjectAnalyzer analyzer = new ProjectAnalyzer(testProjectSuggesters, testSuggesters); File appProject = TestUtils.getTestDataFile(IGNORABLE_FILES_PROJECT); ImmutableList<Suggestion> suggestions = analyzer.analyze(appProject); assertThat(suggestions).isEmpty(); assertThat(suggester.getAnalyzedEntries()).containsExactly("build.gradle"); }
@Override @CheckReturnValue public ImmutableList<Suggestion> analyze(File projectDirectory) { File buildFile = new File(projectDirectory, Project.BUILD_GRADLE); Project project = buildFile.exists() ? Project.create(projectDirectory, null) : null; return analyzeProject( projectDirectory, project, projectDirectory, projectSuggesters, suggesters); }
ProjectAnalyzer implements ArtifactAnalyzer { @Override @CheckReturnValue public ImmutableList<Suggestion> analyze(File projectDirectory) { File buildFile = new File(projectDirectory, Project.BUILD_GRADLE); Project project = buildFile.exists() ? Project.create(projectDirectory, null) : null; return analyzeProject( projectDirectory, project, projectDirectory, projectSuggesters, suggesters); } }
ProjectAnalyzer implements ArtifactAnalyzer { @Override @CheckReturnValue public ImmutableList<Suggestion> analyze(File projectDirectory) { File buildFile = new File(projectDirectory, Project.BUILD_GRADLE); Project project = buildFile.exists() ? Project.create(projectDirectory, null) : null; return analyzeProject( projectDirectory, project, projectDirectory, projectSuggesters, suggesters); } ProjectAnalyzer(
      ImmutableList<ProjectSuggester> projectSuggesters,
      ImmutableList<ProjectTreeSuggester> suggesters); }
ProjectAnalyzer implements ArtifactAnalyzer { @Override @CheckReturnValue public ImmutableList<Suggestion> analyze(File projectDirectory) { File buildFile = new File(projectDirectory, Project.BUILD_GRADLE); Project project = buildFile.exists() ? Project.create(projectDirectory, null) : null; return analyzeProject( projectDirectory, project, projectDirectory, projectSuggesters, suggesters); } ProjectAnalyzer(
      ImmutableList<ProjectSuggester> projectSuggesters,
      ImmutableList<ProjectTreeSuggester> suggesters); @Override @CheckReturnValue ImmutableList<Suggestion> analyze(File projectDirectory); }
ProjectAnalyzer implements ArtifactAnalyzer { @Override @CheckReturnValue public ImmutableList<Suggestion> analyze(File projectDirectory) { File buildFile = new File(projectDirectory, Project.BUILD_GRADLE); Project project = buildFile.exists() ? Project.create(projectDirectory, null) : null; return analyzeProject( projectDirectory, project, projectDirectory, projectSuggesters, suggesters); } ProjectAnalyzer(
      ImmutableList<ProjectSuggester> projectSuggesters,
      ImmutableList<ProjectTreeSuggester> suggesters); @Override @CheckReturnValue ImmutableList<Suggestion> analyze(File projectDirectory);  }