lll

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package lll provides validation functions regarding line length

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(r io.Reader, w io.Writer, path string, maxLength, tabWidth int,
	exclude *regexp.Regexp) error

Process checks all lines in the reader and writes an error if the line length is greater than MaxLength.

func ProcessFile

func ProcessFile(w io.Writer, path string, maxLength, tabWidth int,
	exclude *regexp.Regexp) error

ProcessFile checks all lines in the file and writes an error if the line length is greater than MaxLength.

func ShouldSkip

func ShouldSkip(path string, isDir bool, skipList []string,
	goOnly bool) (bool, error)

ShouldSkip checks the input and determines if the path should be skipped. Use the SkipList to quickly skip paths. All directories are skipped, only files are processed. If GoOnly is supplied check that the file is a go file. Otherwise check so the file is a "text file".

Types

This section is empty.

Directories

Path Synopsis
cmd
lll

Jump to

Keyboard shortcuts

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