Versions in this module Expand all Collapse all v1 v1.0.0 Feb 28, 2021 Changes in this version + const DefaultTpl + func SaveAsHtml(htmlData HtmlData, projectPath, savePath, timestamp, tpl string) + type CodeCount struct + Content struct{ ... } + Summary struct{ ... } + type CodeOptimization struct + Content struct{ ... } + Summary struct{ ... } + type CodeSmell struct + Content struct{ ... } + Summary struct{ ... } + type CodeSmellItem struct + Cyclo int + Path string + type CodeStyle struct + Content struct{ ... } + Summary struct{ ... } + type CodeTest struct + Content struct{ ... } + Summary struct{ ... } + type CopyItem struct + Detail [][]string + Label string + Score int + type Copycode struct + Files string + Path []string + type Cyclo struct + Info []CycloInfo + Pkg string + Size int + type CycloInfo struct + Comp int + Info string + type Cycloi struct + Average string + Result []string + type Deadcode struct + Info string + Path string + type Depth struct + Info []DepthInfo + Pkg string + Size int + type DepthInfo CycloInfo + type Error struct + ErrorString string + LineNumber int + type File struct + Color string + CycloInfo string + CycloVal string + type HtmlData struct + CodeCount string + CodeOptimization string + CodeSmell string + CodeStyle string + CodeTest string + Date string + DepGraph template.HTML + HumanizedLastRefresh string + IssuesNum int + LastRefresh time.Time + Project string + Score int + type Interfacer struct + Info string + Path string + type Item struct + Content []string + File string + type Metric struct + Description string + Error string + Name string + Percentage float64 + Summaries map[string]Summary + Weight float64 + type PackageTest struct + Coverage string + IsPass bool + Time float64 + type Race struct + Info []string + Len string + Leng string + Pkg string + type Reporter struct + ExceptPackages string + Grade int + HtmlTemplate string + Issues int + Linters []StrategyLinter + Metrics map[string]Metric + Project string + ProjectPath string + ReportFormat string + ReportPath string + Score int + StartTime time.Time + Sync *Synchronizer + TimeStamp string + func NewReporter(projectPath, reportPath, reportFormat, htmlTemplate string) *Reporter + func (r *Reporter) AddLinters(strategies ...StrategyLinter) + func (r *Reporter) Close() + func (r *Reporter) GetFinalScore() (score float64) + func (r *Reporter) Render() (err error) + func (r *Reporter) Report() error + type Scan struct + Info string + Path string + type Simple struct + Info string + Path string + type Spell struct + Info string + Path string + type StrategyCopyCheck struct + Sync *Synchronizer + func (s *StrategyCopyCheck) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyCopyCheck) GetDescription() string + func (s *StrategyCopyCheck) GetName() string + func (s *StrategyCopyCheck) GetWeight() float64 + func (s *StrategyCopyCheck) Percentage(summaries *Summaries) float64 + type StrategyCountCode struct + Sync *Synchronizer + func (s *StrategyCountCode) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyCountCode) GetDescription() string + func (s *StrategyCountCode) GetName() string + func (s *StrategyCountCode) GetWeight() float64 + func (s *StrategyCountCode) Percentage(summaries *Summaries) float64 + type StrategyCyclo struct + Sync *Synchronizer + func (s *StrategyCyclo) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyCyclo) GetDescription() string + func (s *StrategyCyclo) GetName() string + func (s *StrategyCyclo) GetWeight() float64 + func (s *StrategyCyclo) Percentage(summaries *Summaries) float64 + type StrategyDeadCode struct + Sync *Synchronizer + func (s *StrategyDeadCode) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyDeadCode) GetDescription() string + func (s *StrategyDeadCode) GetName() string + func (s *StrategyDeadCode) GetWeight() float64 + func (s *StrategyDeadCode) Percentage(summaries *Summaries) float64 + type StrategyDependGraph struct + Sync *Synchronizer + func (s *StrategyDependGraph) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyDependGraph) GetDescription() string + func (s *StrategyDependGraph) GetName() string + func (s *StrategyDependGraph) GetWeight() float64 + func (s *StrategyDependGraph) Percentage(summaries *Summaries) float64 + type StrategyDepth struct + Sync *Synchronizer + func (s *StrategyDepth) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyDepth) GetDescription() string + func (s *StrategyDepth) GetName() string + func (s *StrategyDepth) GetWeight() float64 + func (s *StrategyDepth) Percentage(summaries *Summaries) float64 + type StrategyGoFmt struct + Sync *Synchronizer + func (s *StrategyGoFmt) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyGoFmt) GetDescription() string + func (s *StrategyGoFmt) GetName() string + func (s *StrategyGoFmt) GetWeight() float64 + func (s *StrategyGoFmt) Percentage(summaries *Summaries) float64 + type StrategyGoVet struct + Sync *Synchronizer + func (s *StrategyGoVet) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyGoVet) GetDescription() string + func (s *StrategyGoVet) GetName() string + func (s *StrategyGoVet) GetWeight() float64 + func (s *StrategyGoVet) Percentage(summaries *Summaries) float64 + type StrategyImportPackages struct + Sync *Synchronizer + func (s *StrategyImportPackages) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyImportPackages) GetDescription() string + func (s *StrategyImportPackages) GetName() string + func (s *StrategyImportPackages) GetWeight() float64 + func (s *StrategyImportPackages) Percentage(summaries *Summaries) float64 + type StrategyInterfacer struct + Sync *Synchronizer + func (s *StrategyInterfacer) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyInterfacer) GetDescription() string + func (s *StrategyInterfacer) GetName() string + func (s *StrategyInterfacer) GetWeight() float64 + func (s *StrategyInterfacer) Percentage(summaries *Summaries) float64 + type StrategyLint struct + Sync *Synchronizer + func (s *StrategyLint) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyLint) GetDescription() string + func (s *StrategyLint) GetName() string + func (s *StrategyLint) GetWeight() float64 + func (s *StrategyLint) Percentage(summaries *Summaries) float64 + type StrategyLinter interface + Compute func(parameters StrategyParameter) *Summaries + GetDescription func() string + GetName func() string + GetWeight func() float64 + Percentage func(summaries *Summaries) float64 + type StrategyParameter struct + AllDirs map[string]string + ExceptPackages string + ProjectPath string + UnitTestDirs map[string]string + type StrategySimpleCode struct + Sync *Synchronizer + func (s *StrategySimpleCode) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategySimpleCode) GetDescription() string + func (s *StrategySimpleCode) GetName() string + func (s *StrategySimpleCode) GetWeight() float64 + func (s *StrategySimpleCode) Percentage(summaries *Summaries) float64 + type StrategySpellCheck struct + Sync *Synchronizer + func (s *StrategySpellCheck) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategySpellCheck) GetDescription() string + func (s *StrategySpellCheck) GetName() string + func (s *StrategySpellCheck) GetWeight() float64 + func (s *StrategySpellCheck) Percentage(summaries *Summaries) float64 + type StrategyUnitTest struct + Sync *Synchronizer + func (s *StrategyUnitTest) Compute(parameters StrategyParameter) (summaries *Summaries) + func (s *StrategyUnitTest) GetDescription() string + func (s *StrategyUnitTest) GetName() string + func (s *StrategyUnitTest) GetWeight() float64 + func (s *StrategyUnitTest) Percentage(summaries *Summaries) float64 + type StyleItem struct + Detail []Item + Label string + Score int + type Summaries struct + Summaries map[string]Summary + func NewSummaries() *Summaries + type Summary struct + Avg float64 + CountCover int + Description string + Errors []Error + Name string + SumCover float64 + type Synchronizer struct + LintersFinishedSignal chan string + LintersProcessChans chan int64 + SyncRW *sync.RWMutex + WaitGW *WaitGroupWrapper + type Test struct + Cover float64 + Path string + Result int + Time float64 + type UnitTest struct + AvgCover string + PackagesRaceDetail map[string][]string + PackagesTestDetail map[string]PackageTest + type WaitGroupWrapper struct + func (w *WaitGroupWrapper) Wrap(cb func())