doc: add codespell config in contributing guide
authorKevin Traynor <ktraynor@redhat.com>
Wed, 20 Nov 2019 13:27:13 +0000 (13:27 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 28 Nov 2019 00:10:44 +0000 (01:10 +0100)
Document the config to use codespell with checkpatches.sh.

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
doc/guides/contributing/patches.rst

index 2140303..2359328 100644 (file)
@@ -407,8 +407,17 @@ This uses the Linux kernel development tool ``checkpatch.pl`` which  can be obta
 updating the Linux kernel sources.
 
 The path to the original Linux script must be set in the environment variable ``DPDK_CHECKPATCH_PATH``.
-This, and any other configuration variables required by the development tools, are loaded from the following
-files, in order of preference::
+
+Spell checking of commonly misspelled words
+can be enabled by downloading the codespell dictionary::
+
+   https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary.txt
+
+The path to the downloaded ``dictionary.txt`` must be set
+in the environment variable ``DPDK_CHECKPATCH_CODESPELL``.
+
+Environment variables required by the development tools,
+are loaded from the following files, in order of preference::
 
    .develconfig
    ~/.config/dpdk/devel.config