Synthetica9 / Nix Linter
Licence: other
Linter for the Nix expression language
Stars: ✭ 100
Programming Languages
haskell
3896 projects
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
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
Lintly
Automated GitHub PR code reviewer for Python, JavaScript, CSS, and more.
Stars: ✭ 91 (-9%)
Mutual labels: linter
Unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 96 (-4%)
Mutual labels: linter
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
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].