avoid array allocation in qname parsing #1040
Annotations
5 errors
|
Run
Process completed with exit code 1.
|
|
Run:
src/DocumentFormat.OpenXml.Framework/Validation/Schema/CompatibilityRuleAttributesValidator.cs#L192
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'DocumentFormat.OpenXml.Validation.Schema.CompatibilityRuleAttributesValidator.ValidateQNameList(string?, System.Collections.Generic.HashSet<string>, DocumentFormat.OpenXml.Validation.ValidationContext)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Run:
src/DocumentFormat.OpenXml.Framework/MCContext.cs#L141
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'DocumentFormat.OpenXml.MCContext.ParseQNameList(string, DocumentFormat.OpenXml.MCContext.OnInvalidValue)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Run:
src/DocumentFormat.OpenXml.Framework/Validation/Schema/CompatibilityRuleAttributesValidator.cs#L192
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'DocumentFormat.OpenXml.Validation.Schema.CompatibilityRuleAttributesValidator.ValidateQNameList(string?, System.Collections.Generic.HashSet<string>, DocumentFormat.OpenXml.Validation.ValidationContext)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|
|
Run:
src/DocumentFormat.OpenXml.Framework/MCContext.cs#L141
'string.IndexOf(char)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'DocumentFormat.OpenXml.MCContext.ParseQNameList(string, DocumentFormat.OpenXml.MCContext.OnInvalidValue)' with a call to 'string.IndexOf(char, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
|