git

package
v4.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

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

func CloneRepository(hostname, name, gitURL, index string) error

CloneRepository clone the repository into DATADIR/repos/<hostname>/<vendor>/<repo>/gitClone.

Types

type Range

type Range struct {
	Min    float64
	Max    float64
	Points float64
}

Range is a range between will be assigned Points value.

type Ranges

type Ranges struct {
	Name   string
	Ranges []Range
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL