Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
A particularly useful part of FINERACT-821, helping to detect real errors in Fineract and not just formating, would be to enable the following in fineract-provider/config/checkstyle/checkstyle.xml, and fix any problems that this finds:
1. RegexpSinglelineJava / printStackTrace
2. IllegalCatch, IllegalThrows, MutableException, AvoidHidingCauseExceptionCheck
Nota bene that we already have FINERACT-696, but this is complementary to that.
One thing this should detect is e.g. the bad wrong emtpy catch(MessagingException e) in EmailMessageJobEmailServiceImpl.
It may lead to more of FINERACT-932, which would be a Good Thing.
Attachments
Issue Links
- blocks
-
FINERACT-712 Fineract codebase should pass PMD, Findbugs and Checkstyle analysis
- Closed
- is part of
-
FINERACT-821 Enable and enforce (!) Checkstyle in Fineract
- Resolved
- is related to
-
FINERACT-1131 Add Checkstyle IllegalCatch
- Open
-
FINERACT-696 use SpotBugs and findbugs-slf4j to detect bad logging anti-patterns
- Resolved
- is required by
-
FINERACT-932 Parent Issue for Error Logs seeing during "normal" usage (e.g. on fineract.dev)
- Open
- links to