tally

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code map[string]int

Code tracks code issue counts.

func (Code) Compact

func (cc Code) Compact()

Compact removes zero entries.

func (Code) Dump

func (cc Code) Dump(indent string)

Dump for debugging.

func (Code) Merge

func (cc Code) Merge(cc1 Code)

Merge merges two sets.

func (Code) Rollup

func (cc Code) Rollup(gg rules.Glossary) SevScore

Rollup rollups code scores per severity.

type Linter

type Linter map[string]Namespace

Linter tracks linters namespace tallies.

func (Linter) Compact

func (l Linter) Compact()

func (Linter) Dump

func (s Linter) Dump()

type Namespace

type Namespace map[string]Code

Namespace tracks each namespace code tally.

func (Namespace) Compact

func (nn Namespace) Compact()

Compact compacts set by removing zero entries.

func (Namespace) Dump

func (s Namespace) Dump(indent string)

Dump for debugging.

func (Namespace) Merge

func (nn Namespace) Merge(t Namespace)

Merge merges 2 sets.

type SevScore

type SevScore map[rules.Level]int

SevScore tracks per level total score.

Jump to

Keyboard shortcuts

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