diff --git a/.checkpatch.conf b/.checkpatch.conf new file mode 100644 index 00000000..6d7ef1c0 --- /dev/null +++ b/.checkpatch.conf @@ -0,0 +1,12 @@ +--max-line-length=100 +--strict + +# Not Linux therefore don't expect a Linux tree +--no-tree + +# Ignore the following +--ignore PREFER_KERNEL_TYPES +--ignore EXECUTE_PERMISSIONS +--ignore FILE_PATH_CHANGES +--ignore NEW_TYPEDEFS +--ignore SPDX_LICENSE_TAG diff --git a/CODINGSTYLE.md b/CODINGSTYLE.md index 1c6507d8..86c2342c 100644 --- a/CODINGSTYLE.md +++ b/CODINGSTYLE.md @@ -4,8 +4,10 @@ Coding guidelines for s390-tools For s390-tools the preferred language is C. We provide libraries, e.g. [`libutil`](libutil) that should be used by all tools if possible. -The coding style is based on the Linux [kernel guidelines]. Therefore, use -the [checkpatch] tool for verification before you submit a patch. +The coding style is based on the Linux [kernel guidelines]. Therefore, use the +[checkpatch] tool for verification before you submit a patch. s390-tools +provides a CheckPatch configuration for this - see +[`.checkpatch.conf`](.checkpatch.conf). [kernel guidelines]: https://www.kernel.org/doc/html/latest/process/coding-style.html [checkpatch]: https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl