You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add global using NotNoneAttribute
* Remove file-scope using Scripting.Runtime.NotNullAttribute
* Rename CodeAnalysis.NotNullAttribute to NotNullOnReturnAttribute
* Use NotNone in place of Microsoft.Scripting.Runtime.NotNull
* Replace NotDynamicNull with NotNone
* Replace NotNullOnReturn with NotNull
* IronPythonAnalyzer: Compare symbols correctly
* Update IronPythonAnalyzer messages
* Enforce [NotNone] usage in IronPythonAnalyzer
* Remove superfluous using Microsoft.Scripting.Runtime
privatestaticreadonlyDiagnosticDescriptorRule1=newDiagnosticDescriptor("IPY01",title:"Parameter which is marked not nullable does not have the NotNullAttribute",messageFormat:"Parameter '{0}' does not have the NotNullAttribute",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"Non-nullable reference type parameters should have the NotNullAttribute.");
23
-
privatestaticreadonlyDiagnosticDescriptorRule2=newDiagnosticDescriptor("IPY02",title:"Parameter which is marked nullable has the NotNullAttribute",messageFormat:"Parameter '{0}' should not have the NotNullAttribute",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"Nullable reference type parameters should not have the NotNullAttribute.");
22
+
privatestaticreadonlyDiagnosticDescriptorRule1=newDiagnosticDescriptor("IPY01",title:"Parameter which is marked not nullable does not have the NotNoneAttribute",messageFormat:"Parameter '{0}' does not have the NotNoneAttribute",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"Non-nullable reference type parameters should have the NotNoneAttribute.");
23
+
privatestaticreadonlyDiagnosticDescriptorRule2=newDiagnosticDescriptor("IPY02",title:"Parameter which is marked nullable has the NotNoneAttribute",messageFormat:"Parameter '{0}' should not have the NotNoneAttribute",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"Nullable reference type parameters should not have the NotNoneAttribute.");
24
24
privatestaticreadonlyDiagnosticDescriptorRule3=newDiagnosticDescriptor("IPY03",title:"BytesLikeAttribute used on a not supported type",messageFormat:"Parameter '{0}' declared bytes-like on unsupported type '{1}'",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"BytesLikeAttribute is only allowed on parameters of type IReadOnlyList<byte>, or IList<byte>.");
25
25
privatestaticreadonlyDiagnosticDescriptorRule4=newDiagnosticDescriptor("IPY04",title:"Call to PythonTypeOps.GetName",messageFormat:"Direct call to PythonTypeOps.GetName",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"To obtain a name of a python type of a given object to display to a user, use PythonOps.GetPythonTypeName.");
26
+
privatestaticreadonlyDiagnosticDescriptorRule5=newDiagnosticDescriptor("IPY05",title:"DLR NotNullAttribute accessed without an alias",messageFormat:"Microsoft.Scripting.Runtime.NotNullAttribute should be accessed though alias 'NotNone'",category:"Usage",DiagnosticSeverity.Warning,isEnabledByDefault:true,description:"NotNullAttribute is ambiguous between 'System.Diagnostics.CodeAnalysis.NotNullAttribute' and 'Microsoft.Scripting.Runtime.NotNullAttribute'. The latter should be accesses as 'NotNoneAttribute'.");
0 commit comments