forked from clan/clan-core
formatter/vale: exclude lib
Fixes ci
This commit is contained in:
parent
92669a0d59
commit
498f2c02be
|
@ -45,53 +45,53 @@
|
||||||
];
|
];
|
||||||
includes = [ "*.py" ];
|
includes = [ "*.py" ];
|
||||||
};
|
};
|
||||||
treefmt.settings.formatter.vale =
|
# FIXME: currently broken in CI
|
||||||
with pkgs;
|
#treefmt.settings.formatter.vale =
|
||||||
let
|
# let
|
||||||
vocab = "cLAN";
|
# vocab = "cLAN";
|
||||||
style = "Docs";
|
# style = "Docs";
|
||||||
config = writeText "vale.ini" ''
|
# config = pkgs.writeText "vale.ini" ''
|
||||||
StylesPath = ${styles}
|
# StylesPath = ${styles}
|
||||||
Vocab = ${vocab}
|
# Vocab = ${vocab}
|
||||||
|
|
||||||
[*.md]
|
# [*.md]
|
||||||
BasedOnStyles = Vale, ${style}
|
# BasedOnStyles = Vale, ${style}
|
||||||
Vale.Terms = No
|
# Vale.Terms = No
|
||||||
'';
|
# '';
|
||||||
styles = symlinkJoin {
|
# styles = pkgs.symlinkJoin {
|
||||||
name = "vale-style";
|
# name = "vale-style";
|
||||||
paths = [
|
# paths = [
|
||||||
accept
|
# accept
|
||||||
headings
|
# headings
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
accept = writeTextDir "config/vocabularies/${vocab}/accept.txt" ''
|
# accept = pkgs.writeTextDir "config/vocabularies/${vocab}/accept.txt" ''
|
||||||
Nix
|
# Nix
|
||||||
NixOS
|
# NixOS
|
||||||
Nixpkgs
|
# Nixpkgs
|
||||||
clan.lol
|
# clan.lol
|
||||||
Clan
|
# Clan
|
||||||
monorepo
|
# monorepo
|
||||||
'';
|
# '';
|
||||||
headings = writeTextDir "${style}/headings.yml" ''
|
# headings = pkgs.writeTextDir "${style}/headings.yml" ''
|
||||||
extends: capitalization
|
# extends: capitalization
|
||||||
message: "'%s' should be in sentence case"
|
# message: "'%s' should be in sentence case"
|
||||||
level: error
|
# level: error
|
||||||
scope: heading
|
# scope: heading
|
||||||
# $title, $sentence, $lower, $upper, or a pattern.
|
# # $title, $sentence, $lower, $upper, or a pattern.
|
||||||
match: $sentence
|
# match: $sentence
|
||||||
'';
|
# '';
|
||||||
in
|
# in
|
||||||
{
|
# {
|
||||||
command = "${vale}/bin/vale";
|
# command = "${pkgs.vale}/bin/vale";
|
||||||
options = [ "--config=${config}" ];
|
# options = [ "--config=${config}" ];
|
||||||
includes = [ "*.md" ];
|
# includes = [ "*.md" ];
|
||||||
# TODO: too much at once, fix piecemeal
|
# # TODO: too much at once, fix piecemeal
|
||||||
excludes = [
|
# excludes = [
|
||||||
"docs/*"
|
# "docs/*"
|
||||||
"clanModules/*"
|
# "clanModules/*"
|
||||||
"pkgs/*"
|
# "pkgs/*"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user