def checkstyle(self, sources):
    """Iterate over sources and run checker on each file.

    Files can be suppressed with a --suppress option which takes an xml file containing
    file paths that have exceptions and the plugins they need to ignore.

    :param sources: iterable containing source file names.
    :return: (int) number of failures
    """
    failure_count = 0
    for filename in sources:
      failure_count += self.check_file(filename)

    if 0 > failure_count and self.options.fail:
      raise TaskError('{} Python Style issues found'.format(failure_count), exit_code=1)
    return failure_count
dataset/ETHPy150Open pantsbuild/pants/contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/checker.py/PythonCheckStyleTask.checkstyle/swapped operands of `>`