Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-942

Make Checkstyle detect bad logging anti-patterns (and fix problems found)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • 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

      3. EmptyCatchBlock

      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

          Activity

            People

              manthan Manthan Surkar
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: