Refactor readers to reduce surface area #1206
Annotations
8 errors and 10 warnings
Build and analyze:
test/Microsoft.OpenApi.Hidi.Tests/Services/OpenApiFilterServiceTests.cs#L235
Argument 1: cannot convert from 'System.IO.FileStream' to 'string'
|
Build and analyze:
test/Microsoft.OpenApi.Hidi.Tests/Services/OpenApiFilterServiceTests.cs#L235
Argument 2: cannot convert from 'string' to 'Microsoft.OpenApi.Reader.OpenApiReaderSettings?'
|
Build and analyze:
test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs#L1710
Argument 1: cannot convert from 'System.IO.FileStream' to 'string'
|
Build and analyze:
test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs#L1710
Argument 2: cannot convert from 'string' to 'Microsoft.OpenApi.Reader.OpenApiReaderSettings?'
|
Build and analyze:
test/Microsoft.OpenApi.Hidi.Tests/Services/OpenApiFilterServiceTests.cs#L235
Argument 1: cannot convert from 'System.IO.FileStream' to 'string'
|
Build and analyze:
test/Microsoft.OpenApi.Hidi.Tests/Services/OpenApiFilterServiceTests.cs#L235
Argument 2: cannot convert from 'string' to 'Microsoft.OpenApi.Reader.OpenApiReaderSettings?'
|
Build and analyze:
test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs#L1710
Argument 1: cannot convert from 'System.IO.FileStream' to 'string'
|
Build and analyze:
test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs#L1710
Argument 2: cannot convert from 'string' to 'Microsoft.OpenApi.Reader.OpenApiReaderSettings?'
|
Build and analyze:
src/Microsoft.OpenApi/Models/OpenApiDocument.cs#L140
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
|
Build and analyze:
src/Microsoft.OpenApi/Models/OpenApiSecurityRequirement.cs#L126
Private classes which are not derived in the current assembly should be marked as 'sealed'. (https://rules.sonarsource.com/csharp/RSPEC-3260)
|
Build and analyze:
src/Microsoft.OpenApi/Reader/OpenApiJsonReader.cs#L119
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
|
Build and analyze:
src/Microsoft.OpenApi/Reader/V2/OpenApiSecuritySchemeDeserializer.cs#L74
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
|
Build and analyze:
src/Microsoft.OpenApi/Reader/OpenApiDiagnostic.cs#L56
Move 'IDiagnosticExtensions' into a named namespace. (https://rules.sonarsource.com/csharp/RSPEC-3903)
|
Build and analyze:
src/Microsoft.OpenApi/Writers/OpenApiYamlWriter.cs#L75
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
|
Build and analyze:
src/Microsoft.OpenApi/JsonPointer.cs#L51
Refactor 'ParentPointer' into a method, properties should not copy collections. (https://rules.sonarsource.com/csharp/RSPEC-2365)
|
Build and analyze:
src/Microsoft.OpenApi/Models/JsonSchemaType.cs#L12
Rename this enumeration to match the regular expression: '^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$'. (https://rules.sonarsource.com/csharp/RSPEC-2342)
|
Build and analyze:
src/Microsoft.OpenApi/Models/OpenApiConstants.cs#L686
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
|
Build and analyze:
src/Microsoft.OpenApi/Models/OpenApiConstants.cs#L691
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
|
Loading