github.com/google/capslock@v0.2.3-0.20240517042941-dac19fc347c0/analyzer/static/verbose.tmpl (about)

     1  {{format "intro"}}Capslock is an experimental tool for static analysis of Go packages.
     2  Share feedback and file bugs at {{format "highlight"}}https://github.com/google/capslock.{{format}}
     3  {{format "intro"}}To get machine-readable full analysis output, use {{format "highlight"}}-output=json{{format}}
     4  
     5  {{if .ModuleInfo}}{{format "heading"}}Analyzed packages:{{format}}
     6  {{range $val := .ModuleInfo}}  {{$val.Path}} {{$val.Version}}
     7  {{end}}{{end}}{{if .CapabilityStats}}{{range $index, $p := .CapabilityStats}}
     8  {{format "capability" $p.Capability}}{{$p.Capability}}{{format}}: {{$p.Count}} references ({{$p.DirectCount}} direct, {{$p.TransitiveCount}} transitive)
     9  Example callpath:
    10  {{range $val := $p.ExampleCallpath}}  {{format "callpath-site"}}{{if $val.Site}}{{$val.Site.Filename}}:{{$val.Site.Line}}:{{$val.Site.Column}}:{{end}}{{format "callpath"}}{{$val.Name}}{{format}}
    11  {{end}}{{end}}{{else}}{{format "nocap"}}Capslock found no capabilities in this package.{{format}}{{end}}