Add C/C++ support for safe first-pass rules - #26
Merged
Conversation
Introduce a Go-hosted cpp implementation that enforces header, file length, indentation, and GitHub Actions pinning without relying on brittle C/C++ function parsing. Mark function-shape and casing rules as planned, and add conformance fixtures plus unit tests.
Treat VET001/006/007/010–013 as implementation:unimplemented for cpp (not planned), reject those CLI flags, warn on config non-defaults, and document the subset runner. Harden the line scanner for BOM and raw-string boundaries so the simple rule set stays trustworthy.
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.
Summary
cppto the shared rule contract with compatibility and implementation status for every rule.implementations/cppthat enforces VET002–VET005, VET008–VET009, and VET014.Test plan
go test ./implementations/cpp/...go test ./implementations/go/...spec/conformance/{indent,source-file-header,source-file-lines}/cpp