summaryrefslogtreecommitdiff
path: root/util/lint/lint-007-checkpatch
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-02-27 19:57:23 +0100
committerMartin Roth <martinroth@google.com>2019-06-13 20:14:00 +0000
commit7945f7541717f07c038a0fa4c38130bb1128e2d8 (patch)
tree5b9b56f180dfe777589ae53079839ed7e4cc3ad5 /util/lint/lint-007-checkpatch
parent27ca9620581920aaaf3a657553bce0e42477523f (diff)
downloadcoreboot-7945f7541717f07c038a0fa4c38130bb1128e2d8.tar.xz
lint/clang-format: set to 96 chars per line
coreboot has decided to go with 96 characters per line. Original Signed-off-by: Patrick Georgi <pgeorgi@google.com> Original Reviewed-on: https://review.coreboot.org/c/coreboot/+/31651 Change-Id: I9c99e5cca6548e23cf755dc37193ff2aa669ac10 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33405 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'util/lint/lint-007-checkpatch')
-rwxr-xr-xutil/lint/lint-007-checkpatch6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/lint/lint-007-checkpatch b/util/lint/lint-007-checkpatch
index afa593e3b0..a7b63e8d7c 100755
--- a/util/lint/lint-007-checkpatch
+++ b/util/lint/lint-007-checkpatch
@@ -28,6 +28,8 @@ EXCLUDED_DIRS="^payloads/libpayload/util/kconfig\|\
^src/vendorcode\|\
^Documentation"
+opts="--max-line-length 96"
+
# default: test src and util
if [ "$1" = "" ]; then
INCLUDED_DIRS="src util"
@@ -35,7 +37,7 @@ if [ "$1" = "" ]; then
elif [ "$1" = "diff" ]; then
args=$( echo $EXCLUDED_DIRS | \
sed -e 's,\\|, ,g' -e 's,\^,--exclude=,g' )
- util/lint/checkpatch.pl --quiet --no-signoff $args -
+ util/lint/checkpatch.pl --quiet --no-signoff $opts $args -
exit $?
# Space separated list of directories to test
else
@@ -49,5 +51,5 @@ FILELIST=$( git ls-files $INCLUDED_DIRS | \
grep -v $EXCLUDED_DIRS )
for FILE in $FILELIST; do
- util/lint/checkpatch.pl --show-types --file --quiet "$FILE"
+ util/lint/checkpatch.pl --show-types --file --quiet $opts "$FILE"
done