liato / android-bankdroid

A swedish banking application for your Android device.
http://www.swedroid.se/forum/showthread.php?t=11108
Other
243 stars 173 forks source link

Make static code analysis cover all code #638

Closed walles closed 7 years ago

walles commented 7 years ago

Before this change, there were two Java sub projects that weren't covered by the static code analysers (FindBugs, Checkstyle, Android Lint, PMD).

This change moves the code in the Java projects (it wasn't much) into the two Android projects.

I did try to get static code analysis into the Java projects as well, but that turned into a Gradle / Groovy mess I didn't manage to finish.

walles commented 7 years ago

I have verified this change by adding a new account and verifying the edit-account activity looks like it should.

goober commented 7 years ago

The long term goal is to move out as much logic as possible from the android modules into java modules, hence this is a change in the opposite direction. Each bank implementation should, when completed, only be dependent on the bankdroid-interface module. However, all modules should of course be covered by the static code analysis.

I will try to take a look tonight if the gradle mess you mention can be sorted out somehow, without merging the current java projects.

Please feel free to continue the discussion if you disagree, or have further questions

walles commented 7 years ago

My point with this change was only to have the static analysis cover everything, so if there are other paths there I'm totally fine with that. Thanks for the long term plan info!

I guess there are two different ways (that are not this PR):

The second one might be simpler than the first.

goober commented 7 years ago

Closing in favor for #645