/** * Update markers list for the specified file * * @param file the file for which markers are to be updated * @param context a PMD context * @param fTask indicate if a task marker should be created * @param accumulator a map that contains impacted file and marker informations */ private int maxAllowableViolationsFor(Rule rule) { return rule.hasDescriptor(PMDRuntimeConstants.MAX_VIOLATIONS_DESCRIPTOR) ? rule.getProperty(PMDRuntimeConstants.MAX_VIOLATIONS_DESCRIPTOR) : PMDRuntimeConstants.MAX_VIOLATIONS_DESCRIPTOR.defaultValue(); }