Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-05-27 | Provide fallback error when no .clang-format file is present | Andreas Cord-Landwehr | |
This check fixes a probably rare case, where we land in a repository that contains this clang-format.sh hook but where the format file went missing. In such cases, clang-format falls back to the system defaults, which brings undesired defaults, e.g. enforced line breaks in comments after 90 chars, which cannot easily be reverted by a reformat. Since clang-format's --fallback-style=none option is not available for git clang-format, this comment reimplements the logic. | |||
2021-01-16 | Add cmake function to configure git pre-commit hooks | Alexander Lohnau | |
This will allow us to force QS checks before the developer commits a change. Currently only clang-format is supported, but as on #plasma and https://phabricator.kde.org/T11214 discussed we might want to add different formatters. By making the checks configurable we are flexible and can easily extend it. |