mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-25 17:03:14 +01:00
14 lines
409 B
Nix
14 lines
409 B
Nix
{ src, lib }:
|
|
let
|
|
inherit (lib) getExe optionalAttrs optionalString pathExists;
|
|
in
|
|
{
|
|
checks = optionalAttrs (pathExists (src + /.editorconfig)) {
|
|
# By default, high false-positive flags are disabled.
|
|
editorconfig = { editorconfig-checker }:
|
|
"${getExe editorconfig-checker}"
|
|
+ optionalString (!pathExists (src + /.ecrc))
|
|
" -disable-indent-size -disable-max-line-length";
|
|
};
|
|
}
|