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

Scrutinizer - Let's see what's under the hood #1324

Closed

Conversation

adamjakab
Copy link

@adamjakab adamjakab commented May 3, 2016

Alright, so if we need to fix her up I think we need a hand.

For now you can see the results here until you set it up for your repo.

This is an excellent tool if we want to do some cleanup / harden code quality.
It dissects the code and give you a very good indication where you can have problems.
It runs for ~50 minutes per push so i'd advice to configure Single Inspection Mode (run one automatic inspection per day (instead of inspecting each push)).

I also hooked in Travis to report code test coverage to Scrutinizer so we can see how much of the code base is covered by our tests (we have some work to do there).

The actual state of the project is:
score: 4.93
code coverage: 7%!!!

Issues by severity:

Critical: 18
Major: 745
Minor: 2108
Info: 741
Unknown: 458

There is also an issue split by label/type - check it out!

I also enabled code quality where you get an A,B,C,D,F score per file.

@mattlorimer
Copy link
Member

Using sonarcube https://sonarqube.com/overview?id=SuiteCRM

@chris001
Copy link
Contributor

Sonarqube error: "The page you are looking for does not exist."

@chris001 chris001 mentioned this pull request Apr 28, 2017
6 tasks
@Dillon-Brown
Copy link
Contributor

@chris001 Working sonarqube link: https://sonarqube.com/dashboard?id=SuiteCRM

@chris001
Copy link
Contributor

chris001 commented Apr 28, 2017

Thanks for the working sonarqube link @Dillon-Brown
Some alarming facts on the dashboard:

  • The Quality Gate on sonarqube is Failed!
  • Test Coverage is 0.0% ! Minimum required is 80%!

These are serious problems!
What's being done to increase test coverage to greater than 80%??
Isn't anyone adding the existing free open source phpunit test cases from sugarcrm_dev Sugar 6.5 repo?!

@horus68
Copy link
Contributor

horus68 commented Apr 28, 2017

@adamjakab scrutinizer is 12 months old, can you refresh data (and making it for Hotfix branch, not develop)
https://scrutinizer-ci.com/g/adamjakab/SuiteCRM/?branch=scrutinizer-code-quality

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

Successfully merging this pull request may close these issues.

None yet

5 participants