ImpressCMS/impresscms

View on GitHub

Showing 540 of 47,256 total issues

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

function openWithSelfMain(url,name,width,height,returnwindow) {
Severity: Minor
Found in htdocs/include/xoops.js - About 35 mins to fix

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

    function xoopsCodeCode(id, enterCodePhrase, enterCodeLangPhrase, CodeLangTypePhrase, errorCodeLangPhrase){
    Severity: Minor
    Found in htdocs/include/xoops.js - About 35 mins to fix

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

      function TCBuildCell (R, G, B, w, h) {
      Severity: Minor
      Found in htdocs/include/color-picker.js - About 35 mins to fix

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

        function showImgSelected(imgId, selectId, imgDir, extra, xoopsUrl) {
        Severity: Minor
        Found in htdocs/include/xoops.js - About 35 mins to fix

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

          function xoopsCodeImg(id, enterImgUrlPhrase, enterImgPosPhrase, imgPosRorLPhrase, errorImgPosPhrase){
          Severity: Minor
          Found in htdocs/include/xoops.js - About 35 mins to fix

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

            function filter_preview(id,xurl,img,width,height){
            Severity: Minor
            Found in htdocs/modules/system/admin/images/js/imanager.js - About 35 mins to fix

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

              function xoFormFieldCharset($name, $value, $label, $link, $help = '') {
              Severity: Minor
              Found in htdocs/install/page_dbsettings.php - About 35 mins to fix

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

                function xoFormField( $name, $value, $label, $maxlength, $help = '' )
                Severity: Minor
                Found in upgrade/upd-icms-1.0-to-1.1/settings_salt.php - About 35 mins to fix

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

                  function icmsFormField( $name, $value, $label, $maxlength, $help = '' )
                  Severity: Minor
                  Found in upgrade/upd-icms-1.0-to-1.1/settings_trust_path.php - About 35 mins to fix

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

                    function xoFormField($name, $value, $label, $maxlength, $help = '') {
                    Severity: Minor
                    Found in htdocs/install/page_dbsettings.php - About 35 mins to fix

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

                      function redirect_header($url, $time = 3, $message = '', $addredirect = true, $allowExternalLink = false)
                      Severity: Minor
                      Found in htdocs/include/functions.php - About 35 mins to fix

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

                        function xoFormField( $name, $value, $label, $help = '', $type='text') {
                        Severity: Minor
                        Found in htdocs/install/page_dbconnection.php - About 35 mins to fix

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

                          function TCPaint(c, b_noPref) {
                              c = (b_noPref ? '' : '#') + c.toUpperCase();
                              if (this.o_samp) 
                                  this.o_samp.innerHTML = '<font face=Tahoma size=2>' + c +' <font color=white>' + c + '</font></font>'
                              if(this.doc.layers)
                          Severity: Minor
                          Found in htdocs/include/color-picker.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 write_mainfile has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private function write_mainfile($vars) {
                                  if (empty($vars)) {
                                      return false;
                                  }
                          
                          
                          Severity: Minor
                          Found in upgrade/upd-icms-1.0-to-1.1/index.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 xoopsInsertText has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function xoopsInsertText(domobj, text)
                          {
                              if (domobj.createTextRange && domobj.caretPos){
                                    var caretPos = domobj.caretPos;
                                  caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) 
                          Severity: Minor
                          Found in htdocs/include/xoops.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 icms_ExternalLinks has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function icms_ExternalLinks() {  
                              if (!document.getElementsByTagName) return;  
                          
                              var anchors = document.getElementsByTagName("a");  
                              for (var i=0; i<anchors.length; i++) {  
                          Severity: Minor
                          Found in htdocs/include/linkexternal.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 request has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              request: function(form, options) {
                                  form = $(form), options = Object.clone(options || { });
                          
                                  var params = options.parameters, action = form.readAttribute('action') || '';
                                  if (action.blank()) action = window.location.href;
                          Severity: Minor
                          Found in htdocs/install/prototype.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 getDbCharsets has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                          function getDbCharsets()
                          {
                              $charsets = array();
                              
                              $charsets["utf8"] = array();
                          Severity: Minor
                          Found in upgrade/upd-icms-1.0-to-1.1/settings_db.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 cleaning_write_folders has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private function cleaning_write_folders() {
                                  $dir = array();
                                  $dir['templates_c'] = XOOPS_ROOT_PATH . "/templates_c/";
                                  $dir['cache'] = XOOPS_ROOT_PATH . "/cache/";
                          
                          
                          Severity: Minor
                          Found in upgrade/upd-icms-1.0-to-1.1/index.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 getPos has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                            $.keynav.getPos = function (e)
                            {
                              var l = 0;
                              var t  = 0;
                              var w = $.intval($.css(e,'width'));
                          Severity: Minor
                          Found in htdocs/themes/reflex/js/jquery.keynav.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

                          Severity
                          Category
                          Status
                          Source
                          Language