From f378dedc71e3b2b82f95041069bec56fce9e9524 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Wed, 7 Aug 2024 12:33:16 -0500 Subject: [PATCH] fix: added whitespace formatter for csharp --- src/configs/treefmt.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/configs/treefmt.nix b/src/configs/treefmt.nix index 9c93d17..78a3065 100644 --- a/src/configs/treefmt.nix +++ b/src/configs/treefmt.nix @@ -33,22 +33,25 @@ let }; } // pkgs.lib.attrsets.optionalAttrs dotnet.format { - dotnet-format-style = { - command = "dotnet"; - options = [ "format" "style" "--include" ]; - includes = [ "*.cs" ]; - }; - dotnet-format-analyzers = { command = "dotnet"; options = [ "format" "analyzers" "--include" ]; includes = [ "*.cs" ]; + priority = 2; + }; + + dotnet-format-style = { + command = "dotnet"; + options = [ "format" "style" "--include" ]; + includes = [ "*.cs" ]; + priority = 1; }; dotnet-format-whitespace = { command = "dotnet"; options = [ "format" "whitespace" "--include" ]; includes = [ "*.cs" ]; + priority = 0; }; } // pkgs.lib.attrsets.optionalAttrs rust.enable {