Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Before a stable release we should make sure that our theme passes Drupal coding standards
http://pareview.sh/pareview/httpgitdrupalorgprojectlightskeletongit
Solution
We need to fix all pareview.sh warning/errors.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2576715-Drupal_Coding_Standards-7.patch | 41.7 KB | anabpv |
#5 | code_standard_fixes-2576715-5.patch | 40.12 KB | chishah92 |
Issue fork light_skeleton-2576715
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
moymilo CreditAttribution: moymilo at FFW commentedHow I can help with this?
Comment #3
darol100 CreditAttribution: darol100 as a volunteer and commentedFor D7 theming, the easier way is to run Coder/Auto-format. This will fix most is the formatting/minor issue. To also keep fixing those issue we need to use https://www.drupal.org/project/pareviewsh to see what error are left after you run the auto-formart.
Feel free to work on it.
Comment #4
chishah92 CreditAttribution: chishah92 at Blisstering Solutions commentedComment #5
chishah92 CreditAttribution: chishah92 at Blisstering Solutions commentedI have fixed the code standard issues according to the PAReview.sh resolving all codesniffer issues
Comment #6
anabpvSince this issue needs review, I will review it.
Comment #7
anabpvI have applied the fixes from Code Sniffer and Code Beautify. All issues have been resolved.
Needs to be reviewed to confirm the fix.
Comment #8
tmaiochi CreditAttribution: tmaiochi at CI&T commentedI'll review this.
Comment #9
tmaiochi CreditAttribution: tmaiochi at CI&T commentedSteps performed:
(1) Installed module
(2) Reproduced the issue.
(3) Applied patch.
(4) Code review on changes.
(5) Tested again with patch, issue resolved.
The patch fixed all warnings and errors. There's no PHPCS messages and the theme worked normally.