- 🇺🇸United States smustgrave
Pipeline has errors. Would recommend verifying that everything passes before putting into review please.
dhruv.mittal → changed the visibility of the branch 3373530-fix-the-warningserrors to hidden.
- 🇳🇿New Zealand quietone
@kul.pratap, Thanks for asking! The suggested changes to phpcs.xml.dist should exclude the files that have just started to cause violations from being checked by phpcs. Without those being checked that will bet this back on track to where only the feedback from larowlan and myself need to be resolved.
The files that have just started to cause the violations are going to be fixed in the parent issue, along with enabling the sniff on all of core. I've already set that up and postponed that on this issue.
I hope that all make sense.
- 🇳🇿New Zealand quietone
Created MR with what should be the remaining fixes.
And postponing on the last child.
- 🇳🇿New Zealand quietone
Due to recent commits of coding standard fixes, there are too many changes to fix and enable this sniff in 📌 Fix remaining missing @var annotation that do not have a default value RTBC . So, opening this up again to do the final enable and fixes.
- 🇮🇳India kulpratap2002
@quieton Should I resolve the unresolved issues in the MR as mentioned by you?
- 🇳🇿New Zealand quietone
@kul.pratap, thanks. I just added another change to exclude files in 'Plugin' directories. That should help here.
Updating title for the new scope.
I'll work on an issue for the changes in the 'Plugin' directories.
- 🇮🇳India kulpratap2002
@quietone Thank you for the feedback. I will review the comments in the MR and address them.
- 🇳🇿New Zealand quietone
@kul.pratap, Welcome to Drupal! Thanks for working on this. I made a few comments in the MR. Also, This is failing the pre commit checks. It is good practice to Run core development checks → locally before submitting a change.
There have been recent commits that are causing more errors. I don't think the sniff can be enabled here. This will have to go back to doing a subset of files. I'll look into that now.
- 🇮🇳India kulpratap2002
kul.pratap → made their first commit to this issue’s fork.
The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇺🇸United States smustgrave
Seems pretty straight forward.
I rebased the MR because I couldn't re-run, but the build step had failed which I'm hoping isn't a new random issue popping up. But rebase based now just our regular set of random failures.
- First commit to issue fork.
- 🇷🇺Russia zniki.ru
It looks like code duplication was made at core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php
There is fix at 📌 Remove FormattableMarkup from FileManagedUnitTestBase Active . Automatically closed - issue fixed for 2 weeks with no activity.
- 🇳🇿New Zealand quietone
📌 Fix 'Drupal.Semantics.FunctionT.NotLiteralString' coding standard Active committed, and removed from the issue summary.
- 🇳🇿New Zealand quietone
linting check passed so I am setting this to needs review.
- 🇳🇿New Zealand quietone
Thank you to everyone who helped to complete this issue. The last child was recently committed. So, I am closing this as fixed.
-
larowlan →
committed b49cc195 on 11.x
Issue #3123067 by quietone, smustgrave, alexpott, catch, larowlan: Fix '...
-
larowlan →
committed b49cc195 on 11.x
-
larowlan →
committed 29d9a3cd on 11.x
Issue #3491269 by quietone: Fix Drupal.Commenting.FunctionComment....
-
larowlan →
committed 29d9a3cd on 11.x
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Committed to 11.x - thanks
I don't know that there's an automated rule we can us for this, but it would be good to add a follow up to investigate
-
larowlan →
committed ef6790f7 on 11.x
Issue #3454159 by quietone, smustgrave, nod_: Convert use of array()...
-
larowlan →
committed ef6790f7 on 11.x
-
larowlan →
committed e25e01aa on 11.x
Issue #2842949 by quietone, rigoucr, arunkumark, gaurav.kapoor,...
-
larowlan →
committed e25e01aa on 11.x
- First commit to issue fork.
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Couple of minor issues in the MR, also needs a reroll
Thanks for working on this.
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Left some comments on the MR
This also needs re-roll - thanks for working on this! - 🇳🇿New Zealand quietone
Rebased, linting has passed, although other tests are still running.
-
larowlan →
committed 57583222 on 11.x
Issue #3487154 by quietone, daffie, smustgrave: Fix Drupal.Commenting....
-
larowlan →
committed 57583222 on 11.x
-
larowlan →
committed 0dc7ae45 on 11.x
Issue #3490056 by ankitv18, dww, quietone: Enable SlevomatCodingStandard...
-
larowlan →
committed 0dc7ae45 on 11.x
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
---------------------------------------------------------------------------------------------------- Running PHPStan on changed files. ------ ------------------------------------------------------------------------------------ Line modules/filter/src/Plugin/Filter/FilterHtml.php ------ ------------------------------------------------------------------------------------ 270 Method class@anonymous/modules/filter/src/Plugin/Filter/FilterHtml.php:265::setTextMode() has no return type specified. ------ ------------------------------------------------------------------------------------ [ERROR] Found 1 error PHPStan: failed
This failed on commit check - but that's a filter plugin, not a views filter plugin so is out of scope, reverted that changed and it passed
Committed to 11.x - thanks!
More phpcs rules - nice! -
larowlan →
committed c55ad549 on 11.x
Issue #3491289 by quietone: Fix Drupal.Commenting.FunctionComment....
-
larowlan →
committed c55ad549 on 11.x
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Committed to 11.x - thanks!
Nice to see another rule enabled
-
larowlan →
committed 19bd1484 on 11.x
Issue #3477668 by quietone, lavanyatalwar, daffie: Fix Drupal.Commenting...
-
larowlan →
committed 19bd1484 on 11.x
- @chhavisharma opened merge request.
- 🇮🇳India chhavi.sharma
chhavi.sharma → changed the visibility of the branch 3492335-coding-standard-issues to hidden.
- @chhavisharma opened merge request.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
The changes are just for using the short syntax for array and adding a
@var
line for a property declaration.IMO, they are so small that they should be fixed when fixing other issues in the code, if those issues are present. Otherwise, the merge request in this issue can be merged, at project maintainers' discretion.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
avpaderno → changed the visibility of the branch 3034265-fix-the-errorswarnings to hidden.
- @avpaderno opened merge request.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
The 8.x-1.x branch is no longer supported; any change needs to be done in the 2.x branch.
Hi @kinyein,
It is recommended to use GitLab CI to run automated fixes, I have enabled the pipeline and as can be seen, the phpcs job failed.
Kindly check
Thanks,
Jake- 🇷🇺Russia zniki.ru
@quietone can you please share the script to generate all the files?
- 🇷🇺Russia zniki.ru
Having code that violates code standards so much is bad example.
I opened Drupal\Core\ProxyClass\Batch\BatchStorage and was thinking that some code styles in my IDE broke, I was not expected to have php code in core, that use 4 spaces as indentation.
As mentioned at #6, current patch provide fix some code styles rules.
Let's implement changes and just ignore few code styles rules instead of all rules.Adding related idea to implement Property promotion for generated class.
- 🇵🇭Philippines cleavinjosh
cleavinjosh → changed the visibility of the branch 3373061-phpcs-issues to hidden.
- 🇵🇭Philippines cleavinjosh
Hi @avpaderno,
Please review, check, and advise. Thank you.
- @cleavinjosh opened merge request.
Automatically closed - issue fixed for 2 weeks with no activity.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
The issue summary needs to link to the PHP_CodeSniffer report done before changing the project files, not after.
I have resolved phpstan, stylelint,phpcs and some eslint error. there are phpunit and some eslint yet to resolve.
I don't have much knowledge about phpunit tests. I would love to help if someone guide me how to do them.
Thank you- @dhruvmittal opened merge request.
- @dhruvmittal opened merge request.
- 🇮🇳India divyansh.gupta Jaipur
@avpaderno
Made the changes requested,
Please review. - @divyanshgupta opened merge request.
- 🇮🇳India divyansh.gupta Jaipur
divyansh.gupta → changed the visibility of the branch 3373061-fixes-error-warning-phpcs to hidden.
- 🇧🇪Belgium svendecabooter Gent
Patch does no longer apply to latest codebase in 1.0.x
Automatically closed - issue fixed for 2 weeks with no activity.
Automatically closed - issue fixed for 2 weeks with no activity.
Automatically closed - issue fixed for 2 weeks with no activity.
Automatically closed - issue fixed for 2 weeks with no activity.
Automatically closed - issue fixed for 2 weeks with no activity.
Automatically closed - issue fixed for 2 weeks with no activity.