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

Function preprocess

src/packagedcode/go_mod.py:54–61  ·  view source on GitHub ↗

Return line string after removing commented portion and excess spaces.

(line)

Source from the content-addressed store, hash-verified

52
53
54def preprocess(line):
55 """
56 Return line string after removing commented portion and excess spaces.
57 """
58 if "//" in line:
59 line = line[:line.index('//')]
60 line = line.strip()
61 return line
62
63
64def parse_gomod(location):

Callers 1

parse_gomodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected