Skip to content

Bump fsharp-analyzers from 0.38.0 to 0.41.1 - #175

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/dot-config/fsharp-analyzers-0.41.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/dot-config/fsharp-analyzers-0.41.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Updated fsharp-analyzers from 0.38.0 to 0.41.1.

Release notes

Sourced from fsharp-analyzers's releases.

0.41.1

0.41.1

Added

  • TASTCollecting.getDeclarations returns the declarations of a typed tree. Calls with the same FSharpImplementationFileContents object share one converted list.

Fixed

Special thanks to @​1eyewonder!

https://www.nuget.org/packages/FSharp.Analyzers.SDK/0.41.1
https://www.nuget.org/packages/FSharp.Analyzers.SDK.Testing/0.41.1
https://www.nuget.org/packages/fsharp-analyzers/0.41.1

0.41.0

0.41.0

Added

  • A run where a project or script does not type check no longer looks clean outside the log. The SARIF report lists every type error as a toolExecutionNotifications entry and sets executionSuccessful to false. Pass --fail-on-type-errors to also exit with code -5 (TypeCheckFailed) in that case. The switch is opt-in, so a run that analyzes before building keeps its exit code. A #load or #r in a script that cannot be resolved counts as a type error too.

Changed

  • Breaking: Client.RunAnalyzersSafely is now Client.RunAnalyzers, and the old Client.RunAnalyzers, which only returned the messages, is gone. It hid an analyzer that threw in the log, so a caller could not tell its messages were missing. RunAnalyzers returns an AnalysisResult per analyzer and does not throw. To get only the messages, collect the Ok outputs.
  • Breaking: AnalysisResult.Output is now Result<AnalyzerMessage list, exn> instead of Result<Message list, exn>, so a caller keeps the name, help link and short description of the analyzer behind each message. Read .Message on each item to get the Message as before.
  • An error from loading a script, such as a #load that cannot be resolved, is no longer logged at error level as Script ... has a diagnostic. It is logged with the type errors, as a warning under did not type check, and each type error now names its file and error code. A warning from loading a script is still logged as Script ... has a diagnostic, but at warning level instead of error level.

Fixed

  • File paths in the SARIF report and in --output-format github are relative to the code root. Without a trailing separator on --code-root (or the current directory, its default), every path started with the name of the code root directory, such as repo/src/A.fs instead of src/A.fs. A code root with a trailing separator is unaffected. GitHub code scanning re-creates open alerts once at the corrected paths, because it ties an alert to its file path.
  • --warnaserror, which TreatWarningsAsErrors passes to the compiler, is ignored when type checking for the analyzers, so a warning no longer counts as a type error.
  • An analyzer that throws no longer crashes the CLI. Its exception is logged, the other analyzers keep their messages, the SARIF report lists the failure as a toolExecutionNotifications entry with executionSuccessful set to false, and the CLI exits with -4 (AnalysisAborted). Previously the run stopped with exit code 22, without a SARIF report and without the messages of the other analyzers.
  • An analyzer written as a function that throws before it returns its Async now reports its own exception, instead of a TargetInvocationException with the message Exception has been thrown by the target of an invocation.

Special thanks to @​nojaf!

https://www.nuget.org/packages/FSharp.Analyzers.SDK/0.41.0
https://www.nuget.org/packages/FSharp.Analyzers.SDK.Testing/0.41.0
https://www.nuget.org/packages/fsharp-analyzers/0.41.0

0.40.0

0.40.0

Changed

  • Breaking: Update FSharp.Compiler.Service to 43.12.402 and FSharp.Core to 10.1.402. FSharp.Compiler.Service is not binary compatible between releases, so analyzers built against 0.39 need to be rebuilt.
  • FSharp.Compiler.Service is now pinned to an exact version, like FSharp.Core already was. NuGet now warns (NU1608) when an analyzer project resolves a newer FSharp.Compiler.Service than the SDK was built with, instead of accepting it silently.

Fixed

  • InlineAnnotation is AlwaysInline again for inline values from assemblies built with F# 4.7 or older (dotnet/fsharp#​20260).
  • An analyzer assembly with a dependency that cannot be loaded, such as a newer FSharp.Compiler.Service than the tool ships, is now skipped with an error. Previously the FileNotFoundException crashed the run and no analyzer ran at all.

https://www.nuget.org/packages/FSharp.Analyzers.SDK/0.40.0
https://www.nuget.org/packages/FSharp.Analyzers.SDK.Testing/0.40.0
https://www.nuget.org/packages/fsharp-analyzers/0.40.0

0.39.2

0.39.2

Fixed

  • A repeated --script flag no longer silently drops all but the last occurrence. Every list-valued flag now accumulates the way --project and --analyzers-path already did, so --script a.fsx --script b.fsx means the same as --script a.fsx b.fsx. Previously a caller that built its arguments in a loop analyzed a subset of what it asked for and still got a clean run reported. The --treat-as-*, --exclude-files, --include-files, --exclude-analyzers and --include-analyzers flags rejected a repeat outright and now accumulate too.

Special thanks to @​nojaf!

https://www.nuget.org/packages/FSharp.Analyzers.SDK/0.39.2
https://www.nuget.org/packages/FSharp.Analyzers.SDK.Testing/0.39.2
https://www.nuget.org/packages/fsharp-analyzers/0.39.2

0.39.1

0.39.1

Added

  • Type check errors in a project or script are now reported as a warning, instead of silently producing fewer analyzer messages.

Fixed

Special thanks to @​Thorium and @​nojaf!

https://www.nuget.org/packages/FSharp.Analyzers.SDK/0.39.1
https://www.nuget.org/packages/FSharp.Analyzers.SDK.Testing/0.39.1
https://www.nuget.org/packages/fsharp-analyzers/0.39.1

0.39.0

0.39.0

Added

  • Allow wildcards in the --treat-as-* switches, e.g. --treat-as-error "*" or --treat-as-error "GRA-*". An exact code takes precedence over a pattern.
  • Agent skill upgrade-fsharp-analyzers for upgrading the tool and analyzer packages to matching versions, installable via npx skills add ionide/FSharp.Analyzers.SDK.
  • Document the fsharp-analyzer NuGet tag and SDK version release notes convention for analyzer authors.

Special thanks to @​nojaf!

https://www.nuget.org/packages/FSharp.Analyzers.SDK/0.39.0
https://www.nuget.org/packages/FSharp.Analyzers.SDK.Testing/0.39.0
https://www.nuget.org/packages/fsharp-analyzers/0.39.0

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: fsharp-analyzers
  dependency-version: 0.41.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants