{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "stack": "cpp",
  "description": "C and C++ test gap rules. Headers and sources are both source; tests carry a _test or Test suffix or live under a test directory.",
  "sourceExtensions": [".c", ".h", ".cc", ".cpp", ".cxx", ".hpp", ".hh", ".hxx"],
  "testPathSuffixes": ["_test.cpp", "_test.cc", "_test.c", "Test.cpp", "Tests.cpp", "Test.cc"],
  "testPathContains": ["/test/", "/tests/", "/unittests/"],
  "excludePathGlobs": [
    "build/",
    "cmake-build-debug/",
    "cmake-build-release/",
    "third_party/",
    "vendor/",
    "external/",
    "*.pb.cc",
    "*.pb.h"
  ],
  "publicApiPatterns": [
    {
      "id": "class",
      "regex": "\\b(?:class|struct)\\s+([A-Z][A-Za-z0-9_]*)\\s*(?:final\\s*)?(?::[^;{]*)?\\{"
    }
  ],
  "hint": "Cover each class with a test that includes its header. A free function is covered through the public entry point that calls it."
}
