Interface ResourceValidator

All Known Implementing Classes:
CheckstyleValidator, ErrorProneValidator, PmdValidator

public interface ResourceValidator
Validator.
Since:
0.17
  • Method Summary

    Modifier and Type
    Method
    Description
    Name of this validator.
    int
    How many rules this validator applies to every file it reads.
    Validate and throws exception if there are any problems.
  • Method Details

    • validate

      Collection<Violation> validate(Collection<File> files)
      Validate and throws exception if there are any problems.
      Parameters:
      files - Files to validate
      Returns:
      Validation results
    • name

      String name()
      Name of this validator.
      Returns:
      Name of this validator
    • rules

      int rules()
      How many rules this validator applies to every file it reads.
      Returns:
      Number of rules, or zero when the validator cannot tell