We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 701d065 commit 02998a7Copy full SHA for 02998a7
main.go
@@ -14,11 +14,14 @@ import (
14
func main() {
15
log.SetFlags(0)
16
17
+ var ctxt context
18
+
19
+ flag.BoolVar(&ctxt.Pedantic, "pedantic", false,
20
+ `makes several diagnostics more pedantic and comprehensive`)
21
flag.Parse()
22
23
filenames := targetsToFilenames(flag.Args())
24
- var ctxt context
25
ctxt.SetupOpsTable()
26
if err := visitFiles(&ctxt, filenames, ctxt.InferConventions); err != nil {
27
log.Fatalf("infer conventions: %v", err)
@@ -37,6 +40,8 @@ type context struct {
37
40
ops []*operation
38
41
fset *token.FileSet
39
42
43
+ Pedantic bool
44
45
Warnings []warning
46
}
47
0 commit comments