GitLab CI reports PHP_CodeSniffer errors/warnings that should be fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | Screenshot 2023-04-05 at 9.09.08 AM.png | 56.86 KB | sahil.goyal |
| #15 | aftpatch.png | 1.56 MB | skt-001 |
| #5 | php-druapl-standard-3162002-3.patch | 30.27 KB | dharti patel |
| #2 | visualization-3162002-2.patch | 27.69 KB | harishh |
Issue fork visualization-3162002
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
harishh commentedPlease apply attached patch.
Comment #3
harishh commentedComment #4
dharti patel commentedComment #5
dharti patel commentedHello,
I've reviwed the #2 patch but after applying the patch facing one issue.
---------------------------------------------------------------------------------------------------
FILE: /home/drupal/d9-open/visualization/src/Plugin/visualization/handler/HighchartsHandler.php
---------------------------------------------------------------------------------------------------
109 | ERROR | The array declaration extends to column 138 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------
I have created a patch to fix this issue.
Kindly review the patch.
Comment #6
cinarb commentedHi, I am going to review the patch. :)
Comment #7
cinarb commentedNo issues were found in the #5 patch after being applied. I looked again for code standard issues on the module, but none were found—everything working properly.
Comment #10
rassoni commented#5 patch appied successfully and no phpcs issues found. Created MR
Comment #11
avpadernoThe issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, report which command has been used, which arguments have been used, and which report that command shown.
Comment #12
maro22 commentedHey,
This module not compatible wth drupal 10 ?!
They are a anthor module like this, for migration site from 7 to 10, please
Thanks
Comment #13
sahil.goyal commentedUpdating the IS
Comment #14
avpadernoComment #15
skt-001 commentedpatch #5 applied successfully compatible with my version sharing the SS.
Comment #16
avpadernoSince the merge request !3 is the last created, I am going to review that.
That is not the short description used for class constructors.
The description for the parameters is missing.
Since that is a method defined from the parent class, the documentation comment is different.
@fileis not used for files containing a single class definition.Short descriptions should not just repeat the property name.
The lines after the first one should be indented.
If the returned value is a string, it cannot be an array.
core_version_requirementis recognized only starting from Drupal 8.8. Ifcore: 8.xis replaced bycore_version_requirement: ^8, the module is not installable on earlier Drupal versions.The report shown in the issue summary does not show any issue for JavaScript files. Either the shown report is not complete, or those changes are off-topic.
Comment #17
sahil.goyal commentedComment #18
sahil.goyal commentedaddressed all the suggestive coding standards and warnings in #16.
only last suggestion is left,
As here task is to address PHPCS issues, which are related to the PHP code standards used in the project.
Regarding the JavaScript files, the report shown in the issue summary does not indicate any issues related to those files. Therefore, consider those changes as off-topic for current task of addressing PHPCS issues.
Please review.
Thanks @apaderno for addressing the issues.
Comment #19
avpadernoI ran
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml ./visualizationand I got a longer report than what previously shown.I updated the issue summary.
Please, when opening these issues, show the full report, not only part of it as it is more convenient for the user who is going to provide a patch or create a MR.
Comment #20
avpadernoLet's start with those issues. I would leave the ones about JavaScript code for a different issue.
Comment #21
sahil.goyal commentedHi @apaderno, when i run
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml ./visualizationi can only seen a single issue, not a list of as updated in IS. Attaching Sreenshot.Comment #22
avpadernoCloning the 8.x-1.x branch with
git clone --branch '8.x-1.x' https://git.drupalcode.org/project/visualization.git ./visualizationand then executing
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml ./visualizationgives the report shown in the issue summary. I tried again, and the report is not just for a single line.Comment #24
avpadernoComment #25
avpadernoComment #27
avpadernoComment #29
sakthi_dev commentedPlease review. Addressed as per comment on MR.
Comment #31
a.aaronjake commentedHi @sakthi_dev & @silvi.addweb,
The changes you made on MR !3 was applied smoothly, however, one error still reported, please see below:
Kindly check
Thanks,
Jake
Comment #35
kartikey gupta commentedComment #36
kartikey gupta commentedComment #37
kartikey gupta commentedMR Raised
Comment #39
avpadernoComment #41
avpaderno