Closed (fixed)
Project:
Flag
Version:
8.x-4.x-dev
Component:
Flag core
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2022 at 09:16 UTC
Updated:
13 Nov 2024 at 11:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
urvashi_vora commentedHey @sharayurajput,
since there is no activity for 5 days. I am assigning this to myself.
Comment #3
urvashi_vora commentedHi,
I have resolved all issues where the @var tag were declared inline and needed "/** */" delimiters.
I will upload a patch.
Thanks
Comment #4
urvashi_vora commentedHi,
Please review this patch.
Thanks
Comment #5
sharayurajput commentedI will review this patch
Comment #6
sharayurajput commentedThese coding standards were encountered -
Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
and the error of trailing whitespaces is encountered so adding patch here
Comment #7
sharayurajput commentedComment #8
Munavijayalakshmi commented#7 having whitespace errors.
Comment #9
Munavijayalakshmi commentedComment #10
atul_ghate commentedHi,
i will review this patch.
Comment #11
atul_ghate commented#9patch resolved a number of coding standards issues, but there are still many remaining, so moving to needs work
Comment #12
ayush.khare commentedResolved remaining phpcs issues in #9 patch.
Comment #13
erikaagp commentedI'll review it
Comment #14
erikaagp commentedThe phpcs errors are still appearing, actually there are too many...
Comment #15
erikaagp commentedsorry, I didn't see something. The coding standards related with Inline @var declarations are already fixed! Btw... There are other issues related with flag that are shown.
Comment #16
ptmkenny commentedThe patch in #12 is making changes unrelated to the coding standard fix:
This is a violation of the indentation standard and needs to be fixed.
Comment #17
ptmkenny commentedUpon closer inspection, #12 is a reroll of #9, but #9 is actually fine, while #12 has indentation problems. So #9 should be the correct patch, as the issue title is "Fix coding standard - Inline @var declarations should use the /** */ delimiters", not "fix all coding standards."
Actually, #7 would be ok too I think, except the
#in the patch file name breaks composer patching.I'm setting this back to "needs review" as someone else should also confirm this analysis that #9 is the patch that best solves this issue at present.
Comment #18
gabrieldv commentedTested here and the #9 patch does the job in the issue scope, so i'm moving it to RTBC.
Remember to use the #9 patch as the final one.
Comment #19
ivnishNeeds reroll to MR
Comment #22
tr commentedNone of the above patches fixed the error correctly, and all except #4 by @urvashi_vora had out-of-scope changes. I created a MR to fix just the phpcs errors mentioned in the title.
Comment #23
tr commentedTest results show that all these errors are eliminated by the MR. This can be confirmed by searching for the sniff Drupal.Commenting.InlineVariableComment.VarInline in the phpcs test results.
Comment #24
tr commentedComment #25
ivnishMR fixed some phpcs issues but added new 4 phpstan issues
Comment #27
ivnishOk, I don't see any code that can add new phpstan issues. Merged
Comment #28
ivnish