mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Provide CheckPatch configuration
Provie a CheckPatch configuration file and mention it in the coding style guidelines (this feature was introduced with CheckPatch version 0.32 ~11 years ago). Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
87e8fa18cf
commit
4ff360e621
12
.checkpatch.conf
Normal file
12
.checkpatch.conf
Normal file
@@ -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
|
||||||
@@ -4,8 +4,10 @@ Coding guidelines for s390-tools
|
|||||||
For s390-tools the preferred language is C. We provide libraries, e.g.
|
For s390-tools the preferred language is C. We provide libraries, e.g.
|
||||||
[`libutil`](libutil) that should be used by all tools if possible.
|
[`libutil`](libutil) that should be used by all tools if possible.
|
||||||
|
|
||||||
The coding style is based on the Linux [kernel guidelines]. Therefore, use
|
The coding style is based on the Linux [kernel guidelines]. Therefore, use the
|
||||||
the [checkpatch] tool for verification before you submit a patch.
|
[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
|
[kernel guidelines]: https://www.kernel.org/doc/html/latest/process/coding-style.html
|
||||||
[checkpatch]: https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl
|
[checkpatch]: https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl
|
||||||
|
|||||||
Reference in New Issue
Block a user