Skip to content

Commit 123447c

Browse files
committed
Fix GRA-INTERPOLATED-001 analyzer warning
1 parent d4eb357 commit 123447c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fantomas/Program.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ Join our Discord community: https://discord.gg/Cpq9vf8BJH
386386
| :? DefineParseException as dpe ->
387387
let combinations =
388388
dpe.Combinations
389-
|> List.map (fun c -> if c = "no defines" then "no defines" else $"[{c}]")
389+
|> List.map (fun c -> if c = "no defines" then "no defines" else $"[%s{c}]")
390390
|> String.concat ", "
391391

392392
$"When Fantomas encounters #if directives in a file, it tries to format all possible combinations of defines and will merge all different versions back into one.\nFor %s{combinations}, however, we were not able to parse the file.\nWhile you may not use this combination in your project, Fantomas requires it to produce valid code.\nConsider fixing the code or ignoring this file.\nFor more information see: https://fsprojects.github.io/fantomas/docs/end-users/ConditionalCompilationDirectives.html"

0 commit comments

Comments
 (0)