-
Notifications
You must be signed in to change notification settings - Fork 131
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
Codestyle #3840
Codestyle #3840
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should VIVO have its own checkstyles? Using Vitro from a sibling directory is not desirable.
I suppose there is no any sense in making different style rules for Vitro and VIVO, but we might also copy the same checkstyle.xml from Vitro to VIVO. @wwelling the practice that Vitro and VIVO projects have to be in sibling directories will be changed in your PRs for improving build process? |
@chenejac no that does not change in the build/deploy decoupling effort. However, we should try, if possible, to not further the coupling. Isn't it possible to build VIVO without Vitro as a sibling directory as long as you do not require any custom changes or specific unpublished Vitro artifact? |
Yes, you are right. I have copied checkstyle.xml and checkstyle-suppressions.xml to root of the VIVO project and fixed links in pom.xml file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignoring comment cleanup as missed last review. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's increase character limit to 120as we discussed in committers call some time ago.
VIVO GitHub issue: 3814
Linked Vitro PR
https://wiki.lyrasis.org/display/VIVO/Code+Style+Guide
What does this pull request do?
Adding code style into the VIVO/Vitro project
What's new?
checkstyle.xml added into the Vitro root
checkstyle-suppression.xml added in the Vitro root (empty at the moment)
A wiki page added - https://wiki.lyrasis.org/display/VIVO/Code+Style+Guide
checkstyle.xml file linked in pom.xml file (at the moment configured to be skipped)
How should this be tested?
Just for reviewing purposes there is commit with code formatted by using this code style at chenejac@8638019
Checking style is turned off by definition of suppressions at the level of a Java file:
<suppress files="src[\\/]main[\\/]java[\\/]edu[\\/]cornell[\\/]mannlib[\\/]semservices[\\/]service[\\/]impl[\\/]AgrovocService\.java" checks="."/>
Interested parties
Tag (@ mention) interested parties or, if unsure, @VIVO-project/vivo-committers