DariusIII/newznab-tmux

View on GitHub

Showing 2,961 of 2,961 total issues

File theme.js has 12705 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
Severity: Major
Found in public/assets/js/themes/mobile/theme.js - About 1 mo to fix

    File plugin.js has 11243 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * Copyright (c) Tiny Technologies, Inc. All rights reserved.
     * Licensed under the LGPL or a commercial license.
     * For LGPL see License.txt in the project root for license information.
     * For commercial licenses see https://www.tiny.cloud/
    Severity: Major
    Found in public/assets/js/plugins/table/plugin.js - About 1 mo to fix

      File emojiimages.js has 9422 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // Source: npm package: emojilib
      // Images provided by twemoji: https://github.com/twitter/twemoji
      window.tinymce.Resource.add("tinymce.plugins.emoticons", {
        100: {
          keywords: [ "score", "perfect", "numbers", "century", "exam", "quiz", "test", "pass", "hundred" ],
      Severity: Major
      Found in public/assets/js/plugins/emoticons/js/emojiimages.js - About 3 wks to fix

        File emojis.js has 9422 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // Source: npm package: emojilib, file:emojis.json
        window.tinymce.Resource.add("tinymce.plugins.emoticons", {
          grinning: {
            keywords: [ "face", "smile", "happy", "joy", ":D", "grin" ],
            char: "\ud83d\ude00",
        Severity: Major
        Found in public/assets/js/plugins/emoticons/js/emojis.js - About 3 wks to fix

          Method run has 4821 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function run(): void
              {
                  DB::table('collection_regexes')->delete();
          
                  DB::table('collection_regexes')->insert([
          Severity: Major
          Found in database/seeders/CollectionRegexesTableSeeder.php - About 3 wks to fix

            Method run has 3048 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function run(): void
                {
                    DB::table('usenet_groups')->delete();
            
                    DB::table('usenet_groups')->insert([
            Severity: Major
            Found in database/seeders/GroupsTableSeeder.php - About 2 wks to fix

              File custom.js has 5167 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * Resize function without multiple trigger
               *
               * Usage:
               * $(window).smartresize(function(){
              Severity: Major
              Found in resources/assets/js/custom.js - About 2 wks to fix

                File CollectionRegexesTableSeeder.php has 4831 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                namespace Database\Seeders;
                
                use Illuminate\Database\Seeder;
                Severity: Major
                Found in database/seeders/CollectionRegexesTableSeeder.php - About 1 wk to fix

                  Function init_echarts has 2521 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function init_echarts() {
                      if ('undefined' != typeof echarts) {
                          console.log('init_echarts');
                          var a = {
                              color: [
                  Severity: Major
                  Found in resources/assets/js/custom.js - About 1 wk to fix

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                        (function (define, exports, module, require) {
                          (function (global, factory) {
                            typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EphoxContactWrapper = factory());
                          }(this, function () {
                            var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
                    Severity: Major
                    Found in public/assets/js/plugins/imagetools/plugin.js and 1 other location - About 1 wk to fix
                    public/assets/js/themes/mobile/theme.js on lines 6518..6729

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 1964.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                        (function (define, exports, module, require) {
                          (function (global, factory) {
                            typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EphoxContactWrapper = factory());
                          }(this, function () {
                            var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
                    Severity: Major
                    Found in public/assets/js/themes/mobile/theme.js and 1 other location - About 1 wk to fix
                    public/assets/js/plugins/imagetools/plugin.js on lines 164..375

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 1964.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    File GroupsTableSeeder.php has 3058 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    namespace Database\Seeders;
                    
                    use Illuminate\Database\Seeder;
                    Severity: Major
                    Found in database/seeders/GroupsTableSeeder.php - About 1 wk to fix

                      Method run has 1700 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function run(): void
                          {
                              DB::table('settings')->delete();
                      
                              DB::table('settings')->insert([
                      Severity: Major
                      Found in database/seeders/SettingsTableSeeder.php - About 1 wk to fix

                        File plugin.js has 2406 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /**
                         * Copyright (c) Tiny Technologies, Inc. All rights reserved.
                         * Licensed under the LGPL or a commercial license.
                         * For LGPL see License.txt in the project root for license information.
                         * For commercial licenses see https://www.tiny.cloud/
                        Severity: Major
                        Found in public/assets/js/plugins/codesample/plugin.js - About 6 days to fix

                          File plugin.js has 2215 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /**
                           * Copyright (c) Tiny Technologies, Inc. All rights reserved.
                           * Licensed under the LGPL or a commercial license.
                           * For LGPL see License.txt in the project root for license information.
                           * For commercial licenses see https://www.tiny.cloud/
                          Severity: Major
                          Found in public/assets/js/plugins/lists/plugin.js - About 6 days to fix

                            Function getDefaultCharMap has 1189 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                var getDefaultCharMap = function () {
                                  return [
                                    {
                                      name: 'Currency',
                                      characters: [
                            Severity: Major
                            Found in public/assets/js/plugins/charmap/plugin.js - About 5 days to fix

                              Similar blocks of code found in 2 locations. Consider refactoring.
                              Open

                              function init_daterangepicker_right() {
                                  if ('undefined' != typeof $.fn.daterangepicker) {
                                      console.log('init_daterangepicker_right');
                                      var a = function (a, b, c) {
                                              console.log(a.toISOString(), b.toISOString(), c),
                              Severity: Major
                              Found in resources/assets/js/custom.js and 1 other location - About 5 days to fix
                              resources/assets/js/custom.js on lines 1366..1462

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 835.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Similar blocks of code found in 2 locations. Consider refactoring.
                              Open

                              function init_daterangepicker() {
                                  if ('undefined' != typeof $.fn.daterangepicker) {
                                      console.log('init_daterangepicker');
                                      var a = function (a, b, c) {
                                              console.log(a.toISOString(), b.toISOString(), c),
                              Severity: Major
                              Found in resources/assets/js/custom.js and 1 other location - About 5 days to fix
                              resources/assets/js/custom.js on lines 1464..1560

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 835.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              File NameFixer.php has 1766 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              
                              namespace Blacklight;
                              
                              use App\Models\Category;
                              Severity: Major
                              Found in Blacklight/NameFixer.php - About 4 days to fix

                                File plugin.js has 1748 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /**
                                 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
                                 * Licensed under the LGPL or a commercial license.
                                 * For LGPL see License.txt in the project root for license information.
                                 * For commercial licenses see https://www.tiny.cloud/
                                Severity: Major
                                Found in public/assets/js/plugins/paste/plugin.js - About 4 days to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language