MCPcopy
hub / github.com/ampproject/amphtml / printFixMessages

Function printFixMessages

build-system/tasks/prettify.js:79–103  ·  view source on GitHub ↗

* Prints instructions for how to auto-fix errors.

()

Source from the content-addressed store, hash-verified

77 * Prints instructions for how to auto-fix errors.
78 */
79function printFixMessages() {
80 log(
81 yellow('NOTE 1:'),
82 "If you are using GitHub's web-UI to edit files,",
83 'copy the suggested fixes printed above into your PR.'
84 );
85 log(
86 yellow('NOTE 2:'),
87 'If you are using the git command-line workflow, run',
88 cyan('amp prettify --local_changes --fix'),
89 'from your local branch.'
90 );
91 log(
92 yellow('NOTE 3:'),
93 'Since this is a destructive operation (that edits your files',
94 'in-place), make sure you commit before running the command.'
95 );
96 log(
97 yellow('NOTE 4:'),
98 'For more information, read',
99 cyan(
100 'https://github.com/ampproject/amphtml/blob/main/docs/getting-started-e2e.md#code-quality-and-style\n'
101 )
102 );
103}
104
105/**
106 * Prettifies on the given list of files.

Callers 1

runPrettifyFunction · 0.85

Calls 3

yellowFunction · 0.85
cyanFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected