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)
| 2930 | |
| 2931 | |
| 2932 | def _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 | # --------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected