4ef7fdb8e7abc6ff952772c6b7a2f81d7a336af6,src/python/pants/backend/jvm/tasks/scalastyle.py,Scalastyle,execute,#Scalastyle#,68

Before Change


      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,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 4ef7fdb8e7abc6ff952772c6b7a2f81d7a336af6
Time: 2014-10-15
Author: jinfeng@outlook.com
File Name: src/python/pants/backend/jvm/tasks/scalastyle.py
Class Name: Scalastyle
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: af30bb8ac7985fc934a4c9b9d2d6e8b213506cee
Time: 2015-08-14
Author: nhoward@twopensource.com
File Name: src/python/pants/backend/jvm/tasks/benchmark_run.py
Class Name: BenchmarkRun
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: aaeddcbaafcbd5bd517b87143284d15fa9db9fe5
Time: 2016-04-04
Author: wisechengyi@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/jvm_classpath_publisher.py
Class Name: RuntimeClasspathPublisher
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: c035b20ae104e2a81fc676af271505eb5385c928
Time: 2017-03-23
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks2/python_execution_task_base.py
Class Name: PythonExecutionTaskBase
Method Name: create_pex


Project Name: pantsbuild/pants
Commit Name: deb2f3180a4446080087d589b24d6a66b60ed033
Time: 2014-10-08
Author: dturner@twopensource.com
File Name: tests/python/pants_test/tasks/test_jvmdoc_gen.py
Class Name: JvmdocGenTest
Method Name: setUp