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

Configure and work with PHPSTORM and SONAR QUBE together. #40

Closed
praveen2820 opened this issue Apr 7, 2014 · 24 comments
Closed

Configure and work with PHPSTORM and SONAR QUBE together. #40

praveen2820 opened this issue Apr 7, 2014 · 24 comments

Comments

@praveen2820
Copy link

Hi All,

Please help me in configuring and running sonar qube server to check my php code.

@praveen2820
Copy link
Author

I am unable to find such data which can make me understand the PHPSTORM configuration with sonar qube.

@praveen2820
Copy link
Author

Do I need all of these PHPSTORM 6.0.2 / sonarconnector 1.1 /. sonar 3.5.1 / sonar-php-plugin 1.2 exactly to run sonar with my php storm...If YES then how could I install all these with my phpstorm IDE and my SONAR server is configured in centralized server machine..Please help me its urgent.....

@praveen2820 praveen2820 changed the title Configure and work with PHPSTORM and SONAR QUBE. Configure and work with PHPSTORM and SONAR QUBE together. Apr 7, 2014
@aheusingfeld
Copy link
Member

Hi @praveen2820, I guess that "sonarconnector" is the plugin which is being developed by SonarSource. Our plugin is called "SonarQube Community Plugin" and is available in version 1.4.

@praveen2820
Copy link
Author

Thank you for replying.
My question is how can I analyze my local code (from PHPSTORM IDE) by connecting to a centralized sonar server get/save result in my PHPSTORM IDE....?

Please let me know If I am not clear....

@aheusingfeld
Copy link
Member

The process is described in our README. The "SonarQube Community Plugin" should be available via PHPSTORM's "Project Settings... > Plugins > Browser repository...".

@praveen2820
Copy link
Author

Hi aheusingfled,

I have followed the same process that your navigating me in your previous post....
You could see it below images
report1
report2
report3

But there is no use I am unable to run sonar analyzer from my PHPSTORM.

@aheusingfeld
Copy link
Member

  1. It seems you forgot the step to "Sync with Sonar" (see README)
  2. The plugin doesn't run the sonarrunner, yet (see Feature Request: Run local analysis #10). At the moment it only connects to SonarQube, retrieves the issues from there and displays them in the PHPSTORM editor when you work on your local files.

@praveen2820
Copy link
Author

#1.Sorry forgot to attach the image but I have did so.
image

#2.OK no problem but the result that I got doesn't seems to be from SONAR QUBE,I am able to see the below result even without SONAR.

report3

@aheusingfeld
Copy link
Member

Do you see the "Sonar" sections in the "Analyze > Specify Inspections Scope > Inspections" popup?

@praveen2820
Copy link
Author

Can you provide me exact navigation .. helpful if you can provide an image source......I am unable to find Analyze > ......This path over here

@praveen2820
Copy link
Author

By the way I am running a PHP project..
And I would like to know what is this "Inspection File"

@aheusingfeld
Copy link
Member

counter question: Which (context) menu entry do you select to receive this?
report3

@praveen2820
Copy link
Author

My scenario to receive this is below.
#1.Right click on my project
image
#2.click on INSPECT CODE... option then I received the below.
image
#3.Upon click on the OK button in above image it results to the context that you are asking about.
report3

@aheusingfeld
Copy link
Member

In the 2nd step, click on "..." and check whether the list contains the "Sonar" section as described in our README. If it doesn't contain the entry, the "Resource" in the configuration isn't correct.

@praveen2820
Copy link
Author

OOOOpsss...
Its not here....
image

What does it my by "Resource" in the configuration file....?
How can I resolve this now..?
Thank you for bearing my doubts as I am a newbie to PHPSTORM and SONAR...

@aheusingfeld
Copy link
Member

@praveen2820
Copy link
Author

Ignore my previous post...
I am able to see this RESOURCE in SONAR QUBE configuration
What should I replace this "RESOURCE" here

image

@praveen2820
Copy link
Author

I have configured the "RESOURCE" field as below -But still its not working.
image

@praveen2820
Copy link
Author

Hi ,
Could you please help me on this,As I am stuck here..

@praveen2820
Copy link
Author

Hi aheusingfeld ,

Could you please help me on how can I configure RESOURCE field,
I have already followed two ways but no use

#1.php:spml_service_new_run:project:spml_service_new_run
#2.php:spml_service_new_run:project

Please let me know If I am not clear.

@aheusingfeld
Copy link
Member

The README describes how to find the resourceId in your SonarQube's web UI. At which step of this description do you have a deviation/ problem? Please add a screenshot and the link to your project in SonarQube.

@buddhisan
Copy link

Me too got the same problem in phpstrom.(I followed readme in https://github.com/sonar-intellij-plugin/sonar-intellij-plugin#the-resource-field )
First I ran an analysis with sonar runner.
when I hover on my project, tooltip appears as "my:front"
I gave my:front as the Resource in sonarqube section in settings
Then I clicked sync with sonar and it displayed a message as "Successfully synced with sonar
Downloaded 75 violations and 0 rules"
But when i'm trying to analyze code, sonar doesn't appear in the inspection list.
Can u please help me to figure out this problem?

@megaandros
Copy link

I have the same problem as buddy7 wrote but with IDEA 13.1 (Community version). When I have used original SonarQube plugin it appears in the inspection list, but very slowly. Now I uninstalled original SQ and install community SQ and have a problem.

It seems the problem is related to last version of SQ. We have version 4.4

@omayevskiy
Copy link
Contributor

Hi, you can try out the newest version: https://github.com/sonar-intellij-plugin/sonar-intellij-plugin/releases

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

No branches or pull requests

5 participants