MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / check_is_path_community_file

Function check_is_path_community_file

src/summarycode/classify.py:144–150  ·  view source on GitHub ↗

Return True if the file at `path` is a community file.

(path)

Source from the content-addressed store, hash-verified

142
143
144def check_is_path_community_file(path):
145 """
146 Return True if the file at `path` is a community file.
147 """
148 name = file_name(path, force_posix=True)
149 base_name = file_base_name(path, force_posix=True)
150 return check_is_community_file(name) or check_is_community_file(base_name)
151
152
153def check_resource_name_start_and_end(resource, STARTS_ENDS):

Callers 1

Calls 3

file_nameFunction · 0.90
file_base_nameFunction · 0.90
check_is_community_fileFunction · 0.85

Tested by

no test coverage detected