blob: 0eea2d059b82ffd51129dc6d122612b65b6b6150 [file] [log] [blame]
Keir Mierlec34f71f2019-12-06 12:44:47 -08001.. default-domain:: cpp
2
3.. highlight:: sh
4
Alexei Frolovb3f7fda2020-03-18 14:59:20 -07005.. _chapter-module:
6
Keir Mierlec34f71f2019-12-06 12:44:47 -08007---------
8pw_module
9---------
Alexei Frolovb3f7fda2020-03-18 14:59:20 -070010The ``pw_module`` module contains tools for managing Pigweed modules.
11For information on the structure of a Pigweed module, refer to
12:ref:`chapter-module-guide`
Keir Mierlec34f71f2019-12-06 12:44:47 -080013
Alexei Frolovb3f7fda2020-03-18 14:59:20 -070014Commands
15--------
Keir Mierlec34f71f2019-12-06 12:44:47 -080016
Alexei Frolovb3f7fda2020-03-18 14:59:20 -070017.. _chapter-module-module-check:
Keir Mierlec34f71f2019-12-06 12:44:47 -080018
Alexei Frolovb3f7fda2020-03-18 14:59:20 -070019``pw module-check``
20^^^^^^^^^^^^^^^^^^^
Keir Mierlec34f71f2019-12-06 12:44:47 -080021The ``pw module-check`` command exists to ensure that your module conforms to
22the Pigweed module norms.
23
24For example, at time of writing ``pw module-check pw_module`` is not passing
25its 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