- Issue created by @prem suthar
- Merge request !47field_group-3423199/3423199-fix-the-issues - Fix the Phpcs Issues. โ (Merged) created by prem suthar
- Status changed to Needs review
10 months ago 12:46pm 22 February 2024 - ๐ฎ๐ณIndia Ashutosh Ahirwal India
Ashutosh Ahirwal โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia Ashutosh Ahirwal India
Hi Provided MR working fine but there are still some error found related to js
I have updated MR Needs Review.
Used command:- ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/field_groupFILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/field_group/js/field_group.field_ui.js
---------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------
49 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
58 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
111 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
120 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/field_group/js/field_group.js
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
15 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/field_group/formatters/tabs/horizontal-tabs.js
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
72 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/field_group/formatters/tabs/tabs.js
------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
24 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
40 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/field_group/formatters/accordion/accordion.js
----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
32 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
35 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
45 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/field_group/formatters/html_element/html-element.js
----------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------
55 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------Time: 1.8 secs; Memory: 18MB
- First commit to issue fork.
- ๐ซ๐ทFrance dydave
Quick follow-up on this issue:
A few additional commits were added to the current merge request MR!47 with a few comments, see above at #6.
But mostly, at this point:
Last build on MR!47: https://git.drupalcode.org/issue/field_group-3423199/-/pipelines/176726- The PHPCS job now seems to be passing โ
PHPCS job: https://git.drupalcode.org/issue/field_group-3423199/-/jobs/1631061
- The PHPUnit Tests are passing as well ๐ข \o/
PHPUnit job: https://git.drupalcode.org/issue/field_group-3423199/-/jobs/1631066
Changes to file
MigrateUiFieldGroupTest.php
from merge request MR!49 (see ๐ Automated Drupal 11 compatibility fixes for field_group - Fixed PHPUnit on GitlabCI RTBC ) had to be ported to this MR for the phpunit tests to complete, see:
https://git.drupalcode.org/project/field_group/-/merge_requests/49/diffs...
So changes to this file could probably be reverted once the phpunit tests are fixed in the main development branch (8.x-3.x).
We would greatly appreciate if a maintainer or someone with write permission could take a look at ticket's merge request MR!47 and let us know if there would be any more work needed.
Feel free to let us know if you have any questions or concerns on merge request MR!47 or any aspect of this ticket in general, we would surely be glad to help.
Thanks in advance for your feedback and reviews. - The PHPCS job now seems to be passing โ
- ๐ซ๐ทFrance dydave
Quick follow-up on this issue:
Since there were not too many issues and some of them were already fixed by the PHPCS changes, I went ahead and got all PHPSTAN errors fixed in the same MR.
At this point PHPCS, PHPSTAN and PHPUNIT jobs all seem to be passing ๐ข
See last build: https://git.drupalcode.org/issue/field_group-3423199/-/pipelines/179212Feel free to let us know if you have any questions or concerns on merge request MR!47 or any aspect of this ticket in general, we would surely be glad to help.
Thanks in advance for your feedback and reviews. -
DYdave โ
committed eb2167b7 on 8.x-3.x
Issue #3423199: Temporary port of patch from DO-3430494 to pass phpunit...
-
DYdave โ
committed eb2167b7 on 8.x-3.x
- ๐ง๐ชBelgium nils.destoop
nils.destoop โ made their first commit to this issueโs fork.
- Status changed to Fixed
7 months ago 9:25am 1 June 2024 - ๐ง๐ชBelgium nils.destoop
Thx for the merge request. This has been merged
Automatically closed - issue fixed for 2 weeks with no activity.