@Test public void text_files() { assertThat(isTextFile("AndroidManifest.xml")).isTrue(); assertThat(isTextFile("Main.java")).isTrue(); assertThat(isTextFile("App.kt")).isTrue(); assertThat(isTextFile("default.properties")).isTrue(); assertThat(isTextFile("build.gradle")).isTrue(); assertThat(isTextFile("proguard.cfg")).isTrue(); assertThat(isTextFile("proguard-project.txt")).isTrue(); }
static boolean isTextFile(String file) { return TEXT_FILE_EXTENSIONS.stream().anyMatch(file::endsWith); }
AndroidLintRulesDefinition implements RulesDefinition { static boolean isTextFile(String file) { return TEXT_FILE_EXTENSIONS.stream().anyMatch(file::endsWith); } }
AndroidLintRulesDefinition implements RulesDefinition { static boolean isTextFile(String file) { return TEXT_FILE_EXTENSIONS.stream().anyMatch(file::endsWith); } AndroidLintRulesDefinition(boolean externalIssuesSupported); }
AndroidLintRulesDefinition implements RulesDefinition { static boolean isTextFile(String file) { return TEXT_FILE_EXTENSIONS.stream().anyMatch(file::endsWith); } AndroidLintRulesDefinition(boolean externalIssuesSupported); @Override void define(Context context); }
AndroidLintRulesDefinition implements RulesDefinition { static boolean isTextFile(String file) { return TEXT_FILE_EXTENSIONS.stream().anyMatch(file::endsWith); } AndroidLintRulesDefinition(boolean externalIssuesSupported); @Override void define(Context context);  }