adi

Web Developer

linters

A collection of linters

NAME

lfn - check for final newline

SYNOPSIS

lfn [file ...]

DESCRIPTION

The lfn utility prints an error to standard error if any [file ...] is missing the final newline. If [file ...] is missing, lfn reads from standard input.

EXIT STATUS

The lfn utility exits 0 on success, and >0 if an error occurs.

EXAMPLES

Check for missing final newline

	$ echo "bar" > foo
	$ printf "baz" >> foo
	$ lfn foo

SEE ALSO

awk(1)

NAME

lis - check for indent style

SYNOPSIS

lis [-s [tab|space]] [file ...]

DESCRIPTION

The lis utility prints a set of errors to standard error if there are lines inside each file that don't use [-s] for indenting. If [-s] is not specified, the default value is tab. If file is absent, lis reads from standard input.

EXIT STATUS

The lis utility exits 0 on success, and >0 if an error occurs.

EXAMPLES

Check for spaces indenting

	$ echo " bar" > foo
	$ lis foo

Check for tabs indenting

	$ echo "	bar" > foo
	$ lis foo

SEE ALSO

awk(1)

NAME

lml - check for maximum line length

SYNOPSIS

lml [-l num] [file ...]

DESCRIPTION

The lml utility prints a set of errors to standard error if there are lines inside each file that exceed num characters. If num is not specified, the default value is 72 characters. If file is absent, lml reads from standard input.

EXIT STATUS

The lml utility exits 0 on success, and >0 if an error occurs.

SEE ALSO

awk(1)

NAME

ltn - check for trailing newlines

SYNOPSIS

ltn [file ...]

DESCRIPTION

The ltn utility prints an error to standard error if any [file ...] has trailing newlines. If [file ...] is missing, ltn reads from standard input.

EXIT STATUS

The ltn utility exits 0 on success, and >0 if an error occurs.

EXAMPLES

Check for trailing newlines

$ echo "bar" > foo
$ echo "baz" >> foo
$ printf "\n" >> foo

NAME

lts - check for trailing white space characters

SYNOPSIS

lts [file ...]

DESCRIPTION

The lts utility prints a set of errors to standard error if there are lines inside each [file ...] that has trailing tabs or spaces.

EXAMPLES

Check for trailing tabs

	$ echo "bar " > foo
	$ lts foo

Check for trailing spaces

	$ echo "bar	" > foo
	$ lts foo

File

Download

linters@1.0.1.tgz
  • renamed makefile to Makefile
  • updated lfn for a more robust final newline check
  • updated README
  • fixed man section
linters-1.0.tgz
  • first release