Problem/Motivation
The stylelint check is not passing.
Proposed resolution
Fix issues raised by stylelint.
Remaining tasks
Merge.
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork page_manager-3514064
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 #3
bluegeek9 commentedBoth phpcs and stylelint are green.
The failing tests are addressed in:
Comment #4
magdalenaa67 commentedpage_manager-3514064.patch worked for me. Thank you!
Comment #5
liam morlandThe merge request makes many changes that are not about nullable params, as described in the issue title. I suggest leaving the nullable params to #3536704: [PHP8.4] Misc NULL deprecation warning on a few files and re-title this issue to be about coding standards.
Comment #7
vinodhini.e commentedHi, Hi,
Tested this on Drupal 11.2.5 and verified the coding standards using PHPCS and Stylelint.
After applying MR #40 and re-running the reports:
PHPCS is not reporting any errors.
Stylelint is still reporting 14 errors, listed below.
File: web/modules/contrib/page_manager-3514064/page_manager_ui/css/page-manager-ui-page-variants.css
Line 7: Expected class selector ".page__section__2" to be kebab-case (selector-class-pattern)
Line 11: Expected class selector ".page__section__2" to be kebab-case (selector-class-pattern)
Line 15: Expected class selector ".page__section_item__1" to be kebab-case (selector-class-pattern)
Line 15: Expected class selector ".page__section__label" to be kebab-case (selector-class-pattern)
Line 20: Expected class selector ".page__section_item__1" to be kebab-case (selector-class-pattern)
Line 20: Expected class selector ".page__section__label" to be kebab-case (selector-class-pattern)
Line 26: Expected class selector ".page__section_item__1" to be kebab-case (selector-class-pattern)
Line 27: Expected class selector ".page__section__label" to be kebab-case (selector-class-pattern)
Line 32: Expected class selector ".page__section_item__1" to be kebab-case (selector-class-pattern)
Line 33: Expected class selector ".page__section__label" to be kebab-case (selector-class-pattern)
Line 33: Expected class selector ".current_variant" to be kebab-case (selector-class-pattern)
File: web/modules/contrib/page_manager-3514064/page_manager_ui/css/page-manager-ui.admin.css
Line 49: Expected selector ".page-manager-wizard-tree > ul" to come before selector ".page-manager-wizard-tree ul > li > ul" (no-descending-specificity)
Line 55: Expected selector ".page-manager-wizard-tree li" to come before selector ".page-manager-wizard-actions ul.inline li" (no-descending-specificity)
Line 61: Expected selector ".page-manager-wizard-tree li:last-child" to come before selector ".page-manager-wizard-actions ul.inline li" (no-descending-specificity)
Thanks.
Comment #8
liam morlandI have updated the merge request so that it is only fixing issues raised by stylelint. That test now passes. phpcs already passes and there are already no implicit nullable params.
@bluegeek9 Please re-title the merge request. You can change it because you are the creator.
Comment #10
joelpittetThanks for rescoping this @lkmorlan and @bluegeek9 for the initial MR