Repository navigation
Bump Fantomas to 8.1.0 - #113
Merged
Merged
Conversation
Smaug123
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the Fantomas dotnet tool from 7.0.6 to 8.1.0. See the v8 upgrade guide.
Commits
.config/dotnet-tools.json: version bump only..github/workflows/dotnet.yaml: thecheck-formatjob now installs the .NET 10 SDK (10.0.x), because the Fantomas 8 tool targetsnet10.0. The build, analyzer and pack jobs are unchanged.hooks/pre-push:fantomas --check .becomesfantomas check .. Fantomas 8 addscheckas a verb; the old flag still works, but this is the current spelling..editorconfigchanges:fantomas doctorreports no unknown or invalid settings, andfsharp_multiline_bracket_style = aligned(the new v8 default) was already set explicitly.Important
This repo only allows squash merges, so the format commit gets a new hash on merge. Its
.git-blame-ignore-revsentry will be added in a follow-up PR once this one is squash-merged.Formatting changes
There is one kind of change: the parenthesis of a method call is now tight when the thing being called is not a plain dotted name.
This repo sets
fsharp_space_before_uppercase_invocation = true, which asks for a space before the parenthesis of a call such asFoo.Bar (). Fantomas 8 only applies that setting when the whole thing being called is a plain dotted name. A bracketed receiver like(f x).Methodor a type application likex.Eval<'a>makes the call tight whatever the setting says. Plain dotted calls such asList.map (f)keep their space. This rule was agreed in the F# style guide discussion fsharp/fslang-design#648 and implemented in fsprojects/fantomas#3425.Bracketed receiver (
ShapeSifter/Reflection.fs,ShapeSifter.Test/TestExamples.fs):Type application (
ShapeSifter/TypeParameterCrate.fs):Checks
dotnet fantomas check .and./hooks/pre-pushexit 0.dotnet buildanddotnet test(41 tests) pass on the .NET 10.0.402 SDK.