Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a bunch of files from fantomas ignore #18407

Merged
merged 12 commits into from
Mar 27, 2025
Merged

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

@T-Gro T-Gro requested a review from a team as a code owner March 25, 2025 10:30
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
@T-Gro T-Gro merged commit 55d736b into main Mar 27, 2025
33 checks passed
@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.

3 participants