mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix some make checkcodebase errors
- Reorder checkpatch ignore flags alphabetically - Fix checkpatch WARNINGs and CHECKs when they make sense - Add more checkpatch ignores
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
# There's no BIT macro
|
||||
--ignore BIT_MACRO
|
||||
|
||||
# Don't complain when bools are used in structs
|
||||
--ignore BOOL_MEMBER
|
||||
|
||||
# Allow CamelCase
|
||||
--ignore CAMELCASE
|
||||
|
||||
@@ -40,12 +43,19 @@
|
||||
# Don't complain about structs not being const
|
||||
--ignore CONST_STRUCT
|
||||
|
||||
# Don't complain about printing "warning:" without the function name, as warning
|
||||
# printing is relevant to the code being parsed, not RGBDS' code
|
||||
--ignore EMBEDDED_FUNCTION_NAME
|
||||
|
||||
# Do not check the format of commit messages
|
||||
--ignore GIT_COMMIT_ID
|
||||
|
||||
# Do not check for global initializers (this is specific to the kernel)
|
||||
--ignore GLOBAL_INITIALISERS
|
||||
|
||||
# Don't complain about initializing statics (this is specific to the kernel)
|
||||
--ignore INITIALISED_STATIC
|
||||
|
||||
# We don't have a MAINTAINERS file, don't complain about it.
|
||||
--ignore FILE_PATH_CHANGES
|
||||
|
||||
@@ -56,9 +66,15 @@
|
||||
# have a really long line that can be found with grep.
|
||||
--ignore LONG_LINE_STRING
|
||||
|
||||
# Don't complain when files are modified in 'include/asm'
|
||||
--ignore MODIFIED_INCLUDE_ASM
|
||||
|
||||
# Allow new typedefs
|
||||
--ignore NEW_TYPEDEFS
|
||||
|
||||
# We allow lines ending with parentheses for the usage prints
|
||||
--ignore OPEN_ENDED_LINE
|
||||
|
||||
# Prefer stdint.h types over kernel types
|
||||
--ignore PREFER_KERNEL_TYPES
|
||||
|
||||
@@ -67,12 +83,3 @@
|
||||
|
||||
# Parentheses can make the code clearer
|
||||
--ignore UNNECESSARY_PARENTHESES
|
||||
|
||||
# Don't complain when files are modified in 'include/asm'
|
||||
--ignore MODIFIED_INCLUDE_ASM
|
||||
|
||||
# Don't complain when bools are used in structs
|
||||
--ignore BOOL_MEMBER
|
||||
|
||||
# Don't complain about initializing statics (this is specific to the kernel)
|
||||
--ignore INITIALISED_STATIC
|
||||
|
||||
Reference in New Issue
Block a user