Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 | Dane Powell |
#1 | coder_tough_love-1394024-1.patch | 3.83 KB | Dane Powell |
Comments
Comment #1
Dane Powell CreditAttribution: Dane Powell commentedHere is a patch to test...
Comment #2
Dane Powell CreditAttribution: Dane Powell 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
Dane Powell CreditAttribution: Dane Powell commentedFYI, this bug is also present in 7.x and will need to be patched there as well once this is committed.