Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateRepoActivity ¶
func CalculateRepoActivity(repository common.Repository, days int) (float64, map[int]float64, error)
CalculateRepoActivity return the repository activity index and the vitality slice calculated on the git clone. It follows the document https://lg-acquisizione-e-riuso-software-per-la-pa.readthedocs.io/ In reference to section: 2.5.2. Fase 2.2: Valutazione soluzioni riusabili per la PA.
func CloneRepository ¶
CloneRepository clone the repository into DATADIR/repos/<hostname>/<vendor>/<repo>/gitClone.
Types ¶
type Ranges ¶
Ranges are the ranges for a specific parameter (userCommunity, codeActivity, releaseHistory, longevity).
type RangesData ¶
type RangesData []Ranges
RangesData contains the data loaded from vitality-ranges.yml.
Click to show internal directories.
Click to hide internal directories.