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

Method is_datafile

src/packagedcode/npm.py:990–991  ·  view source on GitHub ↗
(cls, location, filetypes=tuple())

Source from the content-addressed store, hash-verified

988
989 @classmethod
990 def is_datafile(cls, location, filetypes=tuple()):
991 return super().is_datafile(location, filetypes=filetypes) and not is_yarn_v2(location)
992
993 @classmethod
994 def parse(cls, location, package_only=False):

Callers

nothing calls this directly

Calls 2

is_yarn_v2Function · 0.85
is_datafileMethod · 0.45

Tested by

no test coverage detected