Skip to content

northwood-labs/lintbrush

Repository files navigation

Lint Brush

A linter which focuses on the low-level things that are common across many repositories. Leaves the language-specific linting to more appropriate tools.

I'm moving from pre-commit to lefthook, and don't want to have to deal with a Python installation and particular ways of needing to set up a virtualenv. So I'm rewriting the most relevant rules in Go so they can be compiled into a standalone binary.

Caution

This is a brand-new project and most of this isn't working yet. Check back later.

Plan

Usage

  1. Pass files as arguments.

    lint-brush [--flags] $(git ls-files -m)
  2. Pipe a list of files.

    git ls-files -m | lint-brush [--flags]
  3. Pipe a list of files using NUL as the separator.

    git ls-files -m -z | lint-brush -0 [--flags]

    Or all files in a directory, except for the Git directory (using fd)…

    fd --unrestricted --exclude=.git --prune --type=file . | lint-brush [--flags]

Checks/fixers

Will be porting a number of checks from Python → Go for this effort.

About

Really basic linters for fundamental things.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published