@@ -49,7 +49,7 @@ item is TypeDefinitionAst
4949 foreach ( Tuple < string , StatementAst > outputType in outputTypes )
5050 {
5151 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 ) ;
5353 }
5454 }
5555 else
@@ -73,7 +73,7 @@ item is TypeDefinitionAst
7373 else
7474 {
7575 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 ) ;
7777 }
7878 }
7979 }
@@ -116,7 +116,7 @@ item is TypeDefinitionAst
116116 if ( ! String . Equals ( funcAst . Name , "Set" ) && ! Helper . Instance . AllCodePathReturns ( funcAst ) )
117117 {
118118 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 ) ;
120120 }
121121
122122 if ( String . Equals ( funcAst . Name , "Set" ) )
@@ -127,7 +127,7 @@ item is TypeDefinitionAst
127127 if ( ret . Pipeline != null )
128128 {
129129 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 ) ;
131131 }
132132 }
133133 }
@@ -143,7 +143,7 @@ item is TypeDefinitionAst
143143 {
144144 yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . ReturnCorrectTypesForDSCFunctionsNoTypeError ,
145145 funcAst . Name , dscClass . Name , returnTypes [ funcAst . Name ] ) ,
146- ret . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
146+ ret . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
147147 }
148148
149149 string typeName = Helper . Instance . GetTypeFromReturnStatementAst ( funcAst , ret , classes ) ;
@@ -161,7 +161,7 @@ item is TypeDefinitionAst
161161 {
162162 yield return new DiagnosticRecord ( string . Format ( CultureInfo . CurrentCulture , Strings . ReturnCorrectTypesForDSCFunctionsWrongTypeError ,
163163 funcAst . Name , dscClass . Name , returnTypes [ funcAst . Name ] , typeName ) ,
164- ret . Extent , GetName ( ) , DiagnosticSeverity . Strict , fileName ) ;
164+ ret . Extent , GetName ( ) , DiagnosticSeverity . Information , fileName ) ;
165165 }
166166 }
167167 }
0 commit comments