Fix Drupal.Commenting.FunctionComment.Missing in module tests

Created on 4 April 2025, 4 months ago

Problem/Motivation

Working to enable the sniff Drupal.Commenting.FunctionComment.Missing.

Steps to reproduce

Proposed resolution

Fix this sniff for module tests

Remaining tasks

Create an MR
Enable the sniff in phpcs.xml.dist to include module tests
Fix reported errors
Review

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

other

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @quietone
  • Merge request !11732enable for tests in modules → (Open) created by quietone
  • Pipeline finished with Failed
    4 months ago
    Total: 103s
    #465415
  • 🇳🇿New Zealand quietone

    Linting passed, so setting for review.

  • 🇮🇳India annmarysruthy

    Reviewed the MR. Changes look good to me. Also ignoring the sniff in files using testN() seems to be fine.

  • The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. 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.

  • Status changed to Needs review about 1 month ago
  • 🇳🇿New Zealand quietone

    Time to get some reviews here.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 525s
    #526184
  • 🇺🇸United States smustgrave

    Re-ran test failures and they were all random.

    Was previously RTBC restoring status

  • 🇬🇧United Kingdom longwave UK

    Found a couple of nits.

  • Pipeline finished with Failed
    18 days ago
    #548530
  • Pipeline finished with Success
    18 days ago
    Total: 1146s
    #548543
  • 🇳🇿New Zealand quietone

    @longwave, thanks for the review. I made the corrections and checked if any other changes were needed due to the recent update of Coder.

  • 🇺🇸United States smustgrave

    Feedback appears to be addressed

  • 🇺🇸United States xjm

    Midway through my review. The hook order tests need so much work that IMO we might want to pull them out into their own issue, especially since this is one of those test fixture sets where understanding exactly what is under test is important.

  • 🇺🇸United States xjm

    OK, done reviewing now. Phew, this one is massive! Given the 290 total LOC diffstat of all new docs that furthermore requires you to read not only the context lines of the method but also entirely separate code of the tests these fixtures are for, I think the scope of this is too big. There are two particularly problematic tests that I think should be moved to their own separate issues. Thanks!

  • 🇺🇸United States xjm

    It's not module tests; it's test modules.

  • Pipeline finished with Canceled
    8 days ago
    Total: 719s
    #557254
  • Pipeline finished with Failed
    8 days ago
    Total: 616s
    #557261
  • Pipeline finished with Failed
    8 days ago
    Total: 675s
    #557277
  • Pipeline finished with Success
    7 days ago
    Total: 816s
    #557340
  • Pipeline finished with Failed
    7 days ago
    Total: 700s
    #557454
  • 🇳🇿New Zealand quietone

    I'm going to move the changes for HookOrder to another issue. Assigning to myself for that and to review other local changes before pushing.

Production build 0.71.5 2024