MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / write_yaml

Function write_yaml

src/formattedcode/output_yaml.py:46–51  ·  view source on GitHub ↗

Write `results` to the `output_file` opened file-like object.

(results, output_file, **kwargs)

Source from the content-addressed store, hash-verified

44
45
46def write_yaml(results, output_file, **kwargs):
47 """
48 Write `results` to the `output_file` opened file-like object.
49 """
50 output_file.write(saneyaml.dump(results, indent=4))
51 output_file.write('\n')

Callers 1

process_codebaseMethod · 0.85

Calls 2

writeMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected