Closed (won't fix)
Project:
Coder
Version:
7.x-2.1
Component:
Review/Rules
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2009 at 21:33 UTC
Updated:
10 Oct 2016 at 11:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
erickbj commentedThis verification is present in the 7.x-2.1 version but is buggy - meaning that having a
(function ($) {line in your JS code still triggers the review error.That happens because the review rule is missing a configuration (
#source) and when the rule processor runs the rule (upgrade7x_64) it's not reading the actual file source code (it comes empty).The attached patch solves the issue for 7.x-2.1. The rule definition is the same in 7.x-2.x-dev so I suppose the bug is there too, although I haven't checked that.
Comment #2
David_Rothstein commentedComment #3
vmachado commentedSuggested patch is working fine.
Comment #4
klausiCoder 7.x is frozen now and will not receive updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.