-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use Ionide.Analyzers * Treat as warnings? * Update Ionide.Analyzers * Bump lock files. * Run both analyzer packages * Try relative paths * Touch file * Delete sarif files * Restore CI build * Use repository root as working directory. * Run both analyzer packages. * Fix Ionide reported problems. * Use AnalyzerFlags * Use FSharp.Analyzers.Build * Revert removal of build-devcontainer. * Add code root * Use AnalyzeFSharpProject * Use array postfix. * Address most analyzer reports * Revert "Address most analyzer reports" This reverts commit d8e93ed. * Update FSharp.Analyzer sdk * Update lock files. * Update packages * Use post fix in signature files. * Use 8.0.100 stable SDK. * Update dev container to 8.0.100
- Loading branch information
Showing
24 changed files
with
1,332 additions
and
90 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
<Project> | ||
|
||
<Target | ||
Name="AnalyzeProject" | ||
DependsOnTargets="Restore;ResolveAssemblyReferencesDesignTime;ResolveProjectReferencesDesignTime;ResolvePackageDependenciesDesignTime;FindReferenceAssembliesForReferences;_GenerateCompileDependencyCache;_ComputeNonExistentFileProperty;BeforeBuild;BeforeCompile;CoreCompile"> | ||
|
||
<Message Importance="normal" Text="fsc arguments: @(FscCommandLineArgs)" /> | ||
<Message Importance="High" Text="Analyzing $(MSBuildProjectFile)"/> | ||
<PropertyGroup> | ||
<DOTNET_ROLL_FORWARD_TO_PRERELEASE>1</DOTNET_ROLL_FORWARD_TO_PRERELEASE> | ||
<DOTNET_ROLL_FORWARD>LatestMajor</DOTNET_ROLL_FORWARD> | ||
</PropertyGroup> | ||
<Exec | ||
ContinueOnError="true" | ||
Command="dotnet fsharp-analyzers --fsc-args "@(FscCommandLineArgs)" --analyzers-path "$(PkgG-Research_FSharp_Analyzers)/analyzers/dotnet/fs" --exclude-analyzer PartialAppAnalyzer --fail-on-warnings GRA-STRING-001 GRA-STRING-002 GRA-STRING-003 GRA-UNIONCASE-001 --verbose --report "../../analysisreports/$(MSBuildProjectName)-analysis.sarif""> | ||
<Output TaskParameter="ExitCode" PropertyName="LastExitCode" /> | ||
</Exec> | ||
<Error Condition="'$(LastExitCode)' == '-2'" Text="Problems were found $(MSBuildProjectFile)" /> | ||
|
||
</Target> | ||
|
||
<PropertyGroup> | ||
<CodeRoot Condition="$(CodeRoot) == ''">.</CodeRoot> | ||
<FSharpAnalyzersOtherFlags>--analyzers-path "$(PkgG-Research_FSharp_Analyzers)/analyzers/dotnet/fs"</FSharpAnalyzersOtherFlags> | ||
<FSharpAnalyzersOtherFlags>$(FSharpAnalyzersOtherFlags) --analyzers-path "$(PkgIonide_Analyzers)/analyzers/dotnet/fs"</FSharpAnalyzersOtherFlags> | ||
<FSharpAnalyzersOtherFlags>$(FSharpAnalyzersOtherFlags) --exclude-analyzer PartialAppAnalyzer</FSharpAnalyzersOtherFlags> | ||
<FSharpAnalyzersOtherFlags>$(FSharpAnalyzersOtherFlags) --treat-as-warning GRA-STRING-001 GRA-STRING-002 GRA-STRING-003 GRA-UNIONCASE-001 IONIDE-001 IONIDE-002 IONIDE-003 IONIDE-004 IONIDE-005</FSharpAnalyzersOtherFlags> | ||
<FSharpAnalyzersOtherFlags>$(FSharpAnalyzersOtherFlags) --verbose</FSharpAnalyzersOtherFlags> | ||
<FSharpAnalyzersOtherFlags>$(FSharpAnalyzersOtherFlags) --code-root $(CodeRoot)</FSharpAnalyzersOtherFlags> | ||
<FSharpAnalyzersOtherFlags>$(FSharpAnalyzersOtherFlags) --report "$(CodeRoot)/analysisreports/$(MSBuildProjectName)-analysis.sarif"</FSharpAnalyzersOtherFlags> | ||
</PropertyGroup> | ||
</Project> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<Project> | ||
|
||
<ItemGroup> | ||
<ProjectsToAnalyze Include="src\**\*.fsproj" Exclude="src\Fantomas.FCS\Fantomas.FCS.fsproj"/> | ||
<ProjectsToAnalyze Include="src/**/*.fsproj" Exclude="src/Fantomas.FCS/Fantomas.FCS.fsproj"/> | ||
</ItemGroup> | ||
|
||
<Target Name="AnalyzeSolution"> | ||
<Exec Command="dotnet build -c Release $(SolutionFileName)" /> | ||
<MSBuild | ||
Projects="@(ProjectsToAnalyze)" | ||
Targets="AnalyzeProject" | ||
Properties="DesignTimeBuild=True;Configuration=Release;ProvideCommandLineArgs=True;SkipCompilerExecution=True" /> | ||
<PropertyGroup> | ||
<CodeRoot>$(SolutionDir)</CodeRoot> | ||
</PropertyGroup> | ||
<RemoveDir Directories="$(SolutionDir)/analysisreports" /> | ||
<MSBuild Projects="@(ProjectsToAnalyze)" | ||
Targets="AnalyzeFSharpProject" | ||
Properties="CodeRoot=$(CodeRoot)" ContinueOnError="true" /> | ||
</Target> | ||
|
||
</Project> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.100-preview.7.23376.3", | ||
"version": "8.0.100", | ||
"rollForward": "latestPatch" | ||
} | ||
} |
Oops, something went wrong.