Skip to content

Commit

Permalink
fix: dotnet format now can fail pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raczu committed Jun 4, 2024
1 parent 9afd51d commit 4414d95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Client/reasn-client/.husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@

(cd ./Client/reasn-client && yarn lint-staged)
(cd ./Server/ReasnAPI && dotnet format)
if ! git diff --quiet; then
echo "🚫 dotnet format made changes, commit aborted."
exit 1
fi
2 changes: 1 addition & 1 deletion Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
modelBuilder
.Entity<Image>()
.Property(u => u.ObjectType)
.HasConversion<string> ();
.HasConversion<string>();

modelBuilder
.Entity<Participant>()
Expand Down
6 changes: 3 additions & 3 deletions Server/ReasnAPI/ReasnAPI/Models/Enums/EventStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public enum EventStatus
{
Completed,
Inprogress,
Approved,
Completed,
Inprogress,
Approved,
WaitingForApproval
}

0 comments on commit 4414d95

Please sign in to comment.