Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.4.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  


 [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.