WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Coding style checks

Re: Coding style checks

by Alex Marin :: Rate this Message:

| View in Thread

On Wed, May 2, 2012 at 12:17 PM, Michal Čihař <michal@...> wrote:
> Sure there is :-). Once you install PHP CodeSniffer you can run it with
> our customized standard in phpMyAdmin's directory:
>
> phpcs --standard=PMAStandard file.php

If you also want to use the NetBeans plugin as Madhura suggested,
once you have copied the PMAStandard folder inside your installation
dir (.../CodeSniffer/Standards/), you simply go to Tools->Options->
->PHP->Code Sniffer->Standard and select PMAStandard from the
list.
If you had NetBeans open while copying PMAStandard, then you have
to restart the IDE in order for it to display the new option in the list.

All the best,
Alex

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@...
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel

 « Return to Thread: Coding style checks