Needs review
Project:
Live Weather
Version:
3.0.0
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Aug 2023 at 08:35 UTC
Updated:
16 Aug 2024 at 10:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kpoornima commentedlooking on it
Comment #4
kpoornima commentedPlease review and merge
Comment #5
nishantI have checkout 3379900-phpcs-errors this branch and run the above command, I saw some phpcs cs error, I am posting below.
Comment #6
shreya_th commentedKindly Review this phpcs fixed issues patch file.
Comment #7
bunty oberoiComment #8
aayushmankotia commentedHi @Shreya_th,
I have tested your patch and found no errors. I've attached a screenshot for your reference.
These are the steps I followed:
1. Took clone from git version 3.0.0 in drupal 10.1.x
2. Ran this command:
./vendor/bin/phpcs --standard="Drupal,DrupalPractice" --extensions="php,module,inc,install,test,profile,theme,md,yml" modules/contrib/live_weather/3. Applied patch and again ran phpcs command.
I found no error. Moving it to RTBC.
Comment #9
avpadernoComment #10
avpadernoIf a method is merely calling the parent method, that method can be removed. There is no need to comment out the code.
Between a line defining a class property and the comment for the next property there must be an empty line.
Comment #11
mrinalini9 commentedUpdated patch #6 by addressing #10 and some other phpcs issues (missing type hint), please review it.
Thanks!
Comment #12
vsheokeen commentedTook clone from latst version
Ran the PHPCS commands
Applied the Patch
Ran again all commands.
Now it looks clean. So moving to RTBC
Comment #13
avpadernoThe second line is not correctly indented.
It is probably better to leave the method call on a single line, as it is easier to understand. The fact the first line ends with ( and the last line ends with ] is a bit confusing.
The full method must be deleted.
IDentifier should be identifier. It is not necessary to say of the location, since a Where on Earth identifier is surely for a location.
The second line is not correctly indented. It is probably better to put the code on a single line.
There is not need to put
FALSEon a new line.The second line is not correctly indented and it is not necessary to use two lines.
Comment #14
mrinalini9 commentedUpdated patch #11 by addressing #13, please review it.
Thanks!
Comment #15
avpadernoThat empty line must be kept.
Since that is a method defined in an interface, the existing documentation comment is already correct.
The existing documentation comment is already correct.
Comment #17
yashaswi18 commentedApplied patch provided in #14, patch applied cleanly, all phpcs issues are fixed. The reviews yet to be addressed.
Ran this command to check :
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml live_weather/
Comment #18
avpadernoThe merge request has more recent changes. That needs to be reviewed, not the patch.
Comment #19
avpadernoComment #20
nikolay shapovalov commentedSet to NW.
Comment #21
pray_12 commentedComment #22
nikolay shapovalov commentedThanks. Please check my feedback.
Comment #23
avpadernoComment #24
zkhan.aamir commentedHi,
I have checkout 3379900-phpcs-errors this branch and run the above command.
There are no errors found.
Comment #25
a.aaronjake commentedHi @everyone,
Applied the latest changes on MR!6, one error was thrown by my terminal. Please see below:
Kindly check
Thanks,
Jake
Comment #27
avpadernoThere is still a PHP_CodeSniffer error to fix.
Comment #28
avpadernoComment #29
avpadernoComment #30
avpaderno