Documentation
¶
Index ¶
- func CheckCLOCignoreFile(fileexclusion string, target string) (bool, error)
- func CleanFileName(originalName string) string
- func ConvertToMap(arr []string) map[string]bool
- func CreateGlobalReport(directory string) error
- func FormatCodeLines(numLines float64) string
- func FormatSize(size int64) string
- func NewLogger() *logrus.Logger
- type CustomFormatter
- type ExclusionList
- type FileData
- type Globalinfo
- type LanguageData
- type LanguageData1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCLOCignoreFile ¶
func CleanFileName ¶
func ConvertToMap ¶
func CreateGlobalReport ¶
func FormatCodeLines ¶
func FormatSize ¶
Types ¶
type CustomFormatter ¶
type CustomFormatter struct{}
type ExclusionList ¶
func LoadExclusionList ¶
func LoadExclusionList(filename string) (*ExclusionList, error)
type FileData ¶
type FileData struct {
Results []LanguageData1 `json:"Results"`
}
type Globalinfo ¶
type Globalinfo struct {
Organization string `json:"Organization"`
TotalLinesOfCode string `json:"TotalLinesOfCode"`
LargestRepository string `json:"LargestRepository"`
LinesOfCodeLargestRepo string `json:"LinesOfCodeLargestRepo"`
DevOpsPlatform string `json:"DevOpsPlatform"`
NumberRepos int `json:"NumberRepos"`
}
type LanguageData ¶
type LanguageData struct {
Language string `json:"Language"`
CodeLines int `json:"CodeLines"`
Percentage float64 `json:"Percentage"`
CodeLinesF string `json:"CodeLinesF"`
}
func (*LanguageData) FormatCodeLines ¶
func (l *LanguageData) FormatCodeLines()
type LanguageData1 ¶
Click to show internal directories.
Click to hide internal directories.