Showing 1 of 4 files from the diff.

@@ -7,6 +7,7 @@
Loading
7 7
	"github.com/phodal/coca/pkg/application/todo"
8 8
	"github.com/spf13/cobra"
9 9
	"strconv"
10 +
	"strings"
10 11
)
11 12
12 13
type RootCmdConfig struct {
@@ -26,7 +27,8 @@
Loading
26 27
	Run: func(cmd *cobra.Command, args []string) {
27 28
		path := cmd.Flag("path").Value.String()
28 29
		app := todo.NewTodoApp()
29 -
		filters := []string{".go", ".py", ".js", ".ts", ".java", ".kotlin", ".groovy"}
30 +
31 +
		filters := strings.Split(todoCmdConfig.Extensions, ",")
30 32
		todos := app.AnalysisPath(path, filters)
31 33
32 34
		simple, _ := json.MarshalIndent(todos, "", "\t")
@@ -61,7 +63,7 @@
Loading
61 63
62 64
func init() {
63 65
	todoCmd.SetOut(output)
64 -
	todoCmd.PersistentFlags().StringVarP(&todoCmdConfig.Extensions, "ext", "e", ".java,.py,.go,.ts,.js", "ext=\".java,.go\"")
66 +
	todoCmd.PersistentFlags().StringVarP(&todoCmdConfig.Extensions, "ext", "e", ".java,.py,.go,.ts,.js,.kt,.groovy,.gradle", "ext=\".java,.go\"")
65 67
	todoCmd.PersistentFlags().StringVarP(&todoCmdConfig.Path, "path", "p", ".", "path")
66 68
	todoCmd.PersistentFlags().BoolVarP(&todoCmdConfig.WithGit, "git", "g", false, "is with git info")
67 69
Files Coverage
cmd 86.74%
pkg 90.59%
coca.go 0.00%
Project Totals (113 files) 89.97%
729.1
1.13.x=.13.x
TRAVIS_OS_NAME=linux
729.2
1.14.x=.14.x
TRAVIS_OS_NAME=linux
729.4
1.14.x=.14.x
TRAVIS_OS_NAME=osx
729.3
1.13.x=.13.x
TRAVIS_OS_NAME=osx
729.6
1.14.x=.14.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