feat: added formatting for "dotnet foramt"
This commit is contained in:
parent
e28714549d
commit
5f2895af1f
2 changed files with 12 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
|||
conformDefaults = { scopes = [ ]; };
|
||||
contributorCovenantDefaults = { enable = false; };
|
||||
developerCertificateOfOriginDefaults = { enable = false; };
|
||||
dotnetDefaults = { enable = false; };
|
||||
dotnetDefaults = { enable = false; format = false; };
|
||||
prettierDefaults = { proseWrap = "preserve"; };
|
||||
rustDefaults = { enable = false; };
|
||||
licenseDefaults = { enable = false; filename = "LICENSE.md"; };
|
||||
|
|
|
@ -32,6 +32,17 @@ let
|
|||
includes = [ "*.cs" ];
|
||||
};
|
||||
}
|
||||
// pkgs.lib.attrsets.optionalAttrs dotnet.format {
|
||||
dotnet-format-style = {
|
||||
command = "dotnet format style --include";
|
||||
includes = [ "*.cs" ];
|
||||
};
|
||||
|
||||
dotnet-format-analyzers = {
|
||||
command = "dotnet format analyzers --include";
|
||||
includes = [ "*.cs" ];
|
||||
};
|
||||
}
|
||||
// pkgs.lib.attrsets.optionalAttrs rust.enable {
|
||||
rust = {
|
||||
command = "rustfmt";
|
||||
|
|
Loading…
Reference in a new issue