CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function linkDrop has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

function linkDrop(scope, elem, attr, ngModel, $parse, $timeout, $location) {
Severity: Major
Found in Web.Admin/z-scripts/ng-file-upload-all.js - About 50 mins to fix

    Function $httpBackend has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      function $httpBackend(method, url, data, callback, headers, timeout, withCredentials) {
    Severity: Major
    Found in Web.Admin/z-scripts/angular-mocks.js - About 50 mins to fix

      Function CreateSimpleException has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                      Exception.CreateSimpleException = function (message, typeName, assembly, fileName, details, line, handledAt) {
      Severity: Major
      Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 50 mins to fix

        Function reservationController has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            var reservationController = function ($scope, $http, $q, $location, modalFactory, dataService, moment) {
        Severity: Major
        Found in Web.Admin/AdminApp/Controllers/controller.reservation.js - About 50 mins to fix

          Function openSubWin has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function openSubWin(url, nm, x, y, w, h, atts) {
          Severity: Major
          Found in Web.Admin/2015/js/dw_rotator_aux.js - About 50 mins to fix

            Function openSubWin has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function openSubWin(url, nm, x, y, w, h, atts) {
            Severity: Major
            Found in Web.Admin/2014/js/dw_rotator_aux.js - About 50 mins to fix

              Method _cat_rows has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1, $per_page = 20, &$count ) {
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 50 mins to fix

                Method add_meta_box has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default', $callback_args=null) {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 50 mins to fix

                  Method add_menu_page has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  function add_menu_page( $page_title, $menu_title, $access_level, $file, $function = '', $icon_url = '', $position = NULL ) {
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 50 mins to fix

                    Method check_column has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) {
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-admin/install-helper.php - About 50 mins to fix

                      Method check_comment has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $comment_type) {
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 50 mins to fix

                        Method GenerateID3v1Tag has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public static function GenerateID3v1Tag($title, $artist, $album, $year, $genreid, $comment, $track='') {
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v1.php - About 50 mins to fix

                          Method crop has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-image-editor-imagick.php - About 50 mins to fix

                            Method crop has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-image-editor-gd.php - About 50 mins to fix

                              Method image_resize has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-includes/media.php - About 50 mins to fix

                                Method generate_rewrite_rules has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    function generate_rewrite_rules($permalink_structure, $ep_mask = EP_NONE, $paged = true, $feed = true, $forcomments = false, $walk_dirs = true, $endpoints = true) {
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-includes/rewrite.php - About 50 mins to fix

                                  Method link_pages has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page',
                                                      $pagelink='%', $more_file='') {
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/deprecated.php - About 50 mins to fix

                                    Method wpmu_signup_blog_notification has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    function wpmu_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta = array() ) {
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 50 mins to fix

                                      Method crop has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false );
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-image-editor.php - About 50 mins to fix

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

                                                protected virtual string GetApplicationPath(string appPath)
                                                {
                                                    var baseDir = Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory))));
                                                    return Path.Combine(baseDir, appPath);
                                                }
                                        Severity: Minor
                                        Found in UITestsFramework/TestFixture.cs and 1 other location - About 50 mins to fix
                                        UITestsFramework/TestBase.cs on lines 69..73

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

                                        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