devtools: clarify that lines up to 100 characters are ok
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 20 Oct 2021 14:26:01 +0000 (15:26 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Nov 2021 10:51:24 +0000 (11:51 +0100)
commit8f86ffa6314b4daa6bd595d9a1bf8a31bcca5ba8
treebd49a2f947cbaec3e3c0adec98f40fc3f4ade821
parent872c6a28075ccae66a31affef7ae3c5e9811affc
devtools: clarify that lines up to 100 characters are ok

Since we allow line lengths of up to 100, and the CI checkpatches job
only check for that amount, the rest of our tooling and docs should
reflect this reality. Therefore we can:

* adjust the editorconfig to use that value, to save editors (e.g. vim)
  from automatically wrapping lines at 80 characters when typing.
  [Since python checkers all seem to expect 79 character lines max, add
  for python only a 79-char max line length.]

* change the default line length setting in checkpatches script to 100
  so as it matches CI and pre-merge checks.

* update the docs to clarify that while 80 chars is recommended, up to
  100 characters is acceptable.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Conor Walsh <conor.walsh@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
.editorconfig
devtools/checkpatches.sh
doc/guides/contributing/coding_style.rst