Skip to content

Commit a71d7e9

Browse files
committed
[cli] fix: formatting and formatting command
Fourmolu needs to converge
1 parent dbd1bea commit a71d7e9

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

cli/justfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# shellcheck shell=bash
22

3+
# shellcheck disable=SC2121
34
set unstable := true
45

56
format:
67
#!/usr/bin/env bash
7-
fourmolu -i src app test test-E2E test-lib CI/rewrite-libs
8+
# shellcheck disable=SC2034
9+
for i in {1..3}; do
10+
fourmolu -i src app test test-E2E test-lib CI/rewrite-libs
11+
done
812
cabal-fmt -i anti.cabal CI/rewrite-libs/rewrite-libs.cabal
913
nixfmt *.nix
1014
nixfmt nix/*.nix

cli/src/Oracle/Validate/Requests/TestRun/Create.hs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,17 @@ instance Monad m => ToJSON m TestRunRejection where
144144
$ "unacceptable try index. Expecting at most "
145145
<> show maxIx
146146
<> " run attempts for a given commit"
147-
toJSON ( UnacceptableRole
147+
toJSON
148+
( UnacceptableRole
148149
(RegisterRoleKey _ (Repository org repo) (Username user))
149150
) =
150-
stringJSON
151-
$ "unacceptable role. User "
152-
<> show user
153-
<> " has not been registered within the repository "
154-
<> show org
155-
<> "/"
156-
<> show repo
151+
stringJSON
152+
$ "unacceptable role. User "
153+
<> show user
154+
<> " has not been registered within the repository "
155+
<> show org
156+
<> "/"
157+
<> show repo
157158
toJSON NoRegisteredKeyVerifiesTheSignature =
158159
stringJSON
159160
"there is no registered Ed25519 SSH key that can verify the signature"

0 commit comments

Comments
 (0)