Skip to content

Conversation

@T-Gro
Copy link
Member

@T-Gro T-Gro commented Mar 25, 2025

This ended up doing a chore which was longer overdue:

  • clean up historical build flags for nullables, and use the one which ships with the SDK (<Nullable>). This was not possible before, since our build was using last-known-good FSharp.Build

  • Drastically reduce the number of ifdefs, which were preventing Fantomas from working (ifdefs over entire val/let definitions work just fine, ifdefs for local parts like type argument constraints were making it fail)

  • Enable nullables unconditionally also for LKG and Proto builds

  • (1 special case still triggers warning which I had to nowarn. It is code generated code coming from the Fsharp resource task - the codegen comes from LKG FSharp.Build.dll, we have to wait a little)

  • With all of that, I could enable Fantomas for a big chunk of files, which is the reason for most of the diff here

@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2025

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@T-Gro T-Gro added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Mar 25, 2025
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Mar 26, 2025
@T-Gro T-Gro merged commit 55d736b into main Mar 27, 2025
33 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Mar 27, 2025
@T-Gro T-Gro deleted the try-less-fantomas-ignores branch March 27, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants