Skip to content

Commit

Permalink
Turn on TreatWarningsAsErrors for all warnings across the board
Browse files Browse the repository at this point in the history
  • Loading branch information
abelbraaksma committed Dec 24, 2023
1 parent 051fdb3 commit 7d1d603
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<Project>
<Import Project="Version.props" />
<PropertyGroup>
<!-- Fail CI warning FS3511: This state machine is not statically compilable.-->
<WarningsAsErrors>FS3511</WarningsAsErrors>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/FSharp.Control.TaskSeq/FSharp.Control.TaskSeq.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Computation expression 'taskSeq' for processing IAsyncEnumerable sequences and module functions</Title>
Expand All @@ -13,6 +14,8 @@ The 'taskSeq' computation expression adds support for awaitable asynchronous seq

Generates optimized IL code through resumable state machines, and comes with a comprehensive set of functions in module 'TaskSeq'. See README for documentation and more info.</Description>
<Copyright>Copyright 2023</Copyright>

<!-- package stuff -->
<PackageProjectUrl>https://github.com/fsprojects/FSharp.Control.TaskSeq</PackageProjectUrl>
<RepositoryUrl>https://github.com/fsprojects/FSharp.Control.TaskSeq</RepositoryUrl>
<PackageIcon>taskseq-icon.png</PackageIcon>
Expand Down

0 comments on commit 7d1d603

Please sign in to comment.