github.com/bombsimon/wsl v1.2.5
Go recursively walks a directoryParses Go source file
SHA-2567e085aea6b6cee1a98bfc76869129576075943156c991d762a05c01c27a07114
MaleculeH₂(Db₂F)
Evidence
18:10… bool
19 showWarnings bool
20 cwd, _ = os.Getwd()
21 files = []string{}
22 finalFiles = []string{}
23 config = wsl.DefaultConfig()
24 )
25
26 flag.BoolVar(&help, "h", false, "Show this help text")
27 flag.BoolVar(&help, "help", false, "")
28 flag.BoolVar(&noTest, "n", false, "Don't l …
33:26… ictAppend, "strict-append", true, "Strict rules for append")
34 flag.BoolVar(&config.AllowAssignAndCallCuddle, "allow-assign-and-call", true, "Allow assignments and calls to be cuddled (if using same variable/type)")
35 flag.B …
103:15… ildcard(root string) []string {
104 foundFiles := []string{}
105
106 _ = filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
107 // Only append go files
108 if !strings.HasSuffix(info.Name(), ".g …
155:42… ng, data []byte) {
156 fileSet := token.NewFileSet()
157 file, err := parser.ParseFile(fileSet, filename, data, parser.ParseComments)
158
159 // If the file is not parsable let's add a syntax error and move on.
160 if err ! …
188:57… ck *ast.BlockStmt) {
189 // Nothing to do if there's no value.
190 if reflect.ValueOf(block).IsNil() {
191 return
192 }
193
194 // Start by finding leading and trailing whitespaces.
195 p.findLeadingAndTrailingWhitespace …
No evidence locations were recorded for this file. Raw result