ad9f8480c8e08b95d6c217ec4a126bd93b7f376a,tests/python/pants_test/backend/jvm/tasks/test_scalastyle.py,ScalastyleTest,_create_context,#ScalastyleTest#Any#Any#Any#,65

Before Change


    if scalastyle_config:
      options["config"] = scalastyle_config
    if excludes:
      options["excludes"] = excludes

    return self.context(
      options={

After Change


  def _create_context(self, scalastyle_config=None, excludes=None, target_roots=None):
    // If config is not specified, then we override pants.ini scalastyle such that
    // we have a default scalastyle config xml but with empty excludes.
    self.set_options(skip=False, config=scalastyle_config, excludes=excludes)
    return self.context(target_roots=target_roots)

  def _create_scalastyle_task(self, scalastyle_config):
    return self.prepare_execute(self._create_context(scalastyle_config))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_scalastyle.py
Class Name: ScalastyleTest
Method Name: _create_context


Project Name: pantsbuild/pants
Commit Name: d71c53e4ef8c779d08afe546adb820618335f5f1
Time: 2015-02-27
Author: benjyw@gmail.com
File Name: tests/python/pants_test/tasks/test_jar_publish.py
Class Name: JarPublishTest
Method Name: test_publish_retry_works


Project Name: pantsbuild/pants
Commit Name: d71c53e4ef8c779d08afe546adb820618335f5f1
Time: 2015-02-27
Author: benjyw@gmail.com
File Name: tests/python/pants_test/tasks/test_jar_publish.py
Class Name: JarPublishTest
Method Name: test_publish_retry_eventually_fails