return
check_targets = list()
targets = self.context.targets()
for target in targets:
for tgt in target.resolve():
if isinstance(tgt, Target) and tgt.has_sources(".scala"):
check_targets.append(tgt)
After Change
self.context.log.info("Skipping scalastyle.")
return
targets = self._get_non_synthetic_scala_targets(self.context.targets())
self.context.log.debug("Non synthetic scala targets to be checked:")
for target in targets:
self.context.log.debug(" {address_spec}".format(address_spec=target.address.spec))
scala_sources = self._get_non_excluded_scala_sources(targets)
self.context.log.debug("Non excluded scala sources to be checked:")
for source in scala_sources:
self.context.log.debug(" {source}".format(source=source))
if scala_sources:
def call(srcs):
cp = self.tool_classpath(self._scalastyle_bootstrap_key)
return self.runjava(classpath=cp,