Skip to content

Commit

Permalink
fix intergration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Nov 4, 2024
1 parent 7687116 commit bb26b05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public Task<IDictionary<string, SearchResult>> SearchAsync(string term, string?
if (term.Split(termSeparator, StringSplitOptions.RemoveEmptyEntries).Any(Keywords.Contains))

Check warning on line 17 in src/Kiota.Builder/SearchProviders/OpenApiSpec/OpenApiSpecSeachProvider.cs

View workflow job for this annotation

GitHub Actions / Build

Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)

Check warning on line 17 in src/Kiota.Builder/SearchProviders/OpenApiSpec/OpenApiSpecSeachProvider.cs

View workflow job for this annotation

GitHub Actions / Build

Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
{
return Task.FromResult<IDictionary<string, SearchResult>>(new Dictionary<string, SearchResult> {
{ "petstore", new SearchResult(ApiTitle, ApiDescription, new Uri("https://petstore.swagger.io/v1"), new Uri("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml"), new List<string> { "1.0.0" }) }
{ "petstore", new SearchResult(ApiTitle, ApiDescription, new Uri("https://petstore.swagger.io/v1"), new Uri("https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/tests/v3.0/pass/petstore.yaml"), new List<string> { "1.0.0" }) }

Check warning on line 20 in src/Kiota.Builder/SearchProviders/OpenApiSpec/OpenApiSpecSeachProvider.cs

View workflow job for this annotation

GitHub Actions / Build

Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)

Check warning on line 20 in src/Kiota.Builder/SearchProviders/OpenApiSpec/OpenApiSpecSeachProvider.cs

View workflow job for this annotation

GitHub Actions / Build

Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)

Check warning on line 20 in src/Kiota.Builder/SearchProviders/OpenApiSpec/OpenApiSpecSeachProvider.cs

View workflow job for this annotation

GitHub Actions / Build

Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)

Check warning on line 20 in src/Kiota.Builder/SearchProviders/OpenApiSpec/OpenApiSpecSeachProvider.cs

View workflow job for this annotation

GitHub Actions / Build

Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
});
}
return Task.FromResult<IDictionary<string, SearchResult>>(new Dictionary<string, SearchResult>());
Expand Down

0 comments on commit bb26b05

Please sign in to comment.