Exported fields instances have comments in this format, which are not compliant with the Drupal coding standards since they do not end with a period:
// Exported field_instance: 'mymodule-myfield'
$field_instances['mymodule-myfield'] = array(
// ...
);
This generates errors when scanning the source coding using PHP Codesniffer and the Drupal ruleset from the Coder module:
ERROR: Inline comments must end in full-stops, exclamation marks, colons, or question marks (Drupal.Commenting.InlineComment.InvalidEndChar)
We should simply append a period to the generated comments to satisfy the coding standards.
Comments
Comment #2
pfrenssenComment #3
pfrenssenComment #4
pfrenssenFixing ending periods for both field instances and base fields now.
Comment #5
danepowell commentedPatch #4 looks good, works great.
Comment #6
danepowell commentedActually I found two other coding standards violations, in menu exports. I hate to hijack this issue, but since all of these are probably only being noticed now because of the release of Coder 8.2.4, I think it makes sense to fix them all at the same time.
Comment #7
pfrenssenGood find, thanks!
Comment #9
mpotter commentedCommitted to a8b9dc5.
Since we hadn't committed anything yet, it was ok to post a related patch. But in general we should be making separate issues for this. Otherwise a perfectly good RTBC patch can get missed and derailed.
Certainly any additional coder fixes should go into a new issue since this has now been committed here and closed. Do not re-open this issue with additional coder changes. Thanks for the help on this!