Showing 1 of 3 files from the diff.
Other files ignored by Codecov

@@ -33,18 +33,20 @@
Loading
33 33
	Long:    fmt.Sprintf("Sloc, Cloc and Code. Count lines of code in a directory with complexity estimation.\nVersion %s\nBen Boyter <ben@boyter.org> + Contributors", processor.Version),
34 34
	Version: processor.Version,
35 35
	Run: func(cmd *cobra.Command, args []string) {
36 -
		if clocConfig.ByDirectory {
36 +
		if clocConfig.TopFile {
37 37
			_ = cloc_app.CreateClocDir()
38 -
			processByDirectory(args[0])
38 +
			processTopFile(args[0])
39 39
			return
40 -
		} else if clocConfig.TopFile {
40 +
		}
41 +
42 +
		if clocConfig.ByDirectory {
41 43
			_ = cloc_app.CreateClocDir()
42 -
			processTopFile(args[0])
44 +
			processByDirectory(args[0])
43 45
			return
44 -
		} else {
45 -
			processor.DirFilePaths = args
46 46
		}
47 47
48 +
		processor.DirFilePaths = args
49 +
48 50
		if processor.ConfigureLimits != nil {
49 51
			processor.ConfigureLimits()
50 52
		}
@@ -75,7 +77,7 @@
Loading
75 77
76 78
	if len(languageSummaries) <= 3 {
77 79
		for _, summary := range languageSummaries {
78 -
			fmt.Fprintln(output, "Language: " + summary.Name)
80 +
			fmt.Fprintln(output, "Language: "+summary.Name)
79 81
			table := cmd_util.NewOutput(output)
80 82
			table.SetHeader([]string{"Length", "File", "Complexity", "WeightedComplexity"})
81 83
			sizes := len(summary.Files)
@@ -84,7 +86,7 @@
Loading
84 86
			}
85 87
86 88
			for _, file := range summary.Files[:sizes] {
87 -
				table.Append([]string{strconv.Itoa(int(file.Code)), file.Language, strconv.Itoa(int(file.Complexity)),strconv.Itoa(int(file.WeightedComplexity)) })
89 +
				table.Append([]string{strconv.Itoa(int(file.Code)), file.Language, strconv.Itoa(int(file.Complexity)), strconv.Itoa(int(file.WeightedComplexity))})
88 90
			}
89 91
			table.Render()
90 92
		}
Files Coverage
cmd 89.39%
pkg 90.53%
coca.go 0.00%
Project Totals (113 files) 90.26%
731.1
1.13.x=.13.x
TRAVIS_OS_NAME=linux
731.2
1.14.x=.14.x
TRAVIS_OS_NAME=linux
731.4
1.14.x=.14.x
TRAVIS_OS_NAME=osx
731.3
1.13.x=.13.x
TRAVIS_OS_NAME=osx
731.6
1.14.x=.14.x
TRAVIS_OS_NAME=windows
731.5
1.13.x=.13.x
TRAVIS_OS_NAME=windows
1
ignore:
2
 - "languages"
3
 - "bughunt"
4
 - "cocatest"
5
 - "analysis"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading