aboutcode-org / aboutcode-org/scancode-toolkit

`detected_vcs_repo` attribute for Resource

Open
#1,642 2 comments 0 reactions 0 assignees View on GitHub
core and api new feature
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

Currently, we ignore VCS repos when creating the Codebase (https://github.com/nexB/scancode-toolkit/blob/develop/src/scancode/resource.py#L427). It would be convenient to have an attribute on the Resource that says if a VCS repo was detected and what kind type of VCS is used. This is useful In the context of origin summary (such as #1588) as we would like to summarize resources at logical breakpoints. One such breakpoint would be the root of a VCS repo, as that is a package-like grouping useful to us.

Right now, there is no specific way to single out VCS directories out of the other types we ignore.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.