DariusIII/newznab-tmux

View on GitHub

Showing 2,964 of 2,964 total issues

File SettingsTableSeeder.php has 1710 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
Severity: Major
Found in database/seeders/SettingsTableSeeder.php - About 4 days to fix

    File plugin.js has 1665 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/charmap/plugin.js - About 4 days to fix

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

          public function run(): void
          {
              DB::table('genres')->delete();
      
              DB::table('genres')->insert([
      Severity: Major
      Found in database/seeders/GenresTableSeeder.php - About 4 days to fix

        File plugin.js has 1624 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/image/plugin.js - About 4 days to fix

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

              var generate = function (cases) {
                if (!isArray(cases)) {
                  throw new Error('cases must be an array');
                }
                if (cases.length === 0) {
          Severity: Major
          Found in public/assets/js/plugins/imagetools/plugin.js and 3 other locations - About 4 days to fix
          public/assets/js/plugins/table/plugin.js on lines 2267..2337
          public/assets/js/plugins/textpattern/plugin.js on lines 272..342
          public/assets/js/themes/mobile/theme.js on lines 1966..2036

          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 693.

          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 4 locations. Consider refactoring.
          Open

              var generate = function (cases) {
                if (!isArray(cases)) {
                  throw new Error('cases must be an array');
                }
                if (cases.length === 0) {
          Severity: Major
          Found in public/assets/js/plugins/table/plugin.js and 3 other locations - About 4 days to fix
          public/assets/js/plugins/imagetools/plugin.js on lines 603..673
          public/assets/js/plugins/textpattern/plugin.js on lines 272..342
          public/assets/js/themes/mobile/theme.js on lines 1966..2036

          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 693.

          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 4 locations. Consider refactoring.
          Open

              var generate$1 = function (cases) {
                if (!isArray(cases)) {
                  throw new Error('cases must be an array');
                }
                if (cases.length === 0) {
          Severity: Major
          Found in public/assets/js/plugins/textpattern/plugin.js and 3 other locations - About 4 days to fix
          public/assets/js/plugins/imagetools/plugin.js on lines 603..673
          public/assets/js/plugins/table/plugin.js on lines 2267..2337
          public/assets/js/themes/mobile/theme.js on lines 1966..2036

          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 693.

          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 4 locations. Consider refactoring.
          Open

              var generate$5 = function (cases) {
                if (!isArray(cases)) {
                  throw new Error('cases must be an array');
                }
                if (cases.length === 0) {
          Severity: Major
          Found in public/assets/js/themes/mobile/theme.js and 3 other locations - About 4 days to fix
          public/assets/js/plugins/imagetools/plugin.js on lines 603..673
          public/assets/js/plugins/table/plugin.js on lines 2267..2337
          public/assets/js/plugins/textpattern/plugin.js on lines 272..342

          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 693.

          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 plugin.js has 1480 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/imagetools/plugin.js - About 3 days to fix

            Function updateGamesInfo has a Cognitive Complexity of 179 (exceeds 5 allowed). Consider refactoring.
            Open

                public function updateGamesInfo($gameInfo): bool
                {
                    //wait 10 seconds before proceeding (steam api limit)
                    sleep(10);
                    $gen = new Genres(['Settings' => null]);
            Severity: Minor
            Found in Blacklight/Games.php - About 3 days to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            File ProcessAdditional.php has 1347 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            namespace Blacklight\processing\post;
            
            use App\Models\Category;
            Severity: Major
            Found in Blacklight/processing/post/ProcessAdditional.php - About 3 days to fix

              File plugin.js has 1331 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/textpattern/plugin.js - About 3 days to fix

                File plugin.js has 1314 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/media/plugin.js - About 3 days to fix

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

                      public function run(): void
                      {
                          DB::statement('SET FOREIGN_KEY_CHECKS=0;');
                  
                          DB::table('categories')->delete();
                  Severity: Major
                  Found in database/seeders/CategoriesTableSeeder.php - About 3 days to fix

                    Function processMovieReleases has a Cognitive Complexity of 165 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function processMovieReleases(string $groupID = '', string $guidChar = '', int $lookupIMDB = 1): void
                        {
                            if ($lookupIMDB === 0) {
                                return;
                            }
                    Severity: Minor
                    Found in Blacklight/Movie.php - About 3 days to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    File plugin.js has 1272 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/fullscreen/plugin.js - About 3 days to fix

                      File plugin.js has 1250 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/link/plugin.js - About 3 days to fix

                        File plugin.js has 1120 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/searchreplace/plugin.js - About 2 days to fix

                          Function Prism has 523 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                    var Prism = function (_self) {
                                      var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
                                      var uniqueId = 0;
                                      var plainTextGrammar = {};
                                      var _ = {
                          Severity: Major
                          Found in public/assets/js/plugins/codesample/plugin.js - About 2 days to fix

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

                            /**
                             * TinyMCE version 6.5.0 (2023-06-12)
                             */
                            
                            (function () {
                            Severity: Major
                            Found in public/assets/js/plugins/accordion/plugin.js - About 2 days to fix
                              Severity
                              Category
                              Status
                              Source
                              Language