alejandra icon indicating copy to clipboard operation
alejandra copied to clipboard

The Uncompromising Nix Code Formatter

Results 68 alejandra issues
Sort by recently updated
recently updated
newest added

Input: ```nix rec { flakeApps = lib.mapAttrs (appName: app: { type = "app"; program = b.toString app.program; } ) apps; } ``` Alejandra run 1: ```nix rec { flakeApps =...

type | bug
help wanted
status | it is a good thing
component | engine

Here a (modified) example from nixpkgs containing a long argument list followed by a function: ```nix { lib , autoPatchelfHook , alsa-lib , stdenv , libXScrnSaver , makeWrapper , fetchurl...

type | feature request
help wanted
good first issue
component | style
status | it is a good thing

In the result of this: https://kamadorueda.github.io/alejandra/?before=%27%27%0A++dream2nix.makeOutputs+%7B%0A++++source+%3D+.%2Fdream-lock.json%3B%0A++++%24%7Blib.optionalString+%28dreamLock.sources.%22%24%7BdefaultPackage%7D%22.%22%24%7BdefaultPackageVersion%7D%22.type+%3D%3D+%22unknown%22%29+%27%27%0A++++++sourceOverrides+%3D+oldSources%3A+%7B%0A++++++++++%22%24%7BdefaultPackage%7D%22.%22%24%7BdefaultPackageVersion%7D%22+%3D+.%2F%24%7BsourcePathRelative%7D%3B%0A++++++++%7D%3B%0A++++%27%27%7D%0A++%7D%0A%27%27%0A ... the closing bracket in line 10 is not aligned with the opening bracket in line 4: ```nix '' dream2nix.makeOutputs { source = ./dream-lock.json;...

type | feature request
help wanted
component | style
status | needs discussing

I have re-run alejandra against my code-base and have to say: This formatter is simply amazing. Thanks for putting in the effort and not getting tired by all the bikeshedding....

type | feature request
component | style
status | it is a good thing

input: ```nix { getSourceSpec = pname: version: sources."${pname}"."${version}" or (throw "The source spec for ${pname}#${version} is not defined in lockfile."); } ``` alejandra result: ```nix { getSourceSpec = pname: version:...

type | feature request
help wanted
good first issue
component | style
status | it is a good thing

Logically every block in a longer if/else statement consists of a `condition` and an `action`. Especially for long and complex statements containing many `else if`, I find it favorable if...

type | feature request
component | style
status | it is a good thing

Dependabot can help with keeping the project dependencies up to date by creating beautiful PRs whenever any of the dependencies are updated. I've been using it on dozens of projects...

It would be good if this project enforced its own formatting rules on itself. This can be done easily by adding a GitHub Actions workflow which uses the current commit...

With the latest unstable nixpkgs ```nix pkgs ? import ( fetchTarball { name = "nixos-22.11pre405560.2da64a81275"; url = "https://github.com/NixOS/nixpkgs/archive/2da64a81275b68fdad38af669afeda43d401e94b.tar.gz"; sha256 = "1k71lmzdaa48yqkmsnd22n177qmxxi4gj2qcmdbv0mc6l4f27wd0"; } ) {}, ``` and latest alejandra ```yaml -...

`!command` is a syntax error, so this check will always "pass".