Repository navigation
Update all tools - #1563
Merged
Merged
Update all tools#1563
Conversation
Add a .fantomasignore so `dotnet fantomas .` formats build.fsx, src/, benchmarks/ and the test code without passing paths. Only the sample projects under TestCases/ and SampleTestProjects/ are skipped, because the tests depend on their exact layout. CI, the Format and CheckFormat targets and the contributor docs now use the root command and the `check` subcommand. Fantomas could not parse the #if list in DependentFileCheckingTests.fs when no define is set, so the list now starts on its own line. The code itself is reformatted in the next commit.
Result of running `dotnet fantomas .` from the repository root. Only formatting changes, no code changes. Most of the churn comes from the Fantomas 8 default bracket style, which puts the braces of multiline records and lists on their own lines. Test code is formatted for the first time, so the whole of src/, test/, benchmarks/ and build.fsx now passes `dotnet fantomas check .`.
Ionide.Analyzers 0.19.0 is built against FSharp.Analyzers.SDK 0.39.0, so it loads in the 0.39.2 tool. FSharp.Analyzers.Build goes to 0.5.0. The tool runs on .NET 10 since 0.38.0, so the analyze job now installs it explicitly. The FSharp.Analyzers.SDK library that FSAC uses to host analyzers in the editor stays at 0.37.2: 0.38.0 and later target only net10.0 and pin FSharp.Core 10.1.400 exactly.
Fixes every warning the analyzers report for FsAutoComplete.Core and FsAutoComplete.Logging: Option.get and .Value calls (IONIDE-006), comparisons with "" (IONIDE-005) and `<> null` checks (IONIDE-011). Most changes keep the behaviour as it was. Code that used to throw on a missing value now handles it: an AsyncAVal cache that is still empty is filled instead of unwrapped, an AddCallback marking callback without a running transaction notifies right away, and a missing caller member name or file path becomes an empty string. Also add an empty .fantomasignore to the Formatting test case. That test runs Fantomas 6.2.2 from its own tool manifest, and Fantomas 6 applied the root .fantomasignore, which ignores TestCases/, so it skipped the test input and returned no edits. Fantomas 6 reads only the nearest ignore file, while Fantomas 8 still applies the root one, so `dotnet fantomas .` keeps skipping the folder.
Paket 12 only ships as a .NET 10 tool and drops paket.exe, the bootstrapper and Mono. Paket.Restore.targets is regenerated by Paket and no longer looks for them. paket.lock does not change. CI already restores with the .NET 10 SDK on every leg, so only the comments that named Paket 10 and net9.0 change.
Both are only used ad hoc; nothing in the build or CI calls them.
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.
Updates every tool in
.config/dotnet-tools.json. Each commit handles one tool, so the PR reads best commit by commit.Please merge with a merge commit or a rebase, not a squash.
.git-blame-ignore-revslists the format commit788c67dbby its SHA, and a squash would replace it.Fantomas 7.0.5 → 8.0.8
.fantomasignorelets everyone format from the root withdotnet fantomas .. It skips the sample projects (TestCases/,SampleTestProjects/) and build output.src/and nobody widened it later.Format/CheckFormattargets and the docs use the root command and Fantomas 8'schecksubcommand.788c67dbis the format commit (187 files, no code changes), and it is added to.git-blame-ignore-revs. Most of the churn is Fantomas 8's default bracket style, which we keep.TestCases/Formattinggets its own empty.fantomasignore. That test runs Fantomas 6.2.2, which reads only the nearest ignore file. Without it, Fantomas 6 used the root file and skipped the test input. Fantomas 8 still applies the root file, sodotnet fantomas .keeps skipping the folder.F# analyzers
fsharp-analyzerstool goes from 0.37.2 to 0.39.2,Ionide.Analyzersfrom 0.17.0 to 0.19.0 andFSharp.Analyzers.Buildfrom 0.3.0 to 0.5.0. Theanalyzejob now installs .NET 10, which the tool needs since 0.38.0.FSharp.Analyzers.SDKlibrary stays at 0.37.2. Versions 0.38.0 and later target onlynet10.0and pinFSharp.Core 10.1.400exactly.5ace001efixes the 37 warnings the analyzers reported: IONIDE-005 (11), IONIDE-006 (19) and IONIDE-011 (7). The 9 extra IONIDE-005 hits come from FCS 43.12.400, which showsmatch s with "" ->to the analyzer ass = ""(Fix quotations leaking empty-string match lowering into AST (#19873) dotnet/fsharp#19923). Only notes remain.FsAutoCompleteproject is not analyzed, because itspaket.referencesdoes not includeIonide.Analyzers. This was already the case before this PR.Paket 10.3.1 → 12.0.0-alpha001
.paket/Paket.Restore.targets, which drops the bootstrapper and Mono paths.paket.lockdoes not change.redirects: force. This is a false positive for net5+ projects, reported as FSharp.Core "redirects: force" warning for projects that target net5.0 and later fsprojects/Paket#4455.Telplin and ReportGenerator
Telplin goes from 0.9.6 to 0.17.1 and ReportGenerator from 5.5.4 to 5.5.11. Both are only used ad hoc; nothing in the build calls them.
Testing
TestCases/Formatting/.fantomasignorefix, that test passes with both compilers.dotnet fantomas check .reports nothing to format.dotnet build -c Releasesucceeds with Paket 12.FsAutoComplete.CoreandFsAutoComplete.Logging.