You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2020/06/20 07:27:09 UTC

[GitHub] [fineract] percyashu opened a new pull request #1092: FINERACT-822 Editing Checks list

percyashu opened a new pull request #1092:
URL: https://github.com/apache/fineract/pull/1092


   Enable EmptyCatch (already enforced by @thesmallstar) and remove checks that were not include in Error Prone 2.4.0   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] percyashu commented on a change in pull request #1092: FINERACT-822 Editing Checks list

Posted by GitBox <gi...@apache.org>.
percyashu commented on a change in pull request #1092:
URL: https://github.com/apache/fineract/pull/1092#discussion_r443114387



##########
File path: fineract-provider/build.gradle
##########
@@ -444,13 +442,10 @@ tasks.withType(JavaCompile) {
                 "DoubleBraceInitialization",
                 "InconsistentCapitalization",
                 "MissingOverride",
-//                "ReturnMissingNullable",
 //                "InconsistentOverloads",
 //                "MethodCanBeStatic",
 //                "Var",
 //                "ConstantField",
-//                "ConstructorInvokesOverridable",

Review comment:
       same as ReturnMissingNullable




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] percyashu commented on a change in pull request #1092: FINERACT-822 Editing Checks list

Posted by GitBox <gi...@apache.org>.
percyashu commented on a change in pull request #1092:
URL: https://github.com/apache/fineract/pull/1092#discussion_r443117708



##########
File path: fineract-provider/build.gradle
##########
@@ -382,12 +381,10 @@ tasks.withType(JavaCompile) {
                 "ProtectedMembersInFinalClass",
                 "StaticAssignmentInConstructor",
                 "UnescapedEntity",
-                "EmptyCatch",
                 "InvalidBlockTag",
                 "ModifyCollectionInEnhancedForLoop",
                 "NonCanonicalType",
                 "InvalidInlineTag",
-                "InvalidBlockTag"

Review comment:
       Seems check was disable in 2.4.0 and must be enabled as if necessary 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] percyashu commented on a change in pull request #1092: FINERACT-822 Editing Checks list

Posted by GitBox <gi...@apache.org>.
percyashu commented on a change in pull request #1092:
URL: https://github.com/apache/fineract/pull/1092#discussion_r443117340



##########
File path: fineract-provider/build.gradle
##########
@@ -444,13 +442,10 @@ tasks.withType(JavaCompile) {
                 "DoubleBraceInitialization",
                 "InconsistentCapitalization",
                 "MissingOverride",
-//                "ReturnMissingNullable",
 //                "InconsistentOverloads",
 //                "MethodCanBeStatic",
 //                "Var",
 //                "ConstantField",
-//                "ConstructorInvokesOverridable",

Review comment:
       it fails with ConstructorInvokesOverridable is not a valid checker name




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] percyashu commented on a change in pull request #1092: FINERACT-822 Editing Checks list

Posted by GitBox <gi...@apache.org>.
percyashu commented on a change in pull request #1092:
URL: https://github.com/apache/fineract/pull/1092#discussion_r443114365



##########
File path: fineract-provider/build.gradle
##########
@@ -444,13 +442,10 @@ tasks.withType(JavaCompile) {
                 "DoubleBraceInitialization",
                 "InconsistentCapitalization",
                 "MissingOverride",
-//                "ReturnMissingNullable",

Review comment:
       It was removed for version 2.4.0




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] vorburger commented on a change in pull request #1092: FINERACT-822 Editing Checks list

Posted by GitBox <gi...@apache.org>.
vorburger commented on a change in pull request #1092:
URL: https://github.com/apache/fineract/pull/1092#discussion_r443112979



##########
File path: fineract-provider/build.gradle
##########
@@ -382,12 +381,10 @@ tasks.withType(JavaCompile) {
                 "ProtectedMembersInFinalClass",
                 "StaticAssignmentInConstructor",
                 "UnescapedEntity",
-                "EmptyCatch",

Review comment:
       Wait, what? No, this one I want... :smile: This is related to FINERACT-942 and https://checkstyle.sourceforge.io/config_blocks.html#EmptyCatchBlock @thesmallstar we should be able to enforce this by moving to error, agreed?

##########
File path: fineract-provider/build.gradle
##########
@@ -444,13 +442,10 @@ tasks.withType(JavaCompile) {
                 "DoubleBraceInitialization",
                 "InconsistentCapitalization",
                 "MissingOverride",
-//                "ReturnMissingNullable",

Review comment:
       This https://errorprone.info/bugpattern/ReturnMissingNullable could actually be nice, for NPE safety (which is something I was quite passionate about, a while ago, see http://www.lastnpe.org) - but of course depends on the effort... how many violations are there for this?

##########
File path: fineract-provider/build.gradle
##########
@@ -444,13 +442,10 @@ tasks.withType(JavaCompile) {
                 "DoubleBraceInitialization",
                 "InconsistentCapitalization",
                 "MissingOverride",
-//                "ReturnMissingNullable",
 //                "InconsistentOverloads",
 //                "MethodCanBeStatic",
 //                "Var",
 //                "ConstantField",
-//                "ConstructorInvokesOverridable",

Review comment:
       see https://errorprone.info/bugpattern/ConstructorInvokesOverridable .. how many of this are there, is this hard to fix? I think you may be able to easily fix it just by making something methods that are called from constructors `private` and/or `final`...




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] percyashu commented on a change in pull request #1092: FINERACT-822 Editing Checks list

Posted by GitBox <gi...@apache.org>.
percyashu commented on a change in pull request #1092:
URL: https://github.com/apache/fineract/pull/1092#discussion_r443114430



##########
File path: fineract-provider/build.gradle
##########
@@ -382,12 +381,10 @@ tasks.withType(JavaCompile) {
                 "ProtectedMembersInFinalClass",
                 "StaticAssignmentInConstructor",
                 "UnescapedEntity",
-                "EmptyCatch",

Review comment:
       Yep will move it




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fineract] vorburger merged pull request #1092: FINERACT-822 Editing Checks list

Posted by GitBox <gi...@apache.org>.
vorburger merged pull request #1092:
URL: https://github.com/apache/fineract/pull/1092


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org