diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index fa6873e..10e12e2 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -15,7 +15,7 @@ ] }, "fsharp-analyzers": { - "version": "0.21.0", + "version": "0.22.0", "commands": [ "fsharp-analyzers" ] diff --git a/CHANGELOG.md b/CHANGELOG.md index 51da872..250cf94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ # Changelog -## Unreleased +## 0.6.0 - 2023-12-20 ### Added * Add TypedInterpolatedStringsAnalyzer. [#40](https://github.com/G-Research/fsharp-analyzers/pull/40) +### Changed +* Update FSharp.Analyzers.SDK to `0.22.0`. [#27](https://github.com/G-Research/fsharp-analyzers/pull/45) + ## 0.5.1 - 2023-12-06 ### Fixed diff --git a/Directory.Packages.props b/Directory.Packages.props index ee192b4..d69070d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + diff --git a/src/FSharp.Analyzers/TypedInterpolatedStringsAnalyzer.fs b/src/FSharp.Analyzers/TypedInterpolatedStringsAnalyzer.fs index 9469791..34dfcd6 100644 --- a/src/FSharp.Analyzers/TypedInterpolatedStringsAnalyzer.fs +++ b/src/FSharp.Analyzers/TypedInterpolatedStringsAnalyzer.fs @@ -22,7 +22,7 @@ let typedInterpolatedStringsAnalyzer : Analyzer = let walker = { new SyntaxCollectorBase() with - override x.WalkExpr (expr : SynExpr) = + override x.WalkExpr (_, expr : SynExpr) = match expr with | SynExpr.InterpolatedString (contents = contents) -> contents diff --git a/src/FSharp.Analyzers/UnionCaseAnalyzer.fs b/src/FSharp.Analyzers/UnionCaseAnalyzer.fs index cace363..7372b0b 100644 --- a/src/FSharp.Analyzers/UnionCaseAnalyzer.fs +++ b/src/FSharp.Analyzers/UnionCaseAnalyzer.fs @@ -65,7 +65,10 @@ let findAllShadowingCases let walker = { new SyntaxCollectorBase() with override _.WalkTypeDefn - (SynTypeDefn (typeInfo = SynComponentInfo (attributes = synAttributeLists) ; typeRepr = repr)) + ( + _, + SynTypeDefn (typeInfo = SynComponentInfo (attributes = synAttributeLists) ; typeRepr = repr) + ) = let hasReqQualAccAttribute = synAttributeLists