funlen

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 4 Imported by: 0

README

Funlen linter

Funlen is a linter that checks for long functions. It can checks both on the number of lines and the number of statements.

The default limits are 60 lines and 40 statements. You can configure these.

Installation guide

Funlen is included in golangci-lint. Install it and enable funlen.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Pos     token.Position
	Message string
}

Message contains a message

func Run

func Run(file *ast.File, fset *token.FileSet, lineLimit, stmtLimit int) []Message

Run runs this linter on the provided code

Jump to

Keyboard shortcuts

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