False positives with Drupal.Commenting.VariableComment.Missing

Created on 29 September 2024, about 2 months ago

Problem/Motivation

This code block is reported as failing the sniff, Drupal.Commenting.VariableComment.Missing. The variable does has a comment.

  /**
   * The search score.
   */
  // phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
  public string $search_score;

See https://git.drupalcode.org/project/drupal/-/blame/11.x/core/modules/sear...

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

8.3

Component

Coder Sniffer

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024