/** * Returns true if the given category is a valid category * * @param name the category name to be checked * @return true if the given string is a valid category */ public final boolean isCategoryName(String name) { for (Category c : getCategories()) { if (c.getName().equals(name) || c.getFullName().equals(name)) { return true; } } return false; }
/** * Returns true if the given category is a valid category * * @param name the category name to be checked * @return true if the given string is a valid category */ public final boolean isCategoryName(@NonNull String name) { for (Category category : getCategories()) { if (category.getName().equals(name) || category.getFullName().equals(name)) { return true; } } return false; }
if (issue.getCategory().getName().startsWith(category) || issue.getCategory().getFullName().startsWith(category)) { listIssue(System.out, issue); if (issue.getCategory().getName().startsWith(category) || issue.getCategory().getFullName().startsWith(category)) { describeIssue(issue); if (issue.getCategory().getName().startsWith(category) || issue.getCategory().getFullName().startsWith(category)) { flags.getSuppressedIds().add(issue.getId()); if (issue.getCategory().getName().startsWith(category) || issue.getCategory().getFullName().startsWith(category)) { flags.getEnabledIds().add(issue.getId()); if (issue.getCategory().getName().startsWith(category) || issue.getCategory().getFullName().startsWith(category)) { checkedIds.add(issue.getId());
Category category = issue.getCategory(); while (category != null && category != Category.LINT) { writeChip(category.getName()); category = category.getParent();