Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkstyle and github workflow action #20

Closed
wants to merge 2 commits into from
Closed

Checkstyle and github workflow action #20

wants to merge 2 commits into from

Conversation

RickPoleshuck
Copy link
Contributor

No description provided.

Signed-off-by: Rick Poleshuck <RickPoleshuck@gmail.com>
Signed-off-by: Rick Poleshuck <RickPoleshuck@gmail.com>
@amfred
Copy link
Member

amfred commented Aug 25, 2021

There's a lot going on in this PR Rick, so it's hard to review - can you summarize what's going on in the comments? I put my specific questions into my code review here.

with:
java-version: '11'
distribution: 'adopt'
- run: mvn --batch-mode --update-snapshots -Pprod verify
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm new to Github Actions - does this actually deploy somewhere?

<property name="message" value="No printing to console, use a logger."/>
</module>
</module>
</module>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with this particular linter, but it should be good to add.

<suppressions>
<!-- io.swagger package is generated, don't run checks -->
<suppress files="[\\/]io[\\/]swagger[\\/]" checks="[a-zA-Z0-9]*"/>
</suppressions>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

return qr;
}


}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the intent of these changes?

public QueryResult<Client> getAllClientsOfAttorney(String attorneyId) {
QueryResult<Client> qr = db.query(new QueryBuilder(eq("attorneyId", attorneyId)).build(), Client.class);
return qr;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the intent of these changes?

String healthURL = (uriInfo.getAbsolutePath() + "/v1/health").replaceAll("(?<!http:)\\/\\/", "/");
String exampleURL = (uriInfo.getAbsolutePath() + "/v1/example").replaceAll("(?<!http:)\\/\\/", "/");
return Response.ok("{\"health\":\"" + healthURL + "\",\"example\":\"" + exampleURL + "\"}").build();
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just a simple formatting change then?

@RickPoleshuck
Copy link
Contributor Author

RickPoleshuck commented Aug 26, 2021 via email

@RickPoleshuck
Copy link
Contributor Author

RickPoleshuck commented Sep 6, 2021

There's a lot going on in this PR Rick, so it's hard to review - can you summarize what's going on in the comments? I put my specific questions into my code review here.

There are 3 parts to this PR.

  1. Checkstyle plugin and configuration was added to allow for static code quality analysis. As a first use of code quality analysis for this project, the checks are very limited. Look at checkstyle.xml if you want to see what particular checks are done.

  2. The code was adjusted to pass all the checks implemented. No functionality was changed.

  3. A github action was added to run these tests when pushed. This is performed by building the application, running all unit tests including code quality checks. No deployment is performed. Please look at https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html to understand the mvn lifecycle . 'verify' does not do an install or a deploy, but does perform any integration tests implemented.

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

👋 Hi! This pull request has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.

@github-actions
Copy link

👋 Hi! This pull request has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.

@demilolu
Copy link
Contributor

@kossiefu who should be the reviewer here from MS?

@kossiefu
Copy link
Contributor

@RickPoleshuck, @upkarlidder do we still want to move forward with this change? It aligns with what the ms_cohort haas been working on. We can build on top of it.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

6 participants