This is a channel focused on ScanCode support and not as noisy as the main discuss channel
there have been quite a few changes since 3.2.1rc2:
https://github.com/nexB/scancode-toolkit/compare/v3.2.1rc2...develop
like over 1000 commits
Showing 25,888 changed files with 281,590 additions and 385,844 deletions.
@balakrishna-mukundaraj May I suggest that you review the changes in one plugin such as:
https://github.com/nexB/scancode-toolkit/blob/develop/src/formattedcode/output_json.py
and
https://github.com/nexB/scancode-toolkit/blob/v3.2.1rc2/src/formattedcode/output_json.py
@balakrishna-mukundaraj that said the key change seems to be
@output_impl
class JsonPrettyOutput(OutputPlugin):
options = [
CommandLineOption(('--json-pp', 'output_json_pp',),
type=FileOptionType(mode=mode, lazy=True),
metavar='FILE',
help='Write scan output as pretty-printed JSON to FILE.',
help_group=OUTPUT_GROUP,
sort_order=10),
]
which becomes now:
@output_impl
class JsonPrettyOutput(OutputPlugin):
options = [
PluggableCommandLineOption(('--json-pp', 'output_json_pp',),
type=FileOptionType(mode='w', encoding='utf-8', lazy=True),
metavar='FILE',
help='Write scan output as pretty-printed JSON to FILE.',
help_group=OUTPUT_GROUP,
sort_order=10),
]
@guddutopper yes and no.
So the --package option will detect the packages and report dependencies (say in a pom.xml). So you will get the list in this way, at elast the list of direct dependencies.
It will not (yet) resolve nor fetch the dependencies tree to analyze them.
They would have to be in the scanned dir to be analyzed.
They would likely need to be extracted first with extractcode too, at least for now.
scancode --package -n4
and no -cl yet?