@Test public void binary_files() { assertThat(isTextFile("App.class")).isFalse(); assertThat(isTextFile("button.png")).isFalse(); }
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);  }