CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function upload has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    this.upload = function (config) {
        config.headers = config.headers || {};
        config.headers['Content-Type'] = undefined;
        config.transformRequest = config.transformRequest ?
            (angular.isArray(config.transformRequest) ?
Severity: Major
Found in Web.Admin/z-scripts/ng-file-upload-all.js - About 2 hrs to fix

    Function upload has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.upload = function (config) {
            config.headers = config.headers || {};
            config.headers['Content-Type'] = undefined;
            config.transformRequest = config.transformRequest ?
                (angular.isArray(config.transformRequest) ?
    Severity: Major
    Found in Web.Admin/z-scripts/ng-file-upload.js - About 2 hrs to fix

      Function patchCamera has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      patchCamera: function () {
                          api.Camera.fallback = function (el, options, callback) {
                              var camId = api.uid();
                              api.log('FlashAPI.Camera.publish: ' + camId);
                              flash.publish(el, camId, api.extend(options, {
      Severity: Major
      Found in Web.Admin/z-scripts/FileAPI.js - About 2 hrs to fix

        Function ContextTagKeys has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var ContextTagKeys = (function () {
                function ContextTagKeys() {
                    this.applicationVersion = "ai.application.ver";
                    this.applicationBuild = "ai.application.build";
                    this.applicationTypeId = "ai.application.typeId";
        Severity: Major
        Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 2 hrs to fix

          Function initialize has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  initialize: function( params, options ) {
                      var self = this,
                          rscheme = /^https?/;
          
                      $.extend( this, options || {} );
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/js/customize-controls.js - About 2 hrs to fix

            Method wp_handle_sideload has 56 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_handle_sideload( &$file, $overrides = false ) {
                // The default error handler.
                if (! function_exists( 'wp_handle_upload_error' ) ) {
                    function wp_handle_upload_error( &$file, $message ) {
                        return array( 'error'=>$message );
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/includes/file.php - About 2 hrs to fix

              Method cron_recheck has 56 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function cron_recheck() {
                      global $wpdb;
              
                      $api_key = self::get_api_key();
              
              
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/class.akismet.php - About 2 hrs to fix

                Method wp_newComment has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function wp_newComment($args) {
                        global $wpdb;
                
                        $this->escape($args);
                
                
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 2 hrs to fix

                  Method QuicktimeVideoCodecLookup has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function QuicktimeVideoCodecLookup($codecid) {
                          static $QuicktimeVideoCodecLookup = array();
                          if (empty($QuicktimeVideoCodecLookup)) {
                              $QuicktimeVideoCodecLookup['.SGI'] = 'SGI';
                              $QuicktimeVideoCodecLookup['3IV1'] = '3ivx MPEG-4 v1';

                    Method parseComments has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static function parseComments(&$RIFFinfoArray, &$CommentsTargetArray) {
                            $RIFFinfoKeyLookup = array(
                                'IARL'=>'archivallocation',
                                'IART'=>'artist',
                                'ICDS'=>'costumedesigner',
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.riff.php - About 2 hrs to fix

                      Method QuicktimeIODSaudioProfileName has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function QuicktimeIODSaudioProfileName($audio_profile_id) {
                              static $QuicktimeIODSaudioProfileNameLookup = array();
                              if (empty($QuicktimeIODSaudioProfileNameLookup)) {
                                  $QuicktimeIODSaudioProfileNameLookup = array(
                                      0x00 => 'ISO Reserved (0x00)',

                        Method uidl has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function uidl ($msgNum = "")
                            {
                                //  Returns the UIDL of the msg specified. If called with
                                //  no arguments, returns an associative array where each
                                //  undeleted msg num is a key, and the msg's uidl is the element
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 2 hrs to fix

                          Method get_available_widgets has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function get_available_widgets() {
                                  static $available_widgets = array();
                                  if ( ! empty( $available_widgets ) ) {
                                      return $available_widgets;
                                  }
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-widgets.php - About 2 hrs to fix

                            Method load has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function load()
                                {
                                    if ($this->mysql && ($query = mysql_query('SELECT `items`, `data` FROM `' . $this->options['prefix'][0] . 'cache_data` WHERE `id` = \'' . mysql_real_escape_string($this->id) . "'", $this->mysql)) && ($row = mysql_fetch_row($query)))
                                    {
                                        $data = unserialize($row[1]);
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                              Method _render_item has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  final protected function _render_item( $node ) {
                                      if ( $node->type != 'item' )
                                          return;
                              
                                      $is_parent = ! empty( $node->children );
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-admin-bar.php - About 2 hrs to fix

                                Method add_query_arg has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function add_query_arg() {
                                    $ret = '';
                                    if ( is_array( func_get_arg(0) ) ) {
                                        if ( @func_num_args() < 2 || false === @func_get_arg( 1 ) )
                                            $uri = $_SERVER['REQUEST_URI'];
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-includes/functions.php - About 2 hrs to fix

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

                                          if ( $this->type == 'web' )
                                              $install_actions['plugins_page'] = '<a href="' . admin_url('plugin-install.php') . '" title="' . esc_attr__('Return to Plugin Installer') . '" target="_parent">' . __('Return to Plugin Installer') . '</a>';
                                          else
                                              $install_actions['plugins_page'] = '<a href="' . admin_url('plugins.php') . '" title="' . esc_attr__('Return to Plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>';
                                  Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader-skins.php on lines 442..445
                                  Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php on lines 1050..1053

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

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

                                          else if ( $this->type == 'web' )
                                              $install_actions['plugins_page'] = '<a href="' . self_admin_url('plugin-install.php') . '" title="' . esc_attr__('Return to Plugin Installer') . '" target="_parent">' . __('Return to Plugin Installer') . '</a>';
                                          else
                                              $install_actions['plugins_page'] = '<a href="' . self_admin_url('plugins.php') . '" title="' . esc_attr__('Return to Plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>';
                                  Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php on lines 982..985
                                  Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php on lines 1050..1053

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

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

                                          if ( $this->type == 'web' )
                                              $install_actions['themes_page'] = '<a href="' . admin_url('theme-install.php') . '" title="' . esc_attr__('Return to Theme Installer') . '" target="_parent">' . __('Return to Theme Installer') . '</a>';
                                          else
                                              $install_actions['themes_page'] = '<a href="' . admin_url('themes.php') . '" title="' . esc_attr__('Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>';
                                  Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader-skins.php on lines 442..445
                                  Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php on lines 982..985

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

                                  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 delete_transient( $transient ) {
                                  
                                      /**
                                       * Fires immediately before a specific transient is deleted.
                                       *
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/option.php and 1 other location - About 2 hrs to fix
                                  Web.Admin/2014/wordpress/wp-includes/option.php on lines 1250..1285

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

                                  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

                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language