Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App is not compliant #72

Open
matiasdelellis opened this issue Dec 16, 2018 · 3 comments
Open

App is not compliant #72

matiasdelellis opened this issue Dec 16, 2018 · 3 comments
Labels

Comments

@matiasdelellis
Copy link
Owner

matiasdelellis commented Dec 16, 2018

App is not compliant

Just add this report to remember it.

Travis CI checks these reports but deliberately ignores them.

https://github.com/matiasdelellis/facerecognition/blob/master/.travis.yml#L32

Test

[matias@nube nextcloud]$ sudo -u apache php occ app:check-code  facerecognition
[sudo] password for matias: 
App is not compliant

Details:

OC_Util - Static method of private class must not be called

Analysing /var/www/html/nextcloud/apps/facerecognition/lib/BackgroundJob/Tasks/AddMissingImagesTask.php
 2 errors
    line  123: OC_Util - Static method of private class must not be called
    line  124: OC_Util - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/facerecognition/lib/BackgroundJob/Tasks/StaleImagesRemovalTask.php
 2 errors
    line  137: OC_Util - Static method of private class must not be called
    line  138: OC_Util - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/facerecognition/appinfo/app.php
 1 errors
    line   31: OC_Util - Static method of private class must not be called

Private API is used, therefore it is valid, however there is no replacement with public api. So, ignore this.

Fixed

Fixed on PR #196

Database schema error: Name of table dbprefixface_recognition... is too long:

Database schema error: Name of table *dbprefix*face_recognition_face_models is too long (28), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed
Database schema error: Name of table *dbprefix*face_recognition_face_models is too long (28), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed
Database schema error: Name of table *dbprefix*face_recognition_persons is too long (24), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed
Database schema error: Name of table *dbprefix*face_recognition_images is too long (23), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed
Database schema error: Name of table *dbprefix*face_recognition_faces is too long (22), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed

Although we agree that long names are not recommended, we believe that it is not a problem.

OC_DB - Static method of private class must not be called

Analysing /var/www/html/nextcloud/apps/facerecognition/appinfo/update.php
 1 errors
    line   14: OC_DB - Static method of private class must not be called
Deprecated file found: /var/www/html/nextcloud/apps/facerecognition/appinfo/update.php - please use repair steps

It was a quick table migration that will be unnecessary after publishing the application, and will be directly deleted.

Fixed on PR #172

Invalid appinfo.xml file found: Element 'types': This element is not expected

Invalid appinfo.xml file found: Element 'types': This element is not expected. Expected is one of ( background-jobs, repair-steps, two-factor-providers, commands, settings, activity, dashboard, fulltextsearch, navigations, contactsmenu ).

Although it is not documented, it is necessary. So, ignore this.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@stalker314314
Copy link
Collaborator

ahould we changes tables to something shorter, I don't know, *dbprefix*facerec_persons or *dbprefix*face_rec_persons?

@matiasdelellis
Copy link
Owner Author

If you want to do it, welcome... 😉
However forgot to comment that almost no official application meets its standards.. 😅

See: https://github.com/search?q=org%3Anextcloud+App+is+not+compliant&type=Issues

I guess it would be better to continue with other priorities..

matiasdelellis added a commit that referenced this issue Nov 14, 2019
Fix some app is not compliant report. Issue #72
This was referenced Dec 5, 2019
@PixsaOJ
Copy link

PixsaOJ commented Feb 8, 2021

Here is my output of that command

bash-4.4$ php occ app:check-code  facerecognition
Analysing /var/www/html/nextcloud/apps/facerecognition/lib/Model/ExternalModel/ExternalModel.php
 1 errors
    line  178: == - is discouraged
Analysing /var/www/html/nextcloud/apps/facerecognition/lib/Controller/FaceController.php
 2 errors
    line  172: OC_App - Static method of private class must not be called
    line  191: OC_App - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/facerecognition/lib/Service/FileService.php
 2 errors
    line   75: OC_Util - Static method of private class must not be called
    line   76: OC_Util - Static method of private class must not be called
App is not compliant

EDIT:
Server is running Centos 8 and PHP 7.4.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants