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

Integrate SpotBugs and fail build if equals but not hashCode is implemented

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      This project should activate SpotBugs (the successor to FindBugs) and make it fail the build for any violations to a at least a subset of rules which are almost always guaranteed to be bugs.

      For example, https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#he-class-defines-equals-and-uses-object-hashcode-he-equals-use-hashcode which would have caught what I manually spotted (but shouldn't have to) in https://github.com/apache/fineract/pull/524.

      FINERACT-402 has some history, but it's clearly not activated to enforce.

      FINERACT-696 could then be built on top of this.

      myrle perhaps you know of any volunteer interested in doing this?

      Attachments

        Issue Links

          Activity

            People

              awasum Awasum Yannick
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h