Class ImportForbiddenGrader

Direct Known Subclasses:
ImportBlocklistedGrader, ImportDisallowedGrader

public abstract class ImportForbiddenGrader extends SyntaxCheckGrader
Abstract superclass of graders that check whether there are any imports of packages that are not allowed.
  • Constructor Details

    • ImportForbiddenGrader

      protected ImportForbiddenGrader(String name, double maxScore)
      Creates an import grader that tests whether there are any imports involving blocklisted (forbidden) packages.
      Parameters:
      name - the name of this checker
      maxScore - the number of points to award if none are included
  • Method Details