705a3dcb90454c2d6ab2a857ac0b88dff2ef0bab,src/python/pants/core/goals/lint.py,,lint,#Any#Any#Any#Any#Any#,134

Before Change


                f"{linters_with_multiple_reports}. The option `--lint-reports-dir` only works if "
                f"each linter has a single result. {suggestion}"
            )
        reports = itertools.chain.from_iterable(linter_to_reports.values())
        merged_reports = await Get(Digest, MergeDigests(report.digest for report in reports))
        workspace.write_digest(merged_reports, path_prefix=lint_subsystem.reports_dir)
        logger.info(f"Wrote lint result files to {lint_subsystem.reports_dir}.")

After Change



    all_results = tuple(sorted(all_results, key=lambda results: results.linter_name))

    reports = list(itertools.chain.from_iterable(results.reports for results in all_results))
    if reports:
        // TODO(/�): Tolerate when a linter has multiple reports.
        linters_with_multiple_reports = [
            results.linter_name for results in all_results if len(results.reports) > 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 705a3dcb90454c2d6ab2a857ac0b88dff2ef0bab
Time: 2020-08-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/goals/lint.py
Class Name:
Method Name: lint


Project Name: ilastik/ilastik
Commit Name: 6096d22cbd933b764c8bf3197fe1f8e8722308c6
Time: 2016-10-25
Author: jimmycc80@hotmail.com
File Name: ilastik/applets/objectExtraction/opObjectExtraction.py
Class Name: OpAdaptTimeListRoi
Method Name: execute


Project Name: tensorflow/datasets
Commit Name: 41f1eda45f6a55b792c66314c3c82118afe1ea02
Time: 2019-10-24
Author: epot@google.com
File Name: setup.py
Class Name:
Method Name: