...
Inspection name | Error message | Example code | Problem description | Solved | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Drupal_Sniffs_Formatting_SpaceOperatorSniff | A opeator statement must be followed by a single space |
| Inspections should check, that operands are separated from operators by a single space.
However symbols "=" and "&" are operators on it's own ("equals" and "bitwise and") and probably during syntax check inspection isn't aware, that together ("=&") they represent assigning a value by reference. |
| |||||||||||||||||||||||||
Drupal_Sniffs_Array_ArraySniff | A comma should follow the last multiline array item. Found: /*'k2',*/ |
| Inspection forces usage of trailing comma after last array element. However in this example commented out code is present before array declaration end, which makes inspection go crazy and not notice actual comma after 'k1' code. |
| |||||||||||||||||||||||||
PEAR_Sniffs_Functions_FunctionCallSignatureSniff | Multi-line function call not indented correctly; expected 7 spaces but found 4 |
| Inspection thinks, that spaces need to be used to indent stuff and not TABs. It's not an error inside an inspection, because it's PEAR standard inspection, where this exactly is needed to be done. We need to either found similar inspection, that uses TABs or create our own based on this one.
|
|
| ||||||||||||||||||||||||