Skip to content

Update clang-format's pre-commit hook's minimum version to 16#75

Merged
DanielaOrtner merged 1 commit into
RebelToolbox:mainfrom
madmiraal:clang-format-16
Jun 9, 2024
Merged

Update clang-format's pre-commit hook's minimum version to 16#75
DanielaOrtner merged 1 commit into
RebelToolbox:mainfrom
madmiraal:clang-format-16

Conversation

@madmiraal
Copy link
Copy Markdown
Contributor

In #19, we used clang-format to apply Rebel's coding style. Our git hooks help contributors to automatically apply Rebel's coding style. Currently, the pre-commit-clang-format hook checks the version of clang-format installed and warns if it is not between versions 14 and 17. However, Rebel's coding style uses clang-format functionality added in version 16, which was released in March 2023. So, if the contributor is using an earlier version of clang-format, clang-format will fail.

This PR updates the minimum version required to 16. It will also cause the pre-commit hook to fail, which prevents earlier versions of clang-format failing and deleting files. It also warns if the version doesn't match the version used by CI checks: currently 17, which was released in September 2023 and includes fixes present in version 16.

@madmiraal madmiraal added the PR Type: Maintenance Your current game will be updated. label Jun 8, 2024
@DanielaOrtner DanielaOrtner self-requested a review June 9, 2024 05:56
Copy link
Copy Markdown
Contributor

@DanielaOrtner DanielaOrtner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Keep it coming.

@DanielaOrtner DanielaOrtner merged commit b6d893c into RebelToolbox:main Jun 9, 2024
@madmiraal madmiraal deleted the clang-format-16 branch June 13, 2024 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR Type: Maintenance Your current game will be updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants