aws / eks-anywhere-prow-jobs
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 14 units with 199 lines of code in units (7.1% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (57 lines of code)
    • 0 medium size units (0 lines of code)
    • 7 small units (93 lines of code)
    • 6 very small units (49 lines of code)
0% | 28% | 0% | 46% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 28% | 0% | 46% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts/lint_prowjobs0% | 28% | 0% | 46% | 24%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
func main()
in scripts/lint_prowjobs/main.go
57 11 0
func displayConfigErrors()
in scripts/lint_prowjobs/main.go
17 4 1
func EnvVarsCheck()
in scripts/lint_prowjobs/main.go
16 5 1
func MakeTargetCheck()
in scripts/lint_prowjobs/main.go
14 8 1
func getFilesChanged()
in scripts/lint_prowjobs/main.go
13 3 3
func ServiceAccountCheck()
in scripts/lint_prowjobs/main.go
11 3 1
func unmarshalJobFile()
in scripts/lint_prowjobs/main.go
11 2 2
func unmarshalYamlFile()
in scripts/lint_prowjobs/main.go
11 3 2
func findLineNumber()
in scripts/lint_prowjobs/main.go
9 3 2
func()
in scripts/lint_prowjobs/main.go
8 3 1
func AlwaysRunCheck()
in scripts/lint_prowjobs/main.go
8 2 0
func SkipReportCheck()
in scripts/lint_prowjobs/main.go
8 2 0
func BucketCheck()
in scripts/lint_prowjobs/main.go
8 2 1
func ClusterCheck()
in scripts/lint_prowjobs/main.go
8 2 1