* Prints instructions for how to auto-fix errors.
()
| 77 | * Prints instructions for how to auto-fix errors. |
| 78 | */ |
| 79 | function 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. |
no test coverage detected