README ¶ nakedretrun nakedretrun finds naked returns. package a func f() (n int) { return // want "should not use naked return" } fixnakedreturn command check and fix (remove) naked return. $ go install github.com/gostaticanalysis/nakedreturn/cmd/fixnakedreturn $ fixnakedreturn ./... Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Variables Constants ¶ This section is empty. Variables ¶ View Source var Analyzer = &analysis.Analyzer{ Name: "nakedreturn", Doc: doc, Run: run, Requires: []*analysis.Analyzer{ inspect.Analyzer, }, } Analyzer finds naked returns. Functions ¶ This section is empty. Types ¶ This section is empty. Source Files ¶ View all Source files nakedreturn.go Directories ¶ Show internal Expand all Path Synopsis cmd fixnakedreturn nakedreturn plugin Click to show internal directories. Click to hide internal directories.