bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
    var matched, match, tokens, type,
        soFar, groups, preFilters,
        cached = tokenCache[ selector + " " ];

Severity: Minor
Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

    Function addCombinator has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function addCombinator( matcher, combinator, base ) {
        var dir = combinator.dir,
            skip = combinator.next,
            key = skip || dir,
            checkNonElements = base && key === "parentNode",
    Severity: Minor
    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

      Function matcherFromTokens has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function matcherFromTokens( tokens ) {
          var checkContext, matcher, j,
              len = tokens.length,
              leadingRelative = Expr.relative[ tokens[0].type ],
              implicitRelative = leadingRelative || Expr.relative[" "],
      Severity: Minor
      Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

        Function select has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        select = Sizzle.select = function( selector, context, results, seed ) {
            var i, tokens, token, type, find,
                compiled = typeof selector === "function" && selector,
                match = !seed && tokenize( (selector = compiled.selector || selector) );
        
        
        Severity: Minor
        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

          Function select has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          select = Sizzle.select = function( selector, context, results, seed ) {
              var i, tokens, token, type, find,
                  compiled = typeof selector === "function" && selector,
                  match = !seed && tokenize( (selector = compiled.selector || selector) );
          
          
          Severity: Minor
          Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 1 hr to fix

            Function addCombinator has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function addCombinator( matcher, combinator, base ) {
                var dir = combinator.dir,
                    skip = combinator.next,
                    key = skip || dir,
                    checkNonElements = base && key === "parentNode",
            Severity: Minor
            Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 1 hr to fix

              Function matcherFromTokens has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function matcherFromTokens( tokens ) {
                  var checkContext, matcher, j,
                      len = tokens.length,
                      leadingRelative = Expr.relative[ tokens[0].type ],
                      implicitRelative = leadingRelative || Expr.relative[" "],
              Severity: Minor
              Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 1 hr to fix

                Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                    var matched, match, tokens, type,
                        soFar, groups, preFilters,
                        cached = tokenCache[ selector + " " ];
                
                
                Severity: Minor
                Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 1 hr to fix

                  Function diffLineMode has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      DiffMatchPatch.prototype.diffLineMode = function( text1, text2, deadline ) {
                          var a, diffs, linearray, pointer, countInsert,
                              countDelete, textInsert, textDelete, j;
                          // Scan the text on a line-by-line basis first.
                          a = this.diffLinesToChars( text1, text2 );
                  Severity: Minor
                  Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 1 hr to fix

                    Function matcherFromTokens has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function matcherFromTokens( tokens ) {
                      var checkContext, matcher, j,
                        len = tokens.length,
                        leadingRelative = Expr.relative[ tokens[0].type ],
                        implicitRelative = leadingRelative || Expr.relative[" "],
                    Severity: Minor
                    Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                      Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                        var matched, match, tokens, type,
                          soFar, groups, preFilters,
                          cached = tokenCache[ selector + " " ];
                      
                      
                      Severity: Minor
                      Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                            def __init__(self, *args, **kwargs):
                                super().__init__(*args, **kwargs)
                                self.fields['message'].widget.attrs.update({'placeholder':
                                    _('Exemple : Pony is best pegasus/pony/unicorn!')
                        Severity: Major
                        Found in users/forms.py and 2 other locations - About 1 hr to fix
                        agenda/forms.py on lines 37..40
                        users/forms.py on lines 62..65

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

                        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

                            def __init__(self, *args, **kwargs):
                                super().__init__(*args, **kwargs)
                                self.fields['description'].widget.attrs.update({'placeholder':
                                    _('Explain the event, add as much information you can : time, localisation '
                        Severity: Major
                        Found in agenda/forms.py and 2 other locations - About 1 hr to fix
                        users/forms.py on lines 24..27
                        users/forms.py on lines 62..65

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

                        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

                            def __init__(self, *args, **kwargs):
                                super().__init__(*args, **kwargs)
                                self.fields['bio'].widget.attrs.update({'placeholder':
                                    _('Write about yourself! how you discover My Little Pony or BronyCUB, '
                        Severity: Major
                        Found in users/forms.py and 2 other locations - About 1 hr to fix
                        agenda/forms.py on lines 37..40
                        users/forms.py on lines 24..27

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

                        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

                        Function val has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            val: function( value ) {
                                var hooks, ret, isFunction,
                                    elem = this[ 0 ];
                        
                                if ( !arguments.length ) {
                        Severity: Minor
                        Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

                          Function val has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              val: function( value ) {
                                  var hooks, ret, isFunction,
                                      elem = this[ 0 ];
                          
                                  if ( !arguments.length ) {
                          Severity: Minor
                          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                            Function val has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                val: function( value ) {
                                    var hooks, ret, isFunction,
                                        elem = this[ 0 ];
                            
                                    if ( !arguments.length ) {
                            Severity: Minor
                            Found in core/static/vendor/jquery/src/attributes/val.js - About 1 hr to fix

                              Function getTemplate has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          getTemplate = function () {
                                              var template = $('<div>').addClass('bootstrap-datetimepicker-widget dropdown-menu'),
                                                  dateView = $('<div>').addClass('datepicker').append(getDatePickerTemplate()),
                                                  timeView = $('<div>').addClass('timepicker').append(getTimePickerTemplate()),
                                                  content = $('<ul>').addClass('list-unstyled'),

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

                                function getSetWeekYear (input) {
                                    return getSetWeekYearHelper.call(this,
                                            input,
                                            this.week(),
                                            this.weekday(),
                                Severity: Major
                                Found in core/static/vendor/moment/min/moment-with-locales.js and 1 other location - About 1 hr to fix
                                core/static/vendor/moment/moment.js on lines 3396..3403

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

                                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

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

                                function getSetWeekYear (input) {
                                    return getSetWeekYearHelper.call(this,
                                            input,
                                            this.week(),
                                            this.weekday(),
                                Severity: Major
                                Found in core/static/vendor/moment/moment.js and 1 other location - About 1 hr to fix
                                core/static/vendor/moment/min/moment-with-locales.js on lines 3390..3397

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

                                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