Features exported og permissions comments do not end in full stop, example:

/**
 * @file
 * project.features.og_features_permission.inc
 */

/**
 * Implements hook_og_features_default_permissions().
 */
function project_og_features_default_permissions() {
  $permissions = array();

  // Exported og permission: 'node:type:close assignment'
  $permissions['node:type:close assignment'] = array(
    'roles' => array(),
  );

  return $permissions;
}

When running phpcs with Drupal standard on it it will get flagged by:
Drupal.Commenting.InlineComment.InvalidEndChar

FILE: project.features.og_features_permission.inc
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 13 | ERROR | [x] Inline comments must end in full-stops, exclamation
    |       |     marks, colons, question marks, or closing
    |       |     parentheses
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Comments

alexverb created an issue. See original summary.

alexverb’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
alexverb’s picture

Status: Active » Needs review

Please review patch of parent ticket.

alexverb’s picture