Detect Option Strict for VB projects

This commit is contained in:
Zev Spitz
2022-01-20 10:55:46 +02:00
parent 06e1ca2ffc
commit dc64d34a3c

View File

@@ -232,13 +232,15 @@ void printProjectWarnings(PortInfo info) {
nullable, nullable,
implicitUsing, implicitUsing,
rootNamespace, rootNamespace,
langVersion langVersion,
optionStrict
) = ( ) = (
getValue(parent, "TargetFramework", "TargetFrameworks"), getValue(parent, "TargetFramework", "TargetFrameworks"),
getValue(parent, "Nullable"), getValue(parent, "Nullable"),
getValue(parent, "ImplicitUsings"), getValue(parent, "ImplicitUsings"),
getValue(parent, "RootNamespace"), getValue(parent, "RootNamespace"),
getValue(parent, "LangVersion") getValue(parent, "LangVersion"),
getValue(parent, "OptionStrict")
); );
if (framework != "net6.0") { if (framework != "net6.0") {
@@ -267,6 +269,9 @@ void printProjectWarnings(PortInfo info) {
if (langVersion != "16.9") { if (langVersion != "16.9") {
warnings.Add($"LangVersion: {langVersion}"); warnings.Add($"LangVersion: {langVersion}");
} }
if (optionStrict != "On") {
warnings.Add($"OptionStrict: {optionStrict}");
}
} }
if (warnings.Any()) { if (warnings.Any()) {