Problem/Motivation
#3477614: Ignore VariableComment.Missing as needed was added to allow the sniff to be enabled but they are actually false positives.
Steps to reproduce
N/A
Proposed resolution
Search core for phpcs ignore lines that include Drupal.Commenting.VariableComment.Missing and remove Drupal.Commenting.VariableComment.Missing where possible.
Remaining tasks
Wait for #3477601: False positives with Drupal.Commenting.VariableComment.Missing to be complete
Revert #3477614: Ignore VariableComment.Missing as needed and others
Review
User interface changes
N/A
Introduced terminology
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Issue fork drupal-3478812
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:
- 3478812-remove-phpcsignore-variablecomment.missing
changes, plain diff MR !13538
Comments
Comment #2
quietone commentedComment #3
quietone commentedThere are more instances being added to core where the ignore is needed, updating issue summary.
Comment #5
quietone commentedThis leaves one instance, in \Drupal\views\Plugin\views\argument\Date for
public $option_name = 'default_argument_date';. As far as I can tell that property is not used. That needs an issue.Comment #6
smustgrave commentedOutside \Drupal\views\Plugin\views\argument\Date mentioned in #5 appears to be 2 more instances in PagerPluginBase
Comment #7
quietone commentedThose two are
Drupal.Commenting.VariableComment.MissingVarnotphpcs:ignore VariableComment.Missingso they are out of scope for this issue.Comment #8
smustgrave commentedThose were the only instances I found then
Comment #9
longwaveNeeds rebase.
Comment #10
quietone commentedSimple conflict due to removed code in 11.x, #3553348: Remove unused class property \Drupal\views\Plugin\views\argument\Date::$option_name. I am restoring RTBC
Comment #11
longwaveCommitted and pushed 4a9217ba03e to 11.x and 5956a411dbf to 11.3.x. Thanks!