Skip to content

Conversation

@ezaquarii
Copy link
Collaborator

Signed-off-by: Chris Narkiewicz [email protected]

@ezaquarii ezaquarii force-pushed the ezaquarii/user-account-manager branch 3 times, most recently from 501bda3 to d907dc2 Compare April 12, 2019 22:08
@codecov
Copy link

codecov bot commented Apr 12, 2019

Codecov Report

Merging #3895 into master will increase coverage by 0.05%.
The diff coverage is 26.42%.

@@             Coverage Diff             @@
##             master   #3895      +/-   ##
===========================================
+ Coverage      6.41%   6.46%   +0.05%     
  Complexity        1       1              
===========================================
  Files           323     325       +2     
  Lines         31220   31247      +27     
  Branches       4477    4479       +2     
===========================================
+ Hits           2002    2021      +19     
- Misses        28921   28930       +9     
+ Partials        297     296       -1
Impacted Files Coverage Δ Complexity Δ
...java/com/nextcloud/client/di/ComponentsModule.java 0% <ø> (ø) 0 <0> (ø) ⬇️
.../owncloud/android/authentication/AccountUtils.java 46.03% <ø> (+22.26%) 0 <0> (ø) ⬇️
...java/com/owncloud/android/jobs/OfflineSyncJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ncloud/android/ui/activity/UploadListActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ava/com/owncloud/android/jobs/NotificationJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...owncloud/android/ui/activity/UserInfoActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...wncloud/android/ui/adapter/AccountListAdapter.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...n/java/com/owncloud/android/jobs/FilesSyncJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ain/java/com/owncloud/android/ui/TextDrawable.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...m/nextcloud/client/account/UserAccountManager.java 0% <0%> (ø) 0 <0> (?)
... and 24 more

@codecov
Copy link

codecov bot commented Apr 12, 2019

Codecov Report

Merging #3895 into master will increase coverage by 0.05%.
The diff coverage is 26.81%.

@@             Coverage Diff             @@
##             master   #3895      +/-   ##
===========================================
+ Coverage      6.41%   6.46%   +0.05%     
  Complexity        1       1              
===========================================
  Files           323     325       +2     
  Lines         31220   31245      +25     
  Branches       4477    4478       +1     
===========================================
+ Hits           2002    2021      +19     
- Misses        28921   28928       +7     
+ Partials        297     296       -1
Impacted Files Coverage Δ Complexity Δ
...java/com/nextcloud/client/di/ComponentsModule.java 0% <ø> (ø) 0 <0> (ø) ⬇️
.../owncloud/android/authentication/AccountUtils.java 46.03% <ø> (+22.26%) 0 <0> (ø) ⬇️
...ain/java/com/owncloud/android/ui/TextDrawable.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ncloud/android/ui/activity/UploadListActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ava/com/owncloud/android/jobs/NotificationJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...owncloud/android/ui/activity/UserInfoActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...wncloud/android/ui/adapter/AccountListAdapter.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...n/java/com/owncloud/android/jobs/FilesSyncJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...java/com/owncloud/android/jobs/OfflineSyncJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...m/nextcloud/client/account/UserAccountManager.java 0% <0%> (ø) 0 <0> (?)
... and 24 more

@ezaquarii
Copy link
Collaborator Author

ezaquarii commented Apr 12, 2019

Due ot large amount of global state accessed via static getters, the app has absolutely insane amount of circular dependencies that we try to break right now using Dependency Injection.

The problem is that if you touch anything, SpotBugs will most likely find new circular dependencies (and forget others), making PR landing rather tricky.

I decided do suppress FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY SpotBugs error for now, because:

  1. it is quite unmanageable anyway
  2. it will be improved as a side effect of DI

For the time being, breaking those circlular deps causes linter to find more of them, which is an observation of limited use.

@ezaquarii
Copy link
Collaborator Author

BTW, FindBugs suffered from the same issue - there is no regression here.

@nextcloud nextcloud deleted a comment Apr 12, 2019
@nextcloud nextcloud deleted a comment Apr 12, 2019
@nextcloud nextcloud deleted a comment Apr 12, 2019
@nextcloud nextcloud deleted a comment Apr 12, 2019
@nextcloud nextcloud deleted a comment from ezaquarii Apr 12, 2019
@nextcloud nextcloud deleted a comment Apr 12, 2019
@nextcloud nextcloud deleted a comment Apr 12, 2019
@nextcloud nextcloud deleted a comment from ezaquarii Apr 12, 2019
@nextcloud nextcloud deleted a comment Apr 12, 2019
@nextcloud nextcloud deleted a comment from ezaquarii Apr 12, 2019
@nextcloud nextcloud deleted a comment from ezaquarii Apr 12, 2019
@ezaquarii
Copy link
Collaborator Author

Analysis died:

Exception analyzing com.owncloud.android.ui.adapter.TrashbinListAdapter using detector com.mebigfatguy.fbcontrib.detect.FunctionalInterfaceIssues 
java.lang.ClassCastException: org.apache.bcel.classfile.BootstrapMethods cannot be cast to org.apache.bcel.classfile.Unknown 

I'm not sure if it's me or flaky check.

@ezaquarii ezaquarii force-pushed the ezaquarii/user-account-manager branch from 482190f to bbaf355 Compare April 12, 2019 23:06
@nextcloud-android-bot
Copy link
Collaborator

Codacy

277

Lint

TypemasterPR
Warnings5757
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings84
Internationalization Warnings15
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings124
Security Warnings48
Dodgy code Warnings132
Total441

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings114
Internationalization Warnings15
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings124
Security Warnings48
Dodgy code Warnings131
Total470

@AndyScherzinger AndyScherzinger merged commit 4442d5a into master Apr 13, 2019
@AndyScherzinger AndyScherzinger deleted the ezaquarii/user-account-manager branch April 13, 2019 06:42
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.7.0 milestone Apr 13, 2019
tobiasKaminsky added a commit that referenced this pull request Apr 14, 2019
4442d5a Merge pull request #3895 from nextcloud/ezaquarii/user-account-manager
cd9eea5 daily dev 20190413
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