lint-naked-returns

command module
v0.0.0-...-f5792a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2015 License: BSD-3-Clause Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

lint-naked-returns

This program finds you naked returns in functions and methods with return arguments in Go(Golang) source code.

Installation

go get -u github.com/zimmski/lint-naked-returns

Example

This function's return statement will be flagged.

func foo() (hey string) {
	return
}

Usage

Search current package:

lint-naked-returns

Search the package github.com/zimmski/tavor and its subpackages:

lint-naked-returns github.com/zimmski/tavor/...

Search the package github.com/zimmski/tavor and its subpackages using the build tag example-main:

lint-naked-returns --tag example-main github.com/zimmski/tavor/...

Show the program's help:

lint-naked-returns --help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址