To view this discussion on the web visit https://groups.google.com/d/msg/php-standards/-/SwB0_iq4AzwJ.
--
You received this message because you are subscribed to the Google Groups "PHP Standards Working Group" group.
To post to this group, send email to php-st...@googlegroups.com.
To unsubscribe from this group, send email to php-standard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/php-standards?hl=en.
By the look of things, a lot of code still needs to be written to enforce these standards. I don't think I can pull too much more from the existing sniff pool in PHP_CodeSniffer. You'll notice that PSR-1 is particularly bare.
On 7 June 2012 06:23, Greg Sherwood <gshe...@gmail.com> wrote:By the look of things, a lot of code still needs to be written to enforce these standards. I don't think I can pull too much more from the existing sniff pool in PHP_CodeSniffer. You'll notice that PSR-1 is particularly bare.Actually not, Squiz has most of this already covered. In fact, I think it has all all of it covered between Squiz and Generic and PEAR (you can mix match rules). I did something a while back here
I did something a while back here
On Thursday, 7 June 2012 16:17:44 UTC+10, Drak wrote:I did something a while back hereSorry, I forgot to say thanks for posting this link. Sorry if I'm telling you something you already know, but this is the old coding standard definition and I have since changed PHP_CodeSniffer to use an XML-based ruleset format to define coding standards rather than the old class method. This provides a lot of flexibility around including specific sniffs (as in the past) but also the ability to change messages, mute errors, change settings for sniffs etc.
Yes, it's here too. https://github.com/drak/phpcs-zikula/blob/master/Zikula/ruleset.xml While this is not all the PSR list, it is already most of them.
Good job guys.
Does the PSR1 sniffer cover all PSR1 use cases? (is it ready)
- Paul.
On Thu, Jun 7, 2012 at 11:11 PM, Greg Sherwood <gshe...@gmail.com> wrote:
> On Thursday, 7 June 2012 22:40:22 UTC+10, Drak wrote:
>>
>>
>> Yes, it's here
>> too. https://github.com/drak/phpcs-zikula/blob/master/Zikula/ruleset.xml While
>> this is not all the PSR list, it is already most of them.
>
>
> Thanks again. Looks like we've come to the same conclusion about many of the
> sniffs. I've used a lot of these in the current PSR rulesets as well.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PHP Standards Working Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/php-standards/-/jVtqsLX7bsUJ.
>
> To post to this group, send email to php-st...@googlegroups.com.
> To unsubscribe from this group, send email to
To view this discussion on the web visit https://groups.google.com/d/msg/php-standards/-/2Cz03dQ1hD0J.
To unsubscribe from this group, send email to php-standard...@googlegroups.com.
Hi Greg,
I recently saw the PHP CS by Klaus Silveira
https://github.com/klaussilveira/phpcs-psr
--
You received this message because you are subscribed to the Google Groups "PHP Standards Working Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/php-standards/-/3si-Pgvf8L4J.
To post to this group, send email to php-st...@googlegroups.com.
To unsubscribe from this group, send email to php-standard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/php-standards?hl=en.
I pulled the Greg's repo and it is works fine... PPI is running 100% under PSR1..
Just some details with camelCaps in getIP method... anyway, I think we can have a fix for this cases... it's better to see getIP instead of getIp.
It is not yet on PEAR, but since Greg is the maintainer of PHPCS, I think that he will do it asap :)
I pulled the Greg's repo and it is works fine... PPI is running 100% under PSR1..
Just some details with camelCaps in getIP method... anyway, I think we can have a fix for this cases... it's better to see getIP instead of getIp.
It is not yet on PEAR, but since Greg is the maintainer of PHPCS, I think that he will do it asap :)
2012/6/11 Rafael Dohms <rdo...@gmail.com>
Is it me or do we have 2 different efforts on creating PSR-1/2 CS Sniffs?
On Monday, June 11, 2012 7:28:47 AM UTC+2, Hari K T wrote:Hi Greg,
I recently saw the PHP CS by Klaus Silveira
https://github.com/klaussilveira/phpcs-psr
If so, can we join the 2 projects and focus on having one solution and then pushing it to the official PEAR repo?That will be the best way to consolidate this and make it go forward.
--To view this discussion on the web visit https://groups.google.com/d/msg/php-standards/-/3si-Pgvf8L4J.
You received this message because you are subscribed to the Google Groups "PHP Standards Working Group" group.
To unsubscribe from this group, send email to php-standards+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PHP Standards Working Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/php-standards/-/q9giIyybP-EJ.
> php-standards+unsubscribe@googlegroups.com.
The best way to get access to the new standards for testing is to clone the Github repo and run PHPCS directly from the checkout. This also wont impact any existing PHPCS install you have. To do this:
git clone git://github.com/squizlabs/PHP_CodeSniffer.gitcd PHP_CodeSniffer
php scripts/phpcs --standard=PSR2 /path/to/code
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To post to this group, send email to php...@googlegroups.com.
To unsubscribe from this group, send email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/php-fig/-/p5pGU5NmkeEJ.
For more options, visit https://groups.google.com/groups/opt_out.
The only thing I don't love is the bug track via PEAR . Its horrible man ... Please consider to make it on github issue itself .
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To post to this group, send email to php...@googlegroups.com.
To unsubscribe from this group, send email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/php-fig/-/_-U4j9LC3wMJ.
Wow cool man! .
I will run it on @auraphp code base and let you know if any as usual :) .
Probably I quick and lazy question is there a way I can set these standards as default and run both standards without running PSR1 , PSR2 like PSR ?
Since PSR-2 requires PSR-1, run both seems redundant to me.
Maybe Call PSR-2 can invoke lower PSR ones, or we can import PSR-0/1 rules to PSR-2 ruleset.
So, run itphp scripts/phpcs --standard=PSR1 /path/to/code
php scripts/phpcs --standard=PSR2 /path/to/codelike suggested above is really redundant. The last line does all dirty work.