All Projects → Synthetica9 → Nix Linter

Synthetica9 / Nix Linter

Licence: other
Linter for the Nix expression language

Programming Languages

haskell
3896 projects

Labels

Projects that are alternatives of or similar to Nix Linter

Atom Linter Alex
Linter plugin using alex to catch insensitive, inconsiderate writing
Stars: ✭ 87 (-13%)
Mutual labels:  linter
Pre Commit Hooks.nix
Seamless integration of https://pre-commit.com git hooks with Nix.
Stars: ✭ 92 (-8%)
Mutual labels:  nix
Pre Commit Hooks
A set of useful (and documented!) git pre-commit hooks.
Stars: ✭ 95 (-5%)
Mutual labels:  linter
Rubberduck
Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
Stars: ✭ 1,287 (+1187%)
Mutual labels:  linter
Upcast
Abandonware
Stars: ✭ 91 (-9%)
Mutual labels:  nix
Stack2nix
Generate nix expressions for Haskell projects
Stars: ✭ 93 (-7%)
Mutual labels:  nix
Homies
linux package management
Stars: ✭ 86 (-14%)
Mutual labels:  nix
Nixcloud Webservices
This nixpkgs extension, called nixcloud-webservices, focuses on ease of deployment of web-related technologies.
Stars: ✭ 98 (-2%)
Mutual labels:  nix
Nix Processmgmt
Experimental Nix-based process management framework
Stars: ✭ 92 (-8%)
Mutual labels:  nix
Linter Js Standard
Atom linter plugin for JavaScript, using JavaScript Standard Style
Stars: ✭ 95 (-5%)
Mutual labels:  linter
Rules nixpkgs
Rules for importing Nixpkgs packages into Bazel.
Stars: ✭ 88 (-12%)
Mutual labels:  nix
Lintly
Automated GitHub PR code reviewer for Python, JavaScript, CSS, and more.
Stars: ✭ 91 (-9%)
Mutual labels:  linter
System
My system configuration
Stars: ✭ 94 (-6%)
Mutual labels:  nix
Vuizvui
Nix(OS) expressions used by the OpenLab and its members
Stars: ✭ 87 (-13%)
Mutual labels:  nix
Unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 96 (-4%)
Mutual labels:  linter
Commit Msg Linter
git commit message linter hook
Stars: ✭ 87 (-13%)
Mutual labels:  linter
Ghc.nix
Nix (shell) expression for working on GHC
Stars: ✭ 94 (-6%)
Mutual labels:  nix
Styx
Static site generator in Nix expression language.
Stars: ✭ 99 (-1%)
Mutual labels:  nix
Graphql Go Tools
Tools to write high performance GraphQL applications using Go/Golang.
Stars: ✭ 96 (-4%)
Mutual labels:  linter
Hydra Tutorial
Sample configuration files for setting up your own Hydra continuous integration server.
Stars: ✭ 95 (-5%)
Mutual labels:  nix

nix-linter

Build Status

nix-linter is a program to check for several common mistakes or stylistic errors in Nix expressions, such as unused arguments, empty let blocks, etcetera.

Usage

First, setup cachix:

cachix use nix-linter

Then clone the repo and cd into it:

git clone https://github.com/Synthetica9/nix-linter
cd nix-linter

Finally, you can run the application with:

$(nix-build -A nix-linter)/bin/nix-linter --help

The nix-linter program

nix-linter [OPTIONS] [FILES]

Common flags:
  -W --check=ITEM       checks to enable
  -j --json             Use JSON output
  -J --json-stream      Use a newline-delimited stream of JSON objects
                        instead of a JSON list (implies --json)
  -r --recursive        Recursively walk given directories (like find)
  -o --out[=FILE]       File to output to
  -h --help-for=CHECKS
  -? --help             Display help message
  -V --version          Print version information
  -v --verbose          Loud verbosity
  -q --quiet            Quiet verbosity

Available checks (See `nix-linter --help-for [CHECK]` for more details):
    DIYInherit
    EmptyInherit
    EmptyLet
    EtaReduce
    FreeLetInFunc
    LetInInheritRecset
    ListLiteralConcat
    NegateAtom
    SequentialLet
    SetLiteralUpdate
    UnfortunateArgName
    UnneededRec
    UnusedArg
    UnusedLetBind
    UpdateEmptySet
    AlphabeticalArgs (disabled by default)
    AlphabeticalBindings (disabled by default)
    BetaReduction (disabled by default)
    EmptyVariadicParamSet (disabled by default)
    UnneededAntiquote (disabled by default)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].