With later releases of Coder, it's possible to define 'ignore' rules, i.e. tell Coder to ignore false positives. This seems to work with CTL rules that use core Coder functions, such as the "Use the matching Drupal theme functions" rule. However, rules that use a callback, such as the "Use sentence case" rule, do not respect ignored lines. The reason is that all calls to _coder_error should pass an array of ignored lines as the last argument.
See how _coder_error is called in the latest version of coder_6x.inc for an example.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | coder_tough_love-1394024-2.patch | 5.67 KB | danepowell |
| #1 | coder_tough_love-1394024-1.patch | 3.83 KB | danepowell |
Comments
Comment #1
danepowell commentedHere is a patch to test...
Comment #2
danepowell commentedActually I missed a few lines, here's an updated patch. It's pretty simple- I've tested it and it works fine.
Comment #3
danepowell commentedFYI, this bug is also present in 7.x and will need to be patched there as well once this is committed.