Conversation
This redesigns the pre-commit hook drawing on patterns. The hook now blocks commits from VMs while explicitly allowing containers, and all code-quality checks operate on staged content rather than the working tree. Change-Id: I39883a6f85746e22037fa2b71644c1ff3468e21e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This redesigns the pre-commit hook drawing on patterns. The hook now blocks commits from VMs while explicitly allowing containers, and all code-quality checks operate on staged content rather than the working tree.
Change-Id: I39883a6f85746e22037fa2b71644c1ff3468e21e
Summary by cubic
Reworks the pre-commit hook to enforce a virtualization gate (blocks VMs, allows containers) and run all checks against staged content. Tightens C/C++ style to
clang-format-20, adds banned-function scanning on added lines, and improves feedback.New Features
clang-format-20,cppcheck, andshfmton staged files only.clang-format-20; rejects other versions ofclang-format.gets,sprintf/vsprintf,strcpy/stpcpy, andstrcat.Migration
clang-format-20,cppcheck, andshfmt.clang-format -i <file>andshfmt -w <file>.Written for commit 0000492. Summary will update on new commits.