

def execute(self):
    if self.get_options().skip:
        return
    targets = self.context.targets(self._is_checked)
    with self.invalidated(vt) as invalidation_check:
        invalid_targets = [vt.target for vt in invalidation_check.invalid_vts]
        sources = self.calculate_sources(invalid_targets)
        if sources:
            result = self.checkstyle(invalid_targets, sources)
            if (result != 0):
                raise TaskError('java {main} ... exited non-zero ({result})'.format(main=self._CHECKSTYLE_MAIN, result=result))

dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/jvm/tasks/checkstyle.py Checkstyle.execute/VarMisuse@42/48 `targets`->`vt`