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.
Drupal.Commenting.VariableComment.WrongStyle fires for missing comments like:
class TestConfigEntityWithPluginCollections extends ConfigEntityBaseWithPluginCollections {
protected $pluginCollection;
Is @var comment really mandatory? If so, I think we should have a separate sniff code for this.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2909393-4.patch | 3.08 KB | zaporylie |
Comments
Comment #2
zaporylieBriefly talked with @klausi and adding new sniff doesn't sound like a bad option.
Comment #3
zaporylie...or not :) We already have Drupal.Commenting.VariableComment.MissingVar and put it there? Alternatively, as in VariableCommentSniff from upstream Squiz/Sniffs, we can use Drupal.Commenting.VariableComment.Missing
Comment #4
zaporylieHere's the patch that syncs downstream VariableComment.Missing.
Comment #5
klausiNice, looks good! Can you file a pull request against https://github.com/pfrenssen/coder so that we see the tests run there?
Comment #6
zaporyliehttps://github.com/pfrenssen/coder/pull/50
Comment #7
klausiCommitted, thanks a lot!