lolibrary/lolibrary

View on GitHub

Showing 54 of 80 total issues

Function dispatchRequest has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function dispatchRequest(config) {
  throwIfCancellationRequested(config);

  // Support baseURL config
  if (config.baseURL && !isAbsoluteURL(config.url)) {
Severity: Minor
Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

    Function main has 67 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func main() {
        g := generator.New()
    
        t, err := template.New("protoc-gen-router").Parse(tmpl)
        if err != nil {
    Severity: Minor
    Found in cmd/protoc-gen-router/main.go - About 1 hr to fix

      Function dispatchException has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          dispatchException: function(exception) {
            if (this.done) {
              throw exception;
            }
      
      
      Severity: Minor
      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

        Function render has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var render = function() {
          var _vm = this
          var _h = _vm.$createElement
          var _c = _vm._self._c || _h
          return _c(
        Severity: Minor
        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

          Function AsyncIterator has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function AsyncIterator(generator) {
              function invoke(method, arg, resolve, reject) {
                var record = tryCatch(generator[method], generator, arg);
                if (record.type === "throw") {
                  reject(record.arg);
          Severity: Minor
          Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

            Method apply has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function apply(Request $request, $query, $value)
                {
                    // lock away certain functions behind dev.
                    if ($request->user()->developer()) {
                        switch ($value) {
            Severity: Minor
            Found in web.sakura/app/Nova/Filters/ItemStatusFilter.php - About 1 hr to fix

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

              var $export = function (type, name, source) {
                var IS_FORCED = type & $export.F;
                var IS_GLOBAL = type & $export.G;
                var IS_STATIC = type & $export.S;
                var IS_PROTO = type & $export.P;
              Severity: Minor
              Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

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

                    clearSelectedFilters: function () {
                      var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(lens) {
                        var _updateQueryString;
                
                        return _regenerator2.default.wrap(function _callee$(_context) {
                Severity: Minor
                Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                  Function buildURL has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  module.exports = function buildURL(url, params, paramsSerializer) {
                    /*eslint no-param-reassign:0*/
                    if (!params) {
                      return url;
                    }
                  Severity: Minor
                  Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                    Method fields has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function fields(Request $request)
                        {
                            return [
                                Gravatar::make(),
                    
                    
                    Severity: Minor
                    Found in web.sakura/app/Nova/User.php - About 1 hr to fix

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

                            var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(lens) {
                              var _updateQueryString;
                      
                              return _regenerator2.default.wrap(function _callee$(_context) {
                                while (1) {
                      Severity: Minor
                      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

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

                            initializeState: function () {
                              var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(lens) {
                                return _regenerator2.default.wrap(function _callee3$(_context3) {
                                  while (1) {
                                    switch (_context3.prev = _context3.next) {
                        Severity: Minor
                        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

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

                              var run = function (reaction) {
                                var handler = ok ? reaction.ok : reaction.fail;
                                var resolve = reaction.resolve;
                                var reject = reaction.reject;
                                var domain = reaction.domain;
                          Severity: Minor
                          Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                            Function standardBrowserEnv has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              (function standardBrowserEnv() {
                                var msie = /(msie|trident)/i.test(navigator.userAgent);
                                var urlParsingNode = document.createElement('a');
                                var originURL;
                            
                            
                            Severity: Minor
                            Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                              Function ordinalize has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  ordinalize: function(str) {
                                      var str_arr = str.split(' ');
                                      for (var x = 0; x < str_arr.length; x++)
                                      {
                                          var i = parseInt(str_arr[x]);
                              Severity: Minor
                              Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                Method options has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function options(Request $request)
                                    {
                                        if ($request->user()->developer()) {
                                            return [
                                                'My Items' => 'my-items',
                                Severity: Minor
                                Found in web.sakura/app/Nova/Filters/ItemStatusFilter.php - About 1 hr to fix

                                  Function fetchCards has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          fetchCards: function () {
                                              var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
                                                  var _ref2, cards;
                                  
                                                  return _regenerator2.default.wrap(function _callee$(_context) {
                                  Severity: Minor
                                  Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                    Method search has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function search(SearchRequest $request)
                                        {
                                            $query = Item::query();
                                    
                                            $this->filters($request, $query);
                                    Severity: Minor
                                    Found in web.sakura/app/Http/Controllers/Api/SearchController.php - About 1 hr to fix

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

                                              return _regenerator2.default.wrap(function _callee$(_context) {
                                                while (1) {
                                                  switch (_context.prev = _context.next) {
                                                    case 0:
                                                      if (!lens) {
                                      Severity: Minor
                                      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                        Function standardBrowserEnv has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          (function standardBrowserEnv() {
                                            return {
                                              write: function write(name, value, expires, path, domain, secure) {
                                                var cookie = [];
                                                cookie.push(name + '=' + encodeURIComponent(value));
                                        Severity: Minor
                                        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language