4be101000cb9179a9ee5edd1fc7e74af3a00348d,src/python/pants/rules/core/lint.py,,lint,#Any#Any#Any#,73

Before Change


    for target in targets
    if LintTarget.is_lintable(target.adaptor, union_membership=union_membership)
  )
  results = [result for results in nested_results for result in results]

  if not results:
    return Lint(exit_code=0)

After Change


) -> Lint:
  adaptors_with_origins = [
    TargetAdaptorWithOrigin.create(target_with_origin.target.adaptor, target_with_origin.origin)
    for target_with_origin in targets_with_origins
  ]
  nested_results = await MultiGet(
    Get[LintResults](LintTarget, adaptor_with_origin)
    for adaptor_with_origin in adaptors_with_origins
    if LintTarget.is_lintable(adaptor_with_origin, union_membership=union_membership)
  )
  results = list(itertools.chain.from_iterable(nested_results))

  if not results:
    return Lint(exit_code=0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 4be101000cb9179a9ee5edd1fc7e74af3a00348d
Time: 2020-02-15
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/lint.py
Class Name:
Method Name: lint


Project Name: bokeh/bokeh
Commit Name: 77f9bbd1f36cb71ce12147d58ee124993853fb96
Time: 2015-09-09
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/line_builder.py
Class Name: LineBuilder
Method Name: _setup


Project Name: hanxiao/bert-as-service
Commit Name: 5abe8b315fd6cd79594f401626a03bf137507b99
Time: 2019-01-30
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertSink
Method Name: _run