MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / get_comment_style

Function get_comment_style

scripts/update_license_headers.py:165–169  ·  view source on GitHub ↗

Return the comment prefix for a file, or None if unsupported.

(path: Path)

Source from the content-addressed store, hash-verified

163
164
165def get_comment_style(path: Path) -> str | None:
166 """Return the comment prefix for a file, or None if unsupported."""
167 if is_dockerfile(path):
168 return "#"
169 return COMMENT_STYLES.get(path.suffix)
170
171
172def discover_files(root: Path) -> list[Path]:

Callers 3

discover_filesFunction · 0.85
process_fileFunction · 0.85
mainFunction · 0.85

Calls 2

is_dockerfileFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected