Skip to content

FindBugs and PMD appeased#330

Merged
AndyScherzinger merged 52 commits intonextcloud:masterfrom
iskradelta:master
Nov 10, 2016
Merged

FindBugs and PMD appeased#330
AndyScherzinger merged 52 commits intonextcloud:masterfrom
iskradelta:master

Conversation

@iskradelta
Copy link

Starter issue. Working on satisfying PMD next.

@iskradelta
Copy link
Author

This is for PR #322

@AndyScherzinger
Copy link
Member

Hi @iskradelta thank you very much for this PR! 🎉 - @tobiasKaminsky can you have a look/test drive since I am currently away from my dev maschine for the next couple of days...

cc @djubreel since you are also working on findbug/pmd/etc.

corresponding issue: #322

@iskradelta
Copy link
Author

Now PMD is appeased, squashed many warnings/errors, there was about 190-200ish at start, and about 20-30ish were suppressed by annotation, mostly duplicate string literals which would cause the code to be unreadable, and src/third_party added to exclude pattern.

What else needs to be done? Do we have common code formatting checks in CI?

@tobiasKaminsky
Copy link
Member

Great work! I will have look tomorrow.

Do we have common code formatting checks in CI?

Currently not. We want to switch to the "default" code formatting found in AndroidStudio with line break at 120. (https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#android-studio-formatter-setup)
If you know a good tool for this, please open a new issue and we can discuss it there.
Really appreciate all your work!

}

public static boolean getOnlyOnDevice(){
public static boolean isnlyOnDevice(){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo --> isOnlyOnDevice

if (inChannel != null) {
inChannel.close();
}
outChannel.close();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the null check be kept for outChannel also?

@AndyScherzinger
Copy link
Member

@tobiasKaminsky please also have a look as like yo mentioned. I did and am fine with the changes, will have to run a test though. Other than that 👍

@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Oct 19, 2016

Looks good.
I will include it first in beta for some time.
We will merge it very close to end of October to get you your shirt ;-)

@AndyScherzinger
Copy link
Member

Sounds good to me! 👍

@AndyScherzinger
Copy link
Member

The branch has conflicts Btw :(

@AndyScherzinger
Copy link
Member

AndyScherzinger commented Oct 26, 2016

@iskradelta can you resolve the conflicts? (else it can't be merged)
@tobiasKaminsky we are close to November, so this should get merged very soon.

@iskradelta
Copy link
Author

Sorry a bit late response.

Uh, a little help here, Ive resolved the conflicts, rebased these commits ontop of master, and force pushed to iskradelta/android.git but it doesnt update this pull-request here? Or does it?

@AndyScherzinger
Copy link
Member

AndyScherzinger commented Oct 27, 2016

it does - thanks! :) 👍 PRs are automatically changed since the originating branch got the changes 😃

@AndyScherzinger
Copy link
Member

@tobiasKaminsky did you test the PR? My test was negative (file listing always empty on any account on any server) on my phone but I will do another test after cleaning the installation (jumping back an d forth between DB versions, so so there are different aspects that might have an impact here).

@tobiasKaminsky
Copy link
Member

Strange, for me it is also not working on a fresh clean emulator :/

@AndyScherzinger
Copy link
Member

@tobiasKaminsky I found the empty list issue a ! got lost when the pmd/findbugs/etc. demanded changes were done. This works now on my phone but I haven't made a larger test covering the different areas of the app, just to make sure we don't have any other issues.

@AndyScherzinger
Copy link
Member

AndyScherzinger commented Nov 2, 2016

@iskradelta @tobiasKaminsky I found another issue. Navigation via the drawer menu from "Uploads" to "Settings" crashes the app with a NPE.

Edit: now fixed by b5f995b

@AndyScherzinger
Copy link
Member

@tobiasKaminsky I'd say id is ready for beta (could you merge, or should I) but should survive there first before we merge it to master.

@tobiasKaminsky
Copy link
Member

@AndyScherzinger please do it. I am currently busy ;-) ;-)

Iskra Delta added 2 commits November 9, 2016 18:13
Some warnings have been supressed.
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 1.4.0 milestone Nov 10, 2016
@AndyScherzinger
Copy link
Member

Imho ready to merge @tobiasKaminsky 👍

@AndyScherzinger AndyScherzinger merged commit 113ebf6 into nextcloud:master Nov 10, 2016
@AndyScherzinger
Copy link
Member

Hi @iskradelta,

Thanks for yet another great PR pushing the code quality of the app! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants