Commit 804302c3 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Add clang-format commit hook

parent 2c88d0f8
......@@ -28,6 +28,7 @@ include(FeatureSummary)
include(ECMInstallIcons)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDEClangFormat)
include(KDEGitCommitHooks)
add_subdirectory(services)
add_subdirectory(providers)
......@@ -37,4 +38,6 @@ add_subdirectory(plugins)
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
  • Running into problems with these changes on the Neon CI:

    00:26:44 CMake Error at CMakeLists.txt:31 (include):
    00:26:44   include could not find load file:
    00:26:44 
    00:26:44     KDEGitCommitHooks
    00:26:44 
    00:26:44 

    Full log

    @nicolasfella are there any prerequisites that need to be changed in the CI for building?

  • Can confirm, those changes worked in the Neon CI. :)

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment