Keir Mierle | c34f71f | 2019-12-06 12:44:47 -0800 | [diff] [blame] | 1 | .. default-domain:: cpp |
| 2 | |
| 3 | .. highlight:: sh |
| 4 | |
Alexei Frolov | b3f7fda | 2020-03-18 14:59:20 -0700 | [diff] [blame] | 5 | .. _chapter-module: |
| 6 | |
Keir Mierle | c34f71f | 2019-12-06 12:44:47 -0800 | [diff] [blame] | 7 | --------- |
| 8 | pw_module |
| 9 | --------- |
Alexei Frolov | b3f7fda | 2020-03-18 14:59:20 -0700 | [diff] [blame] | 10 | The ``pw_module`` module contains tools for managing Pigweed modules. |
| 11 | For information on the structure of a Pigweed module, refer to |
| 12 | :ref:`chapter-module-guide` |
Keir Mierle | c34f71f | 2019-12-06 12:44:47 -0800 | [diff] [blame] | 13 | |
Alexei Frolov | b3f7fda | 2020-03-18 14:59:20 -0700 | [diff] [blame] | 14 | Commands |
| 15 | -------- |
Keir Mierle | c34f71f | 2019-12-06 12:44:47 -0800 | [diff] [blame] | 16 | |
Alexei Frolov | b3f7fda | 2020-03-18 14:59:20 -0700 | [diff] [blame] | 17 | .. _chapter-module-module-check: |
Keir Mierle | c34f71f | 2019-12-06 12:44:47 -0800 | [diff] [blame] | 18 | |
Alexei Frolov | b3f7fda | 2020-03-18 14:59:20 -0700 | [diff] [blame] | 19 | ``pw module-check`` |
| 20 | ^^^^^^^^^^^^^^^^^^^ |
Keir Mierle | c34f71f | 2019-12-06 12:44:47 -0800 | [diff] [blame] | 21 | The ``pw module-check`` command exists to ensure that your module conforms to |
| 22 | the Pigweed module norms. |
| 23 | |
| 24 | For example, at time of writing ``pw module-check pw_module`` is not passing |
| 25 | its own lint: |
| 26 | |
| 27 | .. code-block:: none |
| 28 | |
| 29 | $ pw module-check pw_module |
| 30 | |
| 31 | ▒█████▄ █▓ ▄███▒ ▒█ ▒█ ░▓████▒ ░▓████▒ ▒▓████▄ |
| 32 | ▒█░ █░ ░█▒ ██▒ ▀█▒ ▒█░ █ ▒█ ▒█ ▀ ▒█ ▀ ▒█ ▀█▌ |
| 33 | ▒█▄▄▄█░ ░█▒ █▓░ ▄▄░ ▒█░ █ ▒█ ▒███ ▒███ ░█ █▌ |
| 34 | ▒█▀ ░█░ ▓█ █▓ ░█░ █ ▒█ ▒█ ▄ ▒█ ▄ ░█ ▄█▌ |
| 35 | ▒█ ░█░ ░▓███▀ ▒█▓▀▓█░ ░▓████▒ ░▓████▒ ▒▓████▀ |
| 36 | |
| 37 | 20191205 17:05:19 INF Checking module: pw_module |
| 38 | 20191205 17:05:19 ERR PWCK005: Missing ReST documentation; need at least e.g. "docs.rst" |
| 39 | 20191205 17:05:19 ERR FAIL: Found errors when checking module pw_module |
| 40 | |
| 41 | |