forked from extern/flakelight
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";
|
|
};
|
|
}
|