laboiteproject/lenuage

View on GitHub

Showing 384 of 384 total issues

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

function condense( unmatched, map, filter, context, xml ) {
Severity: Minor
Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

        remove: function( elem, types, handler, selector, mappedTypes ) {
    Severity: Minor
    Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

              superMatcher = function( seed, context, xml, results, outermost ) {
      Severity: Minor
      Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

        function Tween( elem, options, prop, end, easing ) {
        Severity: Minor
        Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

          function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
          Severity: Minor
          Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

            function buildFragment( elems, context, scripts, selection, ignored ) {
            Severity: Minor
            Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

                      "CHILD": function( type, what, argument, first, last ) {
              Severity: Minor
              Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

                    add: function( elem, types, handler, data, selector ) {
                Severity: Minor
                Found in static/dist/js/site-70bd78197e.js - About 35 mins to fix

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

                  function fillRect(x0, y0,  width,  height, color) {
                  Severity: Minor
                  Found in laboite/static/js/gfx.js - About 35 mins to fix

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

                    function drawRect(x0, y0,  width,  height, color) {
                    Severity: Minor
                    Found in laboite/static/js/gfx.js - About 35 mins to fix

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

                      function drawChar(x0, y0, character, color, bg){
                      Severity: Minor
                      Found in laboite/static/js/gfx.js - About 35 mins to fix

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

                        function printText(x, y, text, color, bg) {
                        Severity: Minor
                        Found in laboite/static/js/gfx.js - About 35 mins to fix

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

                              def __init__(self, *args, **kw):
                                  super(TasksModelForm, self).__init__(*args, **kw)
                                  widget = self.fields['asana_project_id'].widget
                                  value = ''
                                  if 'asana_personal_access_token' in self.data and self.data['asana_personal_access_token']:
                          Severity: Minor
                          Found in laboite/apps/tasks/forms.py - 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

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

                          @receiver(user_signed_up)
                          def handle_user_signed_up(sender, **kwargs):
                              log(
                                  user=kwargs.get("user"),
                          Severity: Minor
                          Found in laboite/receivers.py and 2 other locations - About 35 mins to fix
                          laboite/receivers.py on lines 10..13
                          laboite/receivers.py on lines 19..22

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

                          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

                          @receiver(password_changed)
                          def handle_password_changed(sender, **kwargs):
                              log(
                                  user=kwargs.get("user"),
                          Severity: Minor
                          Found in laboite/receivers.py and 2 other locations - About 35 mins to fix
                          laboite/receivers.py on lines 10..13
                          laboite/receivers.py on lines 53..56

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

                          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

                                  if query.isdigit():
                                      query = 'nom:{query} OR idstation:{query}'.format(query=query)
                                  else:
                                      # Querying idstation with a string value raises an error, we remove this field
                                      query = 'nom:{}'.format(query)
                          Severity: Minor
                          Found in laboite/apps/bikes/providers/star.py and 1 other location - About 35 mins to fix
                          laboite/apps/bikes/providers/velib.py on lines 15..19

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

                          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

                              def was_triggered_recently(self):
                                  return self.last_activity >= timezone.now() - timedelta(minutes=2)
                          Severity: Minor
                          Found in boites/models.py and 1 other location - About 35 mins to fix
                          boites/models.py on lines 121..122

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

                          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

                          @receiver(user_logged_in)
                          def handle_user_logged_in(sender, **kwargs):
                              log(
                                  user=kwargs.get("user"),
                          Severity: Minor
                          Found in laboite/receivers.py and 2 other locations - About 35 mins to fix
                          laboite/receivers.py on lines 19..22
                          laboite/receivers.py on lines 53..56

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

                          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

                              def was_active_recently(self):
                                  return self.last_activity >= timezone.now() - timedelta(minutes=2)
                          Severity: Minor
                          Found in boites/models.py and 1 other location - About 35 mins to fix
                          boites/models.py on lines 137..138

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

                          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

                              name = models.CharField(_('Nom'), help_text=_('Veuillez saisir un nom pour votre boîte'), max_length=32,
                                                      default=_('Ma boîte'))
                          Severity: Minor
                          Found in boites/models.py and 1 other location - About 35 mins to fix
                          laboite/apps/weather/models.py on lines 20..21

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

                          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