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
Address Sonar major issue - "Final Class" #709
Conversation
- Checks that class which has only private constructors is declared as final. Resolves: https://jira.duraspace.org/browse/FCREPO-1322
@yinlinchen, I realize that your IDE reformatted the code and that the reformatted versions also pass the checkstyle checks. However, including unrelated format updates in pull-requests makes it very difficult to inspect git history for functional changes. Please remove the format updates as a new commit on the branch. |
@awoods, I think the right way is to make the formatted correct. The Take this PR as an example, the import order in RdfSerializationUtils.java As you see the diff, github use dark red/dark green to show the indent, it Unless the source code formatted by intellij and Eclipse (or other IDE) are On Tue, Feb 10, 2015 at 8:32 PM, Andrew Woods notifications@github.com
Regards, |
The issue is with mixing functional and non-functional (formatting) changes in a single commit. If you want to reformat classes, you are welcome to. But if you do so, create a separate JIRA ticket for reformatting classes, and make sure that you do not include any functional updates in those commits and make sure that your commit comment clearly states that the updates are non-functional. |
@yinlinchen I have had this conversation with @awoods before, and I think others also have. There's no point in remonstrating with him. |
Ok, I agree with you. In Eclipse, there is a function which can reformat source code whole However, the modified files in this PR will be a lot, do you or any others For now, what I can do is to disable the Eclipse save action. Which is On Tue, Feb 10, 2015 at 11:34 PM, Andrew Woods notifications@github.com
|
- Checks that class which has only private constructors is declared as final. Resolves: https://jira.duraspace.org/browse/FCREPO-1322
@yinlinchen, I agree that reformatting the codebase is likely a waste of everyone's time... because the next person that comes along will want to do it all over again (you are not the first and will not be the last). |
Checkstyle import directives are listed here: |
Resolved with: 96993ce |
Resolves: https://jira.duraspace.org/browse/FCREPO-1322
Note that the Eclipse IDE is automatically format the source code by the defined rule in https://github.com/fcrepo4/fcrepo4/tree/3004d09f7c5bcca041736bfad6e5893e837bc720/src/site/eclipse
mvn checkstyle:check, mvn compile, mvn clean install are all passed.