Skip to content

Commit

Permalink
Setup Java version on sonarqube pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanderlan Gomes da Silva committed Oct 7, 2023
1 parent 0bd7173 commit 9c5b5d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
name: Sonar Analysis
runs-on: windows-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 1.11
java-version: '17'
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
Expand Down
7 changes: 4 additions & 3 deletions Orion.Api/Middleware/OrionMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ private async Task ProccessResponseAsync(HttpContext context, HttpStatusCode sta
{
var errrorReturn = JsonConvert.SerializeObject(errorResponse);

if(statusCode == HttpStatusCode.InternalServerError)
_logger.LogError(exception, "Internal Server Error: {message}", errorResponse.Errors);

if (statusCode == HttpStatusCode.InternalServerError)
foreach (var error in errorResponse.Errors)
_logger.LogError(exception, "Internal Server Error: {message}", error);

context.Response.StatusCode = (int)statusCode;
context.Response.ContentType = "application/json";

Expand Down
2 changes: 1 addition & 1 deletion Orion.Data/UnitOfWork/UnitOfWork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Orion.Data.UnitOfWork
{
public class UnitOfWork : IUnitOfWork, IDisposable
public class UnitOfWork : IUnitOfWork
{
private DataContext DbContext { get; }

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The main objective is to start projects with a clean and simple architecture, wi
+ Unmapped members Configuration.
+ Swagger
+ Fluent Validation
+ Microsoft Identity Authentication
+ Authentication and Authorization
+ JWT Token;
+ Claims and profiles configuration;
+ Personalized decorators;
Expand Down

0 comments on commit 9c5b5d3

Please sign in to comment.