blob: ec564eb7a39a2d93bcce41dac57f017870fcf7e1 [file] [log] [blame]
Wyatt Heplerf9fb90f2020-09-30 18:59:33 -07001.. _module-pw_module:
Alexei Frolovb3f7fda2020-03-18 14:59:20 -07002
Keir Mierlec34f71f2019-12-06 12:44:47 -08003---------
4pw_module
5---------
Alexei Frolovb3f7fda2020-03-18 14:59:20 -07006The ``pw_module`` module contains tools for managing Pigweed modules.
7For information on the structure of a Pigweed module, refer to
Wyatt Heplerf9fb90f2020-09-30 18:59:33 -07008:ref:`docs-module-guides`.
Keir Mierlec34f71f2019-12-06 12:44:47 -08009
Alexei Frolovb3f7fda2020-03-18 14:59:20 -070010Commands
11--------
Keir Mierlec34f71f2019-12-06 12:44:47 -080012
Wyatt Heplerf9fb90f2020-09-30 18:59:33 -070013.. _module-pw_module-module-check:
Keir Mierlec34f71f2019-12-06 12:44:47 -080014
Alexei Frolovb3f7fda2020-03-18 14:59:20 -070015``pw module-check``
16^^^^^^^^^^^^^^^^^^^
Keir Mierlec34f71f2019-12-06 12:44:47 -080017The ``pw module-check`` command exists to ensure that your module conforms to
18the Pigweed module norms.
19
20For example, at time of writing ``pw module-check pw_module`` is not passing
21its own lint:
22
23.. code-block:: none
24
25 $ pw module-check pw_module
26
27 ▒█████▄ █▓ ▄███▒ ▒█ ▒█ ░▓████▒ ░▓████▒ ▒▓████▄
28 ▒█░ █░ ░█▒ ██▒ ▀█▒ ▒█░ ▒█ ▒█ ▒█ ▒█ ▀█▌
29 ▒█▄▄▄█░ ░█▒ █▓░ ▄▄░ ▒█░ ▒█ ▒███ ▒███ ░█ █▌
30 ▒█▀ ░█░ ▓█ █▓ ░█░ ▒█ ▒█ ▒█ ░█ ▄█▌
31 ▒█ ░█░ ░▓███▀ ▒█▓▀▓█░ ░▓████▒ ░▓████▒ ▒▓████▀
32
33 20191205 17:05:19 INF Checking module: pw_module
34 20191205 17:05:19 ERR PWCK005: Missing ReST documentation; need at least e.g. "docs.rst"
35 20191205 17:05:19 ERR FAIL: Found errors when checking module pw_module
36
37