Skip to content

Commit

Permalink
feat: include actionlint & dotnet fmt in treefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Jan 8, 2025
1 parent 96f25fd commit b447c8b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
3 changes: 3 additions & 0 deletions templates/bun/nix/fmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ let
shfmt = {
enable = true;
};
actionlint = {
enable = true;
};
};


Expand Down
3 changes: 3 additions & 0 deletions templates/cyanprint-bun/nix/fmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ let
shfmt = {
enable = true;
};
actionlint = {
enable = true;
};
};


Expand Down
6 changes: 6 additions & 0 deletions templates/dotnet/nix/fmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ let
shfmt = {
enable = true;
};
csharpier = {
enable = true;
};
actionlint = {
enable = true;
};
};


Expand Down
10 changes: 0 additions & 10 deletions templates/dotnet/nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ pre-commit-lib.run {
enable = false;
};

a-dotnet-fmt-app = {
enable = true;
name = "Format .NET 'App' Project";
description = "Run formatter for .NET Project 'App'";
entry = "${packages.dotnet}/bin/dotnet format whitespace --no-restore -v d ./App/App.csproj";
language = "system";
pass_filenames = false;
files = "^App/.*\\.cs$";
};

a-dotnet-lint-app = {
enable = true;
name = "Lint .NET 'App' Project";
Expand Down
1 change: 1 addition & 0 deletions templates/go/nix/fmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let
prettier.enable = true;
shfmt.enable = true;
gofmt.enable = true;
actionlint.enable = true;
};
};
in
Expand Down
4 changes: 4 additions & 0 deletions templates/normal/standard/nix/fmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ let
shfmt = {
enable = true;
};

actionlint = {
enable = true;
};
};


Expand Down

0 comments on commit b447c8b

Please sign in to comment.