Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify warning levels for F# projects #9511

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,37 @@
<EnumValue Name="embedded" DisplayName="Embedded in DLL/EXE, portable across platforms" />
</EnumProperty>

<!--
From: https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/compiler-options

"warn:warning-level" Sets a warning level (0 to 5). The default level is 3. Each warning is given a level based on its severity. Level 5 gives more, but less severe, warnings than level 1.
-->
<EnumProperty Name="WarningLevel"
DisplayName="Warning level"
Description="Specifies the level to display for compiler warnings. Higher levels produce more warnings, and include all warnings from lower levels."
HelpUrl="https://go.microsoft.com/fwlink/?linkid=2146798"
Category="ErrorsAndWarnings">
<EnumProperty.Metadata>
<NameValuePair Name="EditabilityCondition">
<NameValuePair.Value>
(has-evaluated-value "Build" "WarningLevelOverridden" false)
</NameValuePair.Value>
</NameValuePair>
</EnumProperty.Metadata>
<EnumValue Name="0"
DisplayName="0 - Fewest warnings, including most severe issues" />
<EnumValue Name="1"
DisplayName="1" />
<EnumValue Name="2"
DisplayName="2" />
<EnumValue Name="3"
DisplayName="3 - Default warning level" />
<EnumValue Name="4"
DisplayName="4" />
<EnumValue Name="5"
DisplayName="5 - Most warnings, including less severe issues" />
</EnumProperty>

<StringProperty Name="LangVersion" Visible="False" />

<BoolProperty Name="CheckForOverflowUnderflow" Visible="False" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading