Skip to content

Use AsSpan() in Tests too

58bd2c6
Select commit
Loading
Failed to load commit list.
Merged

Memory span #183

Use AsSpan() in Tests too
58bd2c6
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 25, 2025 in 13s

Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 135 in src/Html2OpenXml/Utilities/SpanExtensions.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 30 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZp6CUVezPKghZq2z27o&open=AZp6CUVezPKghZq2z27o&pullRequest=183

Check failure on line 43 in src/Html2OpenXml/Primitives/HtmlFont.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZp6CUWmzPKghZq2z27r&open=AZp6CUWmzPKghZq2z27r&pullRequest=183

Check warning on line 12 in examples/Benchmark/Benchmarks.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move 'Benchmarks' into a named namespace.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZp6CUYqzPKghZq2z27t&open=AZp6CUYqzPKghZq2z27t&pullRequest=183

Check failure on line 56 in src/Html2OpenXml/Utilities/Converter.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZp6CUV2zPKghZq2z27p&open=AZp6CUV2zPKghZq2z27p&pullRequest=183

Check warning on line 40 in src/Html2OpenXml/Expressions/HorizontalLineExpression.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment of 'border' from this expression.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZq72iZDPx18q-Pwz2y8&open=AZq72iZDPx18q-Pwz2y8&pullRequest=183

Check warning on line 11 in examples/Benchmark/ResourceHelper.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move 'ResourceHelper' into a named namespace.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZp6CUY-zPKghZq2z27u&open=AZp6CUY-zPKghZq2z27u&pullRequest=183

Check failure on line 38 in src/Html2OpenXml/Primitives/Unit.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZp6CUW9zPKghZq2z27s&open=AZp6CUW9zPKghZq2z27s&pullRequest=183

Check warning on line 39 in src/Html2OpenXml/Expressions/HorizontalLineExpression.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract the assignment of 'styleAttributes' from this expression.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZq72iZDPx18q-Pwz2y7&open=AZq72iZDPx18q-Pwz2y7&pullRequest=183

Check failure on line 36 in src/Html2OpenXml/Collections/HtmlAttributeCollection.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 25 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=onizet_html2openxml&issues=AZp6CUOczPKghZq2z27n&open=AZp6CUOczPKghZq2z27n&pullRequest=183