765fe64b6e96c365aaee4867c5a8381a883c5bc6,src/python/pants/core/goals/fmt.py,,fmt,#Any#Any#Any#Any#Any#,131
Before Change
merged_formatted_digest = await Get(Digest, MergeDigests(changed_digests))
workspace.write_digest(merged_formatted_digest)
sorted_results = sorted(individual_results, key=lambda res: res.formatter_name)
for result in sorted_results:
console.print_stderr(
f"{console.green("✓")} {result.formatter_name} made no changes."
if not result.did_change
else f"{console.red("𐄂")} {result.formatter_name} made changes."
)
if result.stdout:
console.print_stderr(result.stdout)
if result.stderr:
console.print_stderr(result.stderr)
if result != sorted_results[-1]:
console.print_stderr("")
// Since the rules to produce FmtResult should use ExecuteRequest, rather than
After Change
for result in individual_results:
formatter_to_results[result.formatter_name].add(result)
for formatter, results in sorted(formatter_to_results.items()):
if any(result.did_change for result in results):
sigil = console.red("𐄂")
status = "made changes"
elif all(result.skipped for result in results):
sigil = console.yellow("-")
status = "skipped"
else:
sigil = console.green("✓")
status = "made no changes"
console.print_stderr(f"{sigil} {formatter} {status}.")
// Since the rules to produce FmtResult should use ExecuteRequest, rather than
// FallibleProcess, we assume that there were no failures.
return Fmt(exit_code=0)
def rules():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances
Project Name: pantsbuild/pants
Commit Name: 765fe64b6e96c365aaee4867c5a8381a883c5bc6
Time: 2020-08-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/goals/fmt.py
Class Name:
Method Name: fmt
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: pantsbuild/pants
Commit Name: 88072c9b78824a5f78cf62399246eecdc360a33c
Time: 2020-08-19
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/goals/typecheck.py
Class Name:
Method Name: typecheck