text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = void 0;
  
  var _lodash = _interopRequireDefault(require("lodash"));
  
  var _iterateJsdoc = _interopRequireDefault(require("../iterateJsdoc"));
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var _default = (0, _iterateJsdoc.default)(function (_ref) {
    var jsdoc = _ref.jsdoc,
        report = _ref.report,
        utils = _ref.utils;
    var targetTagName = utils.getPreferredTagName('returns');
  
    var jsdocTags = _lodash.default.filter(jsdoc.tags, {
      tag: targetTagName
    });
  
    _lodash.default.forEach(jsdocTags, function (jsdocTag) {
      var type = jsdocTag.type && jsdocTag.type.trim();
  
      if (type === 'void' || type === 'undefined') {
        return;
      }
  
      if (!jsdocTag.description) {
        report('Missing JSDoc @' + targetTagName + ' description.', null, jsdocTag);
      }
    });
  });
  
  exports.default = _default;
  module.exports = exports.default;
  //# sourceMappingURL=requireReturnsDescription.js.map