@@ -49,7 +49,7 @@ item is TypeDefinitionAst
49
49
foreach ( Tuple < string , StatementAst > outputType in outputTypes )
50
50
{
51
51
yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . ReturnCorrectTypesForSetTargetResourceFunctionsDSCError ) ,
52
- outputType . Item2 . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
52
+ outputType . Item2 . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
53
53
}
54
54
}
55
55
else
@@ -73,7 +73,7 @@ item is TypeDefinitionAst
73
73
else
74
74
{
75
75
yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . ReturnCorrectTypesForGetTestTargetResourceFunctionsDSCResourceError ,
76
- func . Name , returnTypes [ func . Name ] , type ) , outputType . Item2 . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
76
+ func . Name , returnTypes [ func . Name ] , type ) , outputType . Item2 . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
77
77
}
78
78
}
79
79
}
@@ -116,7 +116,7 @@ item is TypeDefinitionAst
116
116
if ( ! String . Equals ( funcAst . Name , "Set" ) && ! Helper . Instance . AllCodePathReturns ( funcAst ) )
117
117
{
118
118
yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . NotAllCodePathReturnsDSCFunctionsError , funcAst . Name , dscClass . Name ) ,
119
- funcAst . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
119
+ funcAst . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
120
120
}
121
121
122
122
if ( String . Equals ( funcAst . Name , "Set" ) )
@@ -127,7 +127,7 @@ item is TypeDefinitionAst
127
127
if ( ret . Pipeline != null )
128
128
{
129
129
yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . ReturnCorrectTypesForSetFunctionsDSCError , dscClass . Name ) ,
130
- funcAst . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
130
+ funcAst . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
131
131
}
132
132
}
133
133
}
@@ -143,7 +143,7 @@ item is TypeDefinitionAst
143
143
{
144
144
yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . ReturnCorrectTypesForDSCFunctionsNoTypeError ,
145
145
funcAst . Name , dscClass . Name , returnTypes [ funcAst . Name ] ) ,
146
- ret . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
146
+ ret . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
147
147
}
148
148
149
149
string typeName = Helper . Instance . GetTypeFromReturnStatementAst ( funcAst , ret , classes ) ;
@@ -161,7 +161,7 @@ item is TypeDefinitionAst
161
161
{
162
162
yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . ReturnCorrectTypesForDSCFunctionsWrongTypeError ,
163
163
funcAst . Name , dscClass . Name , returnTypes [ funcAst . Name ] , typeName ) ,
164
- ret . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
164
+ ret . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
165
165
}
166
166
}
167
167
}
0 commit comments