def METHOD_NAME(self):
    linter = CustomRfLint(task=self)
    result = 0
    if self.options["list"]:
        args = self._get_args()
        linter.run(args + ["--list"])
    else:
        files = self._get_files()
        args = self._get_args()
        # the result is a count of the number of errors,
        # though I don't think the caller cares.
        result = linter.run(args + sorted(files))
    # result is the number of errors detected
    if result > 0:
        message = (
            "1 error was detected"
            if result == 1
            else "{} errors were detected".format(result)
        )
        raise CumulusCIFailure(message)