MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _is_vendored_path

Function _is_vendored_path

scripts/code_verify_rules.py:2932–2938  ·  view source on GitHub ↗

True when @p path points to a vendored / upstream-prose file. The check is path-based because vendored files don't carry a uniform marker in their text -- some have an SPDX banner, some have a license comment, some have neither.

(path: Path)

Source from the content-addressed store, hash-verified

2930
2931
2932def _is_vendored_path(path: Path) -> bool:
2933 """True when @p path points to a vendored / upstream-prose file. The
2934 check is path-based because vendored files don't carry a uniform marker
2935 in their text -- some have an SPDX banner, some have a license comment,
2936 some have neither."""
2937 s = str(path)
2938 return any(hint in s for hint in _NARRATION_VENDORED_PATH_HINTS)
2939
2940
2941# ---------------------------------------------------------------------------

Callers 3

_stdio_findingsFunction · 0.85
_trailing_doxy_findingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected