Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2020 at 23:37 UTC
Updated:
2 Apr 2025 at 23:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
munish.kumar commentedComment #3
s_bhandari commentedComment #4
s_bhandari commentedI have added a patch for this. Please review the same and let me know for any observation.
Comment #5
s_bhandari commentedComment #7
daffie commentedThe patch does not apply for 9.2.x
Comment #8
anushrikumari commentedComment #9
jonathan1055 commentedHi @anushrikumari,
Before you do too much work on this issue, you may want to postpone it, and wait for the results of discussions on #3173782: Increase line length limit to 120 and on #3116859-20: [meta] Fix Drupal.Array.Array.LongLineDeclaration coding standard from #20 onwards. If the limit is increased then many of the change done in the patches above would not be necessary.
Jonathan
Comment #10
anushrikumari commentedComment #11
sanjayk commentedRe-roll #4 for 9.2
Comment #12
sanjayk commentedComment #13
jonathan1055 commentedThanks sanjayk for the new patch. Just wondering if you saw my comment in #9?
If you do want to proceed, then you need to prove that this change fixes the coding standards. You have to add that standard into the phpcs.xml.dist file, so that it is checked for. The green test pass in #12 does not give any info on whether the coding standard has been fixed by your patch.
Also I suggest you make a temporary change to drupalci.yml so that testing halts after phpcs has run. This will give you quicker results, but more importantly it conserves resources on the server, which currently cost drupal.org $3-4K each month. When all the new coding standard fixes have been made and agreed, then you can do the full test run to include all the phpunit tests, etc.
For examples of both of these requirements, see this patch from #3185652-2: Fix 'Drupal.Commenting.DocComment.ShortFullStop' coding standard - part 2
Comment #19
quietone commentedThis is being done in other sibling issues. I am closing this as a duplicate.