| Line | |
|---|
| 1 | <?xml version="1.0"?> |
|---|
| 2 | <ruleset name="Sample"> |
|---|
| 3 | <description>A sample coding standard</description> |
|---|
| 4 | |
|---|
| 5 | <!-- Include all sniffs in the PEAR standard --> |
|---|
| 6 | <rule ref="Zend"> |
|---|
| 7 | <exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/> |
|---|
| 8 | <exclude name="Zend.NamingConventions.ValidVariableName.NotCamelCaps"/> |
|---|
| 9 | <exclude name="PEAR.Classes.ClassDeclaration.OpenBraceNewLine"/> |
|---|
| 10 | </rule> |
|---|
| 11 | |
|---|
| 12 | <!-- Include some specific sniffs --> |
|---|
| 13 | <rule ref="Generic.ControlStructures.InlineControlStructure"/> |
|---|
| 14 | <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> |
|---|
| 15 | |
|---|
| 16 | <!-- Change the settings of the Line Length sniff --> |
|---|
| 17 | <rule ref="Generic.Files.LineLength"> |
|---|
| 18 | <properties> |
|---|
| 19 | <property name="lineLimit" value="80"/> |
|---|
| 20 | <property name="absoluteLineLimit" value="200"/> |
|---|
| 21 | </properties> |
|---|
| 22 | </rule> |
|---|
| 23 | |
|---|
| 24 | <!-- Change both Line Length messages --> |
|---|
| 25 | <rule ref="Generic.Files.LineLength.MaxExceeded"> |
|---|
| 26 | <message>Line longer than the max of %s; has %s chars</message> |
|---|
| 27 | </rule> |
|---|
| 28 | <rule ref="Generic.Files.LineLength.TooLong"> |
|---|
| 29 | <message>Line longer than %s chars; has %s chars</message> |
|---|
| 30 | </rule> |
|---|
| 31 | |
|---|
| 32 | <!-- Disable internal message for missing code and short open tags --> |
|---|
| 33 | <rule ref="Internal.NoCodeFound"> |
|---|
| 34 | <severity>0</severity> |
|---|
| 35 | </rule> |
|---|
| 36 | </ruleset> |
|---|
| 37 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.