Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScoreResult ¶
type ScoreResult struct {
TargetName string
TargetFile string
TargetLine int
Scores map[analyzer.Principle]float64
Total float64
Confidence map[analyzer.Principle]float64
Details map[analyzer.Principle][]string
}
ScoreResult holds SOLID scores for a single target (struct or function).
type Scorer ¶
Scorer orchestrates all SOLID analyzers and computes weighted totals.
func (*Scorer) Score ¶
func (s *Scorer) Score(pkg *model.PackageInfo) []*ScoreResult
Score analyzes a package and returns per-target score results.
Click to show internal directories.
Click to hide internal directories.