Closed (outdated)
Project:
Display Field Copy
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 May 2016 at 21:32 UTC
Updated:
28 Jul 2025 at 05:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anoopjohn commentedPlease find attached a patch that fixes the errors.
Comment #3
davidwbarratt commentedI think you might be using an old version of Coder... here's what I have:
which produces (in the repo directory):
Comment #4
anoopjohn commentedYes you are right. I am using the latest dev version of coder :-). You might still want to fix the issue as the issue is something that coder has already been modified to address.
You can avoid using the full path to the standard by registering the standard's paths
phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_snifferThis should allow you to run it using
phpcs -s --standard=Drupal pathYou can checkout the latest coder 8.x-2.x in the coder folder by making coder use the source (https://www.drupal.org/node/1419988)
composer global update drupal/coder --prefer-sourceand then
Comment #5
davidwbarratt commentedThis issue #1539712: [policy, no patch] Coding standards for breaking function calls and language constructs across lines is still in "Needs Review" so I'll mark this issue as postponed until it can be resolved.
Looks like there's a bug in the next version of Coder that needs to be resolved before it's release. Would you mind creating an issue for them in their queue?
Comment #6
davidwbarratt commentedComment #7
anoopjohn commentedThanks for pointing to that issue @davidwbarratt. I had a couple of questions myself which I have asked in the issue. I have reported the issue in coder queue as well #2747203: Coder currently checks for Squiz.Functions.MultiLineFunctionDeclaration.* while this is not yet approwed by TWG. BTW it looks like the standard is in the approved state and is waiting for announcement.
Comment #8
jannakha commentedDrupal 8 is out of support.
Please upgrade to Drupal 10+ and use latest version of the module.