@Override public boolean isValid(Tree tree) { return tree instanceof FunctionTree && (((FunctionTree) tree).isVendorPrefixed() || allowedFunctions.contains(((FunctionTree) tree).standardFunction().getClass()) || alwaysAllowedFunctions.contains(((FunctionTree) tree).standardFunction().getClass())); }
@Override public boolean isValid(Tree tree) { return tree instanceof FunctionTree && (((FunctionTree) tree).isVendorPrefixed() || allowedFunctions.contains(((FunctionTree) tree).standardFunction().getClass()) || alwaysAllowedFunctions.contains(((FunctionTree) tree).standardFunction().getClass())); }
@Override public void visitFunction(FunctionTree tree) { if (!tree.isVendorPrefixed() && tree.standardFunction() instanceof UnknownFunction) { addPreciseIssue( tree.function(), "Remove this usage of the unknown \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }
@Override public void visitFunction(FunctionTree tree) { if (!tree.isVendorPrefixed() && tree.standardFunction() instanceof UnknownFunction) { addPreciseIssue( tree.function(), "Remove this usage of the unknown \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }
@Override public void visitFunction(FunctionTree tree) { if (!tree.standardFunction().isLess() && !tree.standardFunction().getName().matches(functionsToExclude) && (tree.isVendorPrefixed() || tree.standardFunction().isExperimental())) { addPreciseIssue( tree.function(), "Remove this usage of the experimental \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }
@Override public void visitFunction(FunctionTree tree) { if (!tree.isVendorPrefixed() && (tree.standardFunction() instanceof UnknownFunction || !tree.standardFunction().isCss())) { addPreciseIssue( tree.function(), "Remove this usage of the unknown \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }
@Override public void visitFunction(FunctionTree tree) { if (tree.standardFunction().isCss() && !tree.standardFunction().getName().matches(functionsToExclude) && (tree.isVendorPrefixed() || tree.standardFunction().isExperimental())) { addPreciseIssue( tree.function(), "Remove this usage of the experimental \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }
@Override public void visitFunction(FunctionTree tree) { if (!tree.isVendorPrefixed() && (tree.standardFunction() instanceof UnknownFunction || !tree.standardFunction().isCss())) { addPreciseIssue( tree.function(), "Remove this usage of the unknown \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }
@Override public void visitFunction(FunctionTree tree) { if (!tree.standardFunction().isLess() && (tree.isVendorPrefixed() || tree.standardFunction().isExperimental())) { addPreciseIssue( tree.function(), "Remove this usage of the experimental \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }
@Override public void visitFunction(FunctionTree tree) { if (tree.standardFunction().isCss() && (tree.isVendorPrefixed() || tree.standardFunction().isExperimental())) { addPreciseIssue( tree.function(), "Remove this usage of the experimental \"" + tree.standardFunction().getName() + "\" function."); } super.visitFunction(tree); }