Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some build warnings in sample apps (#6207)
## Summary of changes Fixes several warnings for things flagged in sample apps ## Reason for change The warnings have been bugging me in CI recently ## Implementation details Fixed the following: - `[WRN] CompileSamplesWindow: D:\a\1\s\tracer\test\test-applications\integrations\Samples.InstrumentedTests\Vulnerabilities\Xss\SqlDbReaderTests.cs(29,34): warning CS8625: Cannot convert null literal to non-nullable reference type.` - `[WRN] CompileSamplesWindow: D:\a\1\s\tracer\test\test-applications\integrations\Samples.InstrumentedTests\Vulnerabilities\SSRF\UrlEscapeTests.cs(14,20): warning CS0414: The field 'UrlEscapeTests._taintedFormat1Arg' is assigned but its value is never used` - `[WRN] CompileSamplesWindow: D:\a\1\s\tracer\test\test-applications\integrations\Samples.InstrumentedTests\Vulnerabilities\SSRF\UrlEscapeTests.cs(15,20): warning CS0414: The field 'UrlEscapeTests._untaintedString' is assigned but its value is never used` - `[WRN] CompileSamplesWindow: D:\a\1\s\tracer\test\test-applications\integrations\Samples.InstrumentedTests\Vulnerabilities\SSRF\UrlEscapeTests.cs(12,20): warning CS0414: The field 'UrlEscapeTests._taintedFormat2Args' is assigned but its value is never used` - `[WRN] CompileSamplesWindow: D:\a\1\s\tracer\test\test-applications\integrations\Samples.InstrumentedTests\Vulnerabilities\SSRF\UrlEscapeTests.cs(16,20): warning CS0414: The field 'UrlEscapeTests._otherUntaintedString' is assigned but its value is never used` - `[WRN] CompileSamplesWindow: CSC : warning AD0001: Analyzer 'Microsoft.AspNetCore.Analyzers.RouteHandlers.RouteHandlerAnalyzer' threw an exception of type 'System.InvalidOperationException' with message 'Failed to resolve well-known type 'Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions'` - `[WRN] CompileSamplesWindow: D:\a\1\s\tracer\test\test-applications\security\Samples.Security.AspNetCore5\Controllers\IastController.cs(1035,30): warning CS0168: The variable 'ex' is declared but never used` ## Test coverage This is the test
- Loading branch information