Skip to content

Commit da02e76

Browse files
committed
Fix lint error codes C0103 and C0305
1 parent 4c47526 commit da02e76

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cmake/BuildType.cmake

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Set a default build type if none was specified
2-
set(default_build_type "Release")
2+
set(DEFAULT_BUILD_TYPE "Release")
33
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
4-
set(default_build_type "Debug")
4+
set(DEFAULT_BUILD_TYPE "Debug")
55
endif()
66

77
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
8-
message(
9-
STATUS
10-
"Setting build type to '${default_build_type}' as none was specified."
11-
)
8+
message(STATUS "Setting build type to '${DEFAULT_BUILD_TYPE}' as none
9+
was specified.")
10+
1211
set(CMAKE_BUILD_TYPE
13-
${default_build_type}
12+
${DEFAULT_BUILD_TYPE}
1413
CACHE STRING "Choose the type of build." FORCE)
1514
endif()

cmake/format/run-cmake-lint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ cmake-lint \
66
${CMAKE_FILES} \
77
--config-files \
88
${CXX_DEV_TOOLS_PATH}/cmake/format/.cmake-format.json \
9-
${CXX_DEV_TOOLS_PATH}/cmake/format/.esp-idf-cmake-format.json
9+
${CXX_DEV_TOOLS_PATH}/cmake/format/.esp-idf-cmake-format.json \
10+
--max-statement-spacing 2

0 commit comments

Comments
 (0)