qcminecraft/Carbon-Forum-F

View on GitHub

Showing 506 of 851 total issues

Function addWidget has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

            addWidget: function(pos, node, scroll, vert, horiz) {
Severity: Minor
Found in static/editor/third-party/codemirror/codemirror.js - About 35 mins to fix

    Function updateLines has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            function updateLines(from, to, newText, selFrom, selTo) {
    Severity: Minor
    Found in static/editor/third-party/codemirror/codemirror.js - About 35 mins to fix

      Function Manage has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function Manage(ID, Type, Action, NeedToConfirm, TargetTag) {
      Severity: Minor
      Found in static/js/mobile/global.js - About 35 mins to fix

        Function Reply has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function Reply(UserName, PostFloor, PostID, FormHash, TopicID) {
        Severity: Minor
        Found in static/js/mobile/global.js - About 35 mins to fix

          Function parseJS has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              function parseJS(state, style, type, content, stream) {
          Severity: Minor
          Found in static/editor/third-party/codemirror/codemirror.js - About 35 mins to fix

            Function Manage has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function Manage(ID, Type, Action, NeedToConfirm, TargetTag) {
            Severity: Minor
            Found in static/js/default/global.js - About 35 mins to fix

              Function popup has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  function popup(url, name, width, height, options)
              Severity: Minor
              Found in static/editor/third-party/SyntaxHighlighter/shCore.js - About 35 mins to fix

                Method success_validate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    public function success_validate($challenge, $validate, $seccode,$param, $json_format=1) {
                Severity: Minor
                Found in library/Geetestlib.class.php - About 35 mins to fix

                  Method mailPassthru has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      private function mailPassthru($to, $subject, $body, $header, $params)
                  Severity: Minor
                  Found in library/PHPMailer.class.php - About 35 mins to fix

                    Method addStringAttachment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            $string,
                            $filename,
                            $encoding = 'base64',
                            $type = '',
                            $disposition = 'attachment'
                    Severity: Minor
                    Found in library/PHPMailer.class.php - About 35 mins to fix

                      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public function __construct($Host, $DBPort, $DBName, $DBUser, $DBPassword)
                      Severity: Minor
                      Found in library/PDO.class.php - About 35 mins to fix

                        Method addAttachment has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
                        Severity: Minor
                        Found in library/PHPMailer.class.php - About 35 mins to fix

                          Method _deep_analysis_cn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              private function _deep_analysis_cn(&$str, $lastec, $spos, $slen, $optimize = true)
                          Severity: Minor
                          Found in library/PHPAnalysis.class.php - About 35 mins to fix

                            Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public function __construct($fileField, $config, $type, $CurUserName, $DB = '')
                            Severity: Minor
                            Found in library/Uploader.class.php - About 35 mins to fix

                              Function CheckUserName has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function CheckUserName() {
                                  if ($("#UserName").val() && $("#UserName").val().length >= 4 && $("#UserName").val().length <= 20) {
                                      $.ajax({
                                          url: WebsitePath + '/json/user_exist',
                                          data: {
                              Severity: Minor
                              Found in static/js/default/account.function.js - About 35 mins 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

                              Function SaveTopicDraft has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function SaveTopicDraft() {
                                  try {
                                      var TagsList = JSON.stringify($("input[name='Tag[]']").map(function () {
                                          return $(this).val();
                                      }).get());
                              Severity: Minor
                              Found in static/js/default/new.function.js - About 35 mins 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

                              Function createTab has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              (function createTab(content) {
                                  for (var i = 0, ci; ci = content[i++];) {
                                      var span = document.createElement("span");
                                      span.setAttribute("tabSrc", ci.name);
                                      span.innerHTML = ci.title;
                              Severity: Minor
                              Found in static/editor/dialogs/spechars/spechars.js - About 35 mins 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

                              Function getManageInfo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public function getManageInfo($manageType)
                                  {
                                      global $CurUserID;
                                      switch ($manageType) {
                                          case 'topic':
                              Severity: Minor
                              Found in controller/manage.php - About 35 mins 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

                              Function toArray has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              baidu.lang.toArray = function (source) {
                                  if (source === null || source === undefined)
                                      return [];
                                  if (baidu.lang.isArray(source))
                                      return source;
                              Severity: Minor
                              Found in static/editor/dialogs/wordimage/tangram.js - About 35 mins 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

                              Function ArrayColumn has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function ArrayColumn($Input, $ColumnKey)
                              {
                                  if (version_compare(PHP_VERSION, '5.5.0') < 0) {
                                      $Result = array();
                                      if ($Input) {
                              Severity: Minor
                              Found in common.php - About 35 mins 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

                              Severity
                              Category
                              Status
                              Source
                              Language