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

Class ApkBuildFixer

src/packagedcode/alpine.py:632–641  ·  view source on GitHub ↗

Represent an APKBUILD syntax fix: ``if_these_strings_are_present`` in ``text``, call ``function(text, *args)`` that returns ``text``.

Source from the content-addressed store, hash-verified

630
631@attr.s
632class ApkBuildFixer:
633 """
634 Represent an APKBUILD syntax fix:
635
636 ``if_these_strings_are_present`` in ``text``, call ``function(text, *args)``
637 that returns ``text``.
638 """
639 if_these_strings_are_present = attr.ib(default=tuple())
640 function = attr.ib(default=replace_fix)
641 args = attr.ib(default=tuple())
642
643
644def fix_apkbuild(text):

Callers 1

fix_apkbuildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected