notifme/notifme-sdk

View on GitHub
lib/providers/webpush/gcm.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function value has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    value: function () {
      var _send = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
        var _ref2, subscription, rest, result;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
Severity: Minor
Found in lib/providers/webpush/gcm.js - About 1 hr to fix

    Function _callee has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          var _send = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
            var _ref2, subscription, rest, result;
            return _regenerator["default"].wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
                case 0:
    Severity: Minor
    Found in lib/providers/webpush/gcm.js - About 1 hr to fix

      Function _callee$ has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              return _regenerator["default"].wrap(function _callee$(_context) {
                while (1) switch (_context.prev = _context.next) {
                  case 0:
                    if (!request.customize) {
                      _context.next = 6;
      Severity: Minor
      Found in lib/providers/webpush/gcm.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status