Documentation ¶
Index ¶
- Constants
- Variables
- func EstimateCost(effortApplied float64, averageWage int64) float64
- func EstimateEffort(sloc int64) float64
- func EstimateScheduleMonths(effortApplied float64) float64
- func Process()
- type CheckDuplicates
- type FileJob
- type Language
- type LanguageFeature
- type LanguageSummary
- type OpenClose
Constants ¶
View Source
const ( S_BLANK int64 = 1 S_CODE int64 = 2 S_COMMENT int64 = 3 S_COMMENT_CODE int64 = 4 // Indicates comment after code S_MULTICOMMENT int64 = 5 S_MULTICOMMENT_CODE int64 = 6 // Indicates multi comment after code S_MULTICOMMENT_BLANK int64 = 7 // Indicates multi comment ended with blank afterwards S_STRING int64 = 8 )
Variables ¶
View Source
var AverageWage int64 = 56286
View Source
var Cocomo = false
View Source
var Complexity = false
View Source
var Debug = false
View Source
var DirFilePaths = []string{}
Not set via flags but by arguments following the the flags
View Source
var Duplicates = false
View Source
var ExtensionToLanguage = map[string]string{}
Loaded from the JSON that is in constants.go
View Source
var FileListQueueSize = runtime.NumCPU()
View Source
var FileProcessJobQueueSize = runtime.NumCPU()
View Source
var FileReadContentJobQueueSize = runtime.NumCPU()
View Source
var FileReadJobQueueSize = runtime.NumCPU()
View Source
var FileSummaryJobQueueSize = runtime.NumCPU()
View Source
var Files = false
Flags set via the CLI which control how the output is displayed
View Source
var LanguageFeatures = map[string]LanguageFeature{}
View Source
var More = false
View Source
var PathBlacklist = ""
View Source
var SortBy = ""
View Source
var Trace = false
View Source
var Verbose = false
View Source
var WhiteListExtensions = ""
Functions ¶
func EstimateCost ¶
Calculate the cost in dollars applied using generic COCOMO2 weighted values based on the average yearly wage
func EstimateEffort ¶
Calculate the effort applied using generic COCOMO2 weighted values
func EstimateScheduleMonths ¶
Types ¶
type CheckDuplicates ¶
type CheckDuplicates struct {
// contains filtered or unexported fields
}
func (*CheckDuplicates) Add ¶
func (c *CheckDuplicates) Add(key int64, hash []byte)
type LanguageFeature ¶
type LanguageSummary ¶
Click to show internal directories.
Click to hide internal directories.