File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) , and this project adheres
6
6
to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
- ## [ Unreleased ]
8
+ ## [ 0.26.1 ] - 2024-08-05
9
9
10
10
### Fixed
11
11
* [ Reset the console foreground colour after printing results] ( https://github.com/ionide/FSharp.Analyzers.SDK/pull/216 ) (thanks @Numpsy !)
12
+ * [ Only Analyze projects passed in via CLI] ( https://github.com/ionide/FSharp.Analyzers.SDK/pull/217 ) (thanks @TheAngryByrd )
12
13
13
14
## [ 0.26.0] - 2024-05-15
14
15
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ let rec mkKn (ty: Type) =
119
119
120
120
let mutable logger : ILogger = Abstractions.NullLogger.Instance
121
121
122
+ /// <summary>Runs MSBuild to create FSharpProjectOptions based on the projPaths.</summary>
123
+ /// <returns>Returns only the FSharpProjectOptions based on the projPaths and not any referenced projects.</returns>
122
124
let loadProjects toolsPath properties ( projPaths : string list ) =
123
125
async {
124
126
let projPaths =
@@ -140,7 +142,12 @@ let loadProjects toolsPath properties (projPaths: string list) =
140
142
logger.LogError( " Failed to load project '{0}'" , failedLoads)
141
143
exit 1
142
144
143
- return FCS.mapManyOptions projectOptions |> Seq.toList
145
+ let loaded =
146
+ FCS.mapManyOptions projectOptions
147
+ |> Seq.filter ( fun p -> projPaths |> List.exists ( fun x -> x = p.ProjectFileName)) // We only want to analyze what was passed in
148
+ |> Seq.toList
149
+
150
+ return loaded
144
151
}
145
152
146
153
let runProject
You can’t perform that action at this time.
0 commit comments