How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

reena19
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.



Reply | Threaded
Open this post in threaded view
|

Re: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Linda Martin
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.




Reply | Threaded
Open this post in threaded view
|

Re: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

reena19
Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnIAAAC+CAIAAAA++XUkAAAT5UlEQVR4nO3cPW8Tyx6Acb4KKQ8d5xPcc9Ll/T2BJHacmIQk5P0FcgmWqGiQaCMhXUV0FJRIiCol0uUU6HAqEB/Bze19i4knf8/Mrtf2OLs7+/yUIjFx4qx95jkzO+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VWudljelr8tACAAoivhfdNchXPqP0lNVat2VNmFgAAKQeo+MlnPF6zWqt57La0n7WAADp8x6X3nuXhIesKt7/fgAAvPBVuiS8ZbVGWQEA2eMxc0n4zKqW9jEEABRdP+qWRF+yqqV9VAEAxdLXqCXR36xKaR9qAECYbi1kSfwf6c5MxZg+SbsAAAAASUVORK5CYII=" alt="">

But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.





Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

John-Paul Drawneek
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.





Reply | Threaded
Open this post in threaded view
|

Re: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

G. Ann Campbell
Hi guys,

The next version of the plugin will include the ability to write custom rules in Java: http://jira.codehaus.org/browse/SONARPHP-270


Ann 


On 22 April 2014 05:41, John-Paul Drawneek <[hidden email]> wrote:
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.








--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

Re: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

G. Ann Campbell
Okay... I've just been served a dose of reality. 

Let me amend my previous message to say that we hope to eventually include the ability to write custom rules in Java. In the meantime, what rules would you like to see reimplemented?


On 24 April 2014 10:11, G. Ann Campbell <[hidden email]> wrote:
Hi guys,

The next version of the plugin will include the ability to write custom rules in Java: http://jira.codehaus.org/browse/SONARPHP-270


Ann 


On 22 April 2014 05:41, John-Paul Drawneek <[hidden email]> wrote:
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.








--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

John-Paul Drawneek
Hi Ann.

Thought so.

We have slowly build up rules for Drupal, Joomla, Magento, Wordpress, Zend Framework 1 and 2, and some other PHP frameworks coding standards.

So ideally for us all of the above.

Hence our problem with the PHP 2.X plugin, its taken a lot of man hours to get where we are today and going backwards is not going to be popular.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 15:20
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Okay... I've just been served a dose of reality. 

Let me amend my previous message to say that we hope to eventually include the ability to write custom rules in Java. In the meantime, what rules would you like to see reimplemented?


On 24 April 2014 10:11, G. Ann Campbell <[hidden email]> wrote:
Hi guys,

The next version of the plugin will include the ability to write custom rules in Java: http://jira.codehaus.org/browse/SONARPHP-270


Ann 


On 22 April 2014 05:41, John-Paul Drawneek <[hidden email]> wrote:
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.








--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

Re: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

G. Ann Campbell
I'd love to hear what those rules are John-Paul. :-)


On 24 April 2014 10:31, John-Paul Drawneek <[hidden email]> wrote:
Hi Ann.

Thought so.

We have slowly build up rules for Drupal, Joomla, Magento, Wordpress, Zend Framework 1 and 2, and some other PHP frameworks coding standards.

So ideally for us all of the above.

Hence our problem with the PHP 2.X plugin, its taken a lot of man hours to get where we are today and going backwards is not going to be popular.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 15:20

To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Okay... I've just been served a dose of reality. 

Let me amend my previous message to say that we hope to eventually include the ability to write custom rules in Java. In the meantime, what rules would you like to see reimplemented?


On 24 April 2014 10:11, G. Ann Campbell <[hidden email]> wrote:
Hi guys,

The next version of the plugin will include the ability to write custom rules in Java: http://jira.codehaus.org/browse/SONARPHP-270


Ann 


On 22 April 2014 05:41, John-Paul Drawneek <[hidden email]> wrote:
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.








--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

John-Paul Drawneek

https://drupal.org/coding-standards
http://codex.wordpress.org/WordPress_Coding_Standards
http://joomla.github.io/coding-standards/
<a href="https://wiki.magento.com/display/MAGE2DOC/Magento&#43;PHP&#43;Coding&#43;Standards&#43;and&#43;Practices" target="_blank">https://wiki.magento.com/display/MAGE2DOC/Magento+PHP+Coding+Standards+and+Practices
http://framework.zend.com/manual/1.12/en/coding-standard.html
http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards

They are not perfect but its some where to start.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 16:05
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

I'd love to hear what those rules are John-Paul. :-)


On 24 April 2014 10:31, John-Paul Drawneek <[hidden email]> wrote:
Hi Ann.

Thought so.

We have slowly build up rules for Drupal, Joomla, Magento, Wordpress, Zend Framework 1 and 2, and some other PHP frameworks coding standards.

So ideally for us all of the above.

Hence our problem with the PHP 2.X plugin, its taken a lot of man hours to get where we are today and going backwards is not going to be popular.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 15:20

To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Okay... I've just been served a dose of reality. 

Let me amend my previous message to say that we hope to eventually include the ability to write custom rules in Java. In the meantime, what rules would you like to see reimplemented?


On 24 April 2014 10:11, G. Ann Campbell <[hidden email]> wrote:
Hi guys,

The next version of the plugin will include the ability to write custom rules in Java: http://jira.codehaus.org/browse/SONARPHP-270


Ann 


On 22 April 2014 05:41, John-Paul Drawneek <[hidden email]> wrote:
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.








--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

Re: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

G. Ann Campbell
Okay, thanks.

Did you have any rules in mind that aren't generally relevant to all PHP?



On 24 April 2014 11:33, John-Paul Drawneek <[hidden email]> wrote:

https://drupal.org/coding-standards
http://codex.wordpress.org/WordPress_Coding_Standards
http://joomla.github.io/coding-standards/
https://wiki.magento.com/display/MAGE2DOC/Magento+PHP+Coding+Standards+and+Practices
http://framework.zend.com/manual/1.12/en/coding-standard.html
http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards

They are not perfect but its some where to start.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 16:05

To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

I'd love to hear what those rules are John-Paul. :-)


On 24 April 2014 10:31, John-Paul Drawneek <[hidden email]> wrote:
Hi Ann.

Thought so.

We have slowly build up rules for Drupal, Joomla, Magento, Wordpress, Zend Framework 1 and 2, and some other PHP frameworks coding standards.

So ideally for us all of the above.

Hence our problem with the PHP 2.X plugin, its taken a lot of man hours to get where we are today and going backwards is not going to be popular.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 15:20

To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Okay... I've just been served a dose of reality. 

Let me amend my previous message to say that we hope to eventually include the ability to write custom rules in Java. In the meantime, what rules would you like to see reimplemented?


On 24 April 2014 10:11, G. Ann Campbell <[hidden email]> wrote:
Hi guys,

The next version of the plugin will include the ability to write custom rules in Java: http://jira.codehaus.org/browse/SONARPHP-270


Ann 


On 22 April 2014 05:41, John-Paul Drawneek <[hidden email]> wrote:
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.








--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

John-Paul Drawneek
Not of the top of my head.

All the lists I provide have odd quirks buried in their specs, that's the bit that takes the time.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 16:43
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Okay, thanks.

Did you have any rules in mind that aren't generally relevant to all PHP?



On 24 April 2014 11:33, John-Paul Drawneek <[hidden email]> wrote:

https://drupal.org/coding-standards
http://codex.wordpress.org/WordPress_Coding_Standards
http://joomla.github.io/coding-standards/
<a href="https://wiki.magento.com/display/MAGE2DOC/Magento&#43;PHP&#43;Coding&#43;Standards&#43;and&#43;Practices" target="_blank">https://wiki.magento.com/display/MAGE2DOC/Magento+PHP+Coding+Standards+and+Practices
http://framework.zend.com/manual/1.12/en/coding-standard.html
http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards

They are not perfect but its some where to start.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 16:05

To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

I'd love to hear what those rules are John-Paul. :-)


On 24 April 2014 10:31, John-Paul Drawneek <[hidden email]> wrote:
Hi Ann.

Thought so.

We have slowly build up rules for Drupal, Joomla, Magento, Wordpress, Zend Framework 1 and 2, and some other PHP frameworks coding standards.

So ideally for us all of the above.

Hence our problem with the PHP 2.X plugin, its taken a lot of man hours to get where we are today and going backwards is not going to be popular.


From: G. Ann Campbell [[hidden email]]
Sent: 24 April 2014 15:20

To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Okay... I've just been served a dose of reality. 

Let me amend my previous message to say that we hope to eventually include the ability to write custom rules in Java. In the meantime, what rules would you like to see reimplemented?


On 24 April 2014 10:11, G. Ann Campbell <[hidden email]> wrote:
Hi guys,

The next version of the plugin will include the ability to write custom rules in Java: http://jira.codehaus.org/browse/SONARPHP-270


Ann 


On 22 April 2014 05:41, John-Paul Drawneek <[hidden email]> wrote:
Hi Reena.

From what I have seen there is currently no way of adding rules to the PHP plugin 2.X.

That's why I suggested using the 1.2 version of the PHP plugin as that allows you custom rules.

We currently have lots of custom rules for various PHP frameworks, so it looks like we are going to be stuck on 1.2 PHP plugin for the foreseeable future.


From: reena upadhyay [[hidden email]]
Sent: 22 April 2014 10:27
To: [hidden email]
Subject: Re: [sonar-user] How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Hi,

Isn't there any way to add php custom coding standard rules in sonar php plugin version 2.X?

If I try to create new profile in PHP profile under Quality measures in sonar, I get a daiog box, in which there is only one field name, How to add the xml configuration file??



But in java profile, I get a option to add the configuration xml file.

Please suggest me how to add the cstom rules in SOmar for php?




On Tue, Apr 22, 2014 at 1:23 PM, Linda Martin <[hidden email]> wrote:
Hi Reena,

PHP Plugin does not use PHP CodeSniffer anymore since version 2.0.
The available rules now are the one implemented in the Plugin using SonarQube technologies.

See "Release Notes" paragraph in the plugin documentation:

Best regards,

Linda.


On 22 April 2014 09:14, reena upadhyay <[hidden email]> wrote:
Hi,

 I am using sonarQube4.2 and sonar-php-plugin 2.1. Right now If I see on sonar server there is only one sonar way profile in quality measures. I want to add coding rules that comes in code sniffer package. I have downloaded code sniffer, inside it there is a standard folder which contains Zend Pear, PSR1, PSR 2 coding standards rules defined. How to add this rules in SOnarQube4.2 using sonar-php-plugin 2.1 from sonar server web interface.

Thank you.








--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource



--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

opsadev
I am also looking for this functionality.  I do not understand how to include rules for Drupal standards.  All of the documentation I can find points to PHP_Codesniffer.  +1 for http://jira.codehaus.org/browse/SONARPHP-270
Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Linda Martin
Hi,

Indeed there is no way to include custom rules for now. 

But if you looking for Drupal standards compliance checking you might want 
to have a look to the  the PHP Plugin version 2.2 (just released). 
This version provides: 
  • rules for PSR-2 standard
  • PSR-2 profile gathering all the rules available for PSR-2 
Also Drupal is member of the PHP Framework Interop Group that defines PSR-X standards. 
I have not compared but I guess that Drupal's standard should be very close to PSR-2. 

Linda.


On 9 July 2014 21:23, opsadev <[hidden email]> wrote:
I am also looking for this functionality.  I do not understand how to include
rules for Drupal standards.  All of the documentation I can find points to
PHP_Codesniffer.  +1 for http://jira.codehaus.org/browse/SONARPHP-270



--
View this message in context: http://sonarqube.15.x6.nabble.com/How-to-add-code-sniffer-standards-rules-in-sonarQube4-2-using-sonar-php-plugin-version-2-1-tp5024257p5026529.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

John-Paul Drawneek

Hi Linda.

Although Drupal is a member of the PHP framework interop group it currently does not use any of it.  Roll on drupal 8, and even then it has lots of its own rules.

This is why I am stuck with the php 1.2 plugin as you can still import code sniffer result file.

On 10 Jul 2014 07:25, Linda Martin <[hidden email]> wrote:
Hi,

Indeed there is no way to include custom rules for now. 

But if you looking for Drupal standards compliance checking you might want 
to have a look to the  the PHP Plugin version 2.2 (just released). 
This version provides: 
  • rules for PSR-2 standard
  • PSR-2 profile gathering all the rules available for PSR-2 
Also Drupal is member of the PHP Framework Interop Group that defines PSR-X standards. 
I have not compared but I guess that Drupal's standard should be very close to PSR-2. 

Linda.


On 9 July 2014 21:23, opsadev <[hidden email]> wrote:
I am also looking for this functionality.  I do not understand how to include
rules for Drupal standards.  All of the documentation I can find points to
PHP_Codesniffer.  +1 for http://jira.codehaus.org/browse/SONARPHP-270



--
View this message in context: http://sonarqube.15.x6.nabble.com/How-to-add-code-sniffer-standards-rules-in-sonarQube4-2-using-sonar-php-plugin-version-2-1-tp5024257p5026529.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

RE: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

Linda Martin
Hi John-Paul,

Indeed I just checked out and Drupal standard has some additional rules. 
It is on the roadmap to provide additional rules to compensate the removal of the external tools (e.g PHPCodeSniffer). Also adding support of other existing PHP standards (e.g Drupal).

Sorry you are stuck with an old version in the mean time,

Best regards,

Linda


On 10 July 2014 09:47, John-Paul Drawneek <[hidden email]> wrote:

Hi Linda.

Although Drupal is a member of the PHP framework interop group it currently does not use any of it.  Roll on drupal 8, and even then it has lots of its own rules.

This is why I am stuck with the php 1.2 plugin as you can still import code sniffer result file.

On 10 Jul 2014 07:25, Linda Martin <[hidden email]> wrote:
Hi,

Indeed there is no way to include custom rules for now. 

But if you looking for Drupal standards compliance checking you might want 
to have a look to the  the PHP Plugin version 2.2 (just released). 
This version provides: 
  • rules for PSR-2 standard
  • PSR-2 profile gathering all the rules available for PSR-2 
Also Drupal is member of the PHP Framework Interop Group that defines PSR-X standards. 
I have not compared but I guess that Drupal's standard should be very close to PSR-2. 

Linda.


On 9 July 2014 21:23, opsadev <[hidden email]> wrote:
I am also looking for this functionality.  I do not understand how to include
rules for Drupal standards.  All of the documentation I can find points to
PHP_Codesniffer.  +1 for http://jira.codehaus.org/browse/SONARPHP-270



--
View this message in context: http://sonarqube.15.x6.nabble.com/How-to-add-code-sniffer-standards-rules-in-sonarQube4-2-using-sonar-php-plugin-version-2-1-tp5024257p5026529.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




Reply | Threaded
Open this post in threaded view
|

Re: How to add code sniffer standards rules in sonarQube4.2 using sonar-php-plugin version 2.1

johannes
This post has NOT been accepted by the mailing list yet.
In reply to this post by G. Ann Campbell
Hi Linda,

I'd like to add some rules too
I found "Source files should have a sufficient density of comment lines" but for my company it is necesary to point to documentation on class and method level. Is this possible?

Also I would like to know if there is some 'plain' SQL in use: detection pattern could be find strings with select, update, delete, insert.

Another rule at my wishlist is : inline javascript in php files. I try to educate my developers to use external scripts than putting all into one file.

I would be very happy if you could tell me if there is a posibility to add this rules.
Thanks in advance

Best regards
PD: +1 for http://jira.codehaus.org/browse/SONARPHP-270