qcminecraft/Carbon-Forum-F

View on GitHub

Showing 506 of 851 total issues

Function onok has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        dialog.onok = function () {
            var remote = false, list = [], id, tabs = $G('tabhead').children;
            for (var i = 0; i < tabs.length; i++) {
                if (domUtils.hasClass(tabs[i], 'focus')) {
                    id = tabs[i].getAttribute('data-content-id');
Severity: Minor
Found in static/editor/dialogs/image/image.js - About 1 hr to fix

    Function initColorPicker has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function initColorPicker() {
            var me = editor,
                cp = $G("colorPicker");
    
            /* 生成颜色选择器ui对象 */
    Severity: Minor
    Found in static/editor/dialogs/background/background.js - About 1 hr to fix

      Method addAnAddress has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function addAnAddress($kind, $address, $name = '')
          {
              if (!in_array($kind, array('to', 'cc', 'bcc', 'Reply-To'))) {
                  $error_message = $this->lang('Invalid recipient kind: ') . $kind;
                  $this->setError($error_message);
      Severity: Minor
      Found in library/PHPMailer.class.php - About 1 hr to fix

        Method LoadDict has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function LoadDict($maindic = '')
            {
                $startt   = microtime(true);
                //正常读取文件
                $dicAddon = $this->addonDicFile;
        Severity: Minor
        Found in library/PHPAnalysis.class.php - About 1 hr to fix

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

          function InitNewTagsEditor() {
              $("#AlternativeTag").keydown(function (e) {
                  var e = e || event;
                  switch (e.keyCode) {
                      case 13:
          Severity: Minor
          Found in static/js/default/topic.function.js - About 1 hr to fix

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

                    append: function(line) {
                        var mylen = this.text.length, mk = line.marked, mymk = this.marked;
                        this.text += line.text;
                        copyStyles(0, line.text.length, line.styles, this.styles);
                        if (mymk) {
            Severity: Minor
            Found in static/editor/third-party/codemirror/codemirror.js - About 1 hr to fix

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

                      var Toast = function (containerEl, opts) {
              
                          if (typeof containerEl === "string" || containerEl instanceof String) {
                              this.container = document.getElementById(containerEl);
                          } else {
              Severity: Minor
              Found in static/js/mobile/global.js - About 1 hr to fix

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

                    function setTabFocus(id) {
                        if(!id) return;
                        var i, bodyId, tabs = $G('tabhead').children;
                        for (i = 0; i < tabs.length; i++) {
                            bodyId = tabs[i].getAttribute('data-content-id');
                Severity: Minor
                Found in static/editor/dialogs/image/image.js - About 1 hr to fix

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

                          getCodeLinesHtml: function(html, lineNumbers)
                          {
                              html = trim(html);
                  
                              var lines = splitLines(html),
                  Severity: Minor
                  Found in static/editor/third-party/SyntaxHighlighter/shCore.js - About 1 hr to fix

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

                            initEvents: function () {
                                var _this = this,
                                    locker = $G('lock');
                    
                                /* 改变url */
                    Severity: Minor
                    Found in static/editor/dialogs/image/image.js - About 1 hr to fix

                      Method addAttachment has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
                          {
                              try {
                                  if (!@is_file($path)) {
                                      throw new phpmailerException($this->lang('file_access') . $path, self::STOP_CONTINUE);
                      Severity: Minor
                      Found in library/PHPMailer.class.php - About 1 hr to fix

                        Method searchLike has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function searchLike( $pKeywords, $index='*', $pStart = 0, 
                                                    $pSize=12, $filter = '', $sort = '', $columns=array("ID") ) {
                                self::getSingle();
                                $sp = self::$sphinx;
                                empty( $sort ) || $sp->SetSortMode ( SPH_SORT_EXTENDED, $sort );
                        Severity: Minor
                        Found in library/SearchClient.class.php - About 1 hr to fix

                          Method mailSend has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              protected function mailSend($header, $body)
                              {
                                  $toArr = array();
                                  foreach ($this->to as $toaddr) {
                                      $toArr[] = $this->addrFormat($toaddr);
                          Severity: Minor
                          Found in library/PHPMailer.class.php - About 1 hr to fix

                            Method parseHelloFields has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                protected function parseHelloFields($type)
                                {
                                    $this->server_caps = array();
                                    $lines = explode("\n", $this->helo_rply);
                            
                            
                            Severity: Minor
                            Found in library/PHPMailer.smtp.class.php - About 1 hr to fix

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

                              function loadMoreMessages(forceToShow) {
                                  var MessagesList = $("#MessagesList");
                                  var InboxID = $("#InboxID").val();
                                  var MessagesPage = $("#MessagesPage");
                                  var MessagesLoading = $("#MessagesLoading");
                              Severity: Minor
                              Found in static/js/default/global.js - About 1 hr to fix

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

                                        onready: function () {
                                            //从草稿中恢复
                                            if (window.localStorage) {
                                                if (typeof SaveDraftTimer !== "undefined") {
                                                    clearInterval(SaveDraftTimer);
                                Severity: Minor
                                Found in static/js/default/new.function.js - About 1 hr to fix

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

                                  function loadMoreMessages(forceToShow) {
                                      var MessagesList = $("#MessagesList");
                                      var InboxID = $("#InboxID").val();
                                      var MessagesPage = $("#MessagesPage");
                                      var MessagesLoading = $("#MessagesLoading");
                                  Severity: Minor
                                  Found in static/js/mobile/inbox.js - About 1 hr to fix

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

                                        var redirectMouseToTouch = function (type, originalEvent, newTarget,skipPrevent) {
                                    
                                            var theTarget = newTarget ? newTarget : originalEvent.target;
                                            if(!skipPrevent)
                                                preventAllButInputs(originalEvent, theTarget);
                                    Severity: Minor
                                    Found in static/js/mobile/appframework.desktopBrowsers.js - About 1 hr to fix

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

                                          function updateFormState (radio, color, url, align, x, y) {
                                              var nocolorRadio = $G('nocolorRadio'),
                                                  coloredRadio = $G('coloredRadio');
                                      
                                              if(radio) {
                                      Severity: Minor
                                      Found in static/editor/dialogs/background/background.js - About 1 hr to fix

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

                                            function Brush()
                                            {
                                                var funcs    =    'abs avg case cast coalesce convert count current_timestamp ' +
                                                                'current_user day isnull left lower month nullif replace right ' +
                                                                'session_user space substring sum system_user upper user year';
                                        Severity: Minor
                                        Found in static/editor/third-party/SyntaxHighlighter/shCore.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language