Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Bug #19256 T_DOC_COMMENT in CSS files breaks ClassDefinitionNameSpacingSniff
Submitted: 2012-01-30 04:32 UTC
From: klausi Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version SVN)
PHP Version: 5.3.6 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 37 = ?

 
 [2012-01-30 04:32 UTC] klausi (Klaus Purer)
Description: ------------ If you use PHPdoc style comments in CSS files this sniff reports false positives. Patch attached that fixes the problem. Here is also an example CSS file that triggers the problem. Test script: --------------- /** * @file * Valid example CSS file. */ #forum .description { color: #efefef; font-size: 0.9em; margin: 0.5em; }

Comments

 [2012-01-30 04:34 UTC] klausi (Klaus Purer)
 [2012-01-30 08:41 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Fixed in Git repo: https://github.com/squizlabs/PHP_CodeSniffer/commit/ea3ecf3892d734d721cf412d02 92d30b8144acae Thanks for the patch.