Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.94 KB  |  hits: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to Ignore Line Length PHP_CodeSniffer
  2. <target name="phpcs">
  3.     <exec executable="phpcs">
  4.         <arg line="--report=checkstyle --report-file=${basedir}/build/logs/checkstyle.xml --standard=Zend ${source}"/>
  5.     </exec>
  6. </target>
  7.        
  8. FOUND 0 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S)
  9. --------------------------------------------------------------------------------
  10.  117 | WARNING | Line exceeds 80 characters; contains 85 characters
  11. --------------------------------------------------------------------------------
  12.        
  13. <?xml version="1.0"?>
  14. <ruleset name="Custom">
  15.  <description>Zend, but without linelength check.</description>
  16.  <rule ref="Zend">
  17.   <exclude name="Generic.Files.LineLength"/>
  18.  </rule>
  19. </ruleset>
  20.        
  21. <!-- Lines can be N chars long (warnings), errors at M chars -->
  22.  <rule ref="Generic.Files.LineLength">
  23.   <properties>
  24.    <property name="lineLimit" value="N"/>
  25.    <property name="absoluteLineLimit" value="M"/>
  26.   </properties>
  27.  </rule>