hunterlong/statup

View on GitHub

Showing 423 of 423 total issues

Avoid too many return statements within this function.
Open

    else if (0x2000 <= code && code <= 0x200b) { return "w" }
Severity: Major
Found in frontend/public/js/codemirror.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        if (res) { return res }
    Severity: Major
    Found in frontend/public/js/codemirror.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        if (handleCharBinding(cm, e, ch)) { return }
      Severity: Major
      Found in frontend/public/js/codemirror.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  return ret("variable-2", "variable-definition");
        Severity: Major
        Found in frontend/src/assets/js/css.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return pushContext(state, stream, "at");
          Severity: Major
          Found in frontend/src/assets/js/css.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return null
            Severity: Major
            Found in frontend/public/js/codemirror.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return "keyframes";
              Severity: Major
              Found in frontend/src/assets/js/css.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return "pseudo";
                Severity: Major
                Found in frontend/src/assets/js/css.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return state.context.type;
                  Severity: Major
                  Found in frontend/src/assets/js/css.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return ret(null, null);
                    Severity: Major
                    Found in frontend/src/assets/js/css.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return pushContext(state, stream, "interpolation");
                      Severity: Major
                      Found in frontend/src/assets/js/css.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return pushContext(state, stream, "parens");
                        Severity: Major
                        Found in frontend/src/assets/js/css.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return "parens";
                          Severity: Major
                          Found in frontend/src/assets/js/css.js - About 30 mins to fix

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

                                  var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh)
                                  ;(nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,
                            Severity: Major
                            Found in frontend/public/js/codemirror.js and 3 other locations - About 30 mins to fix
                            frontend/public/js/codemirror.js on lines 571..571
                            frontend/public/js/codemirror.js on lines 573..574
                            frontend/public/js/codemirror.js on lines 583..583

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

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

                                var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh)
                            Severity: Major
                            Found in frontend/public/js/codemirror.js and 3 other locations - About 30 mins to fix
                            frontend/public/js/codemirror.js on lines 571..571
                            frontend/public/js/codemirror.js on lines 573..574
                            frontend/public/js/codemirror.js on lines 585..586

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

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

                              async group_update(data) {
                                return axios.post('api/groups/' + data.id, data).then(response => (response.data))
                              }
                            Severity: Major
                            Found in frontend/src/API.js and 4 other locations - About 30 mins to fix
                            frontend/src/API.js on lines 51..53
                            frontend/src/API.js on lines 123..125
                            frontend/src/API.js on lines 175..177
                            frontend/src/API.js on lines 191..193

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

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

                                var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh)
                            Severity: Major
                            Found in frontend/public/js/codemirror.js and 3 other locations - About 30 mins to fix
                            frontend/public/js/codemirror.js on lines 573..574
                            frontend/public/js/codemirror.js on lines 583..583
                            frontend/public/js/codemirror.js on lines 585..586

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

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

                                  var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh)
                                  ;(nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to))
                            Severity: Major
                            Found in frontend/public/js/codemirror.js and 3 other locations - About 30 mins to fix
                            frontend/public/js/codemirror.js on lines 571..571
                            frontend/public/js/codemirror.js on lines 583..583
                            frontend/public/js/codemirror.js on lines 585..586

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

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

                              async service_update(data) {
                                return axios.post('api/services/' + data.id, data).then(response => (response.data))
                              }
                            Severity: Major
                            Found in frontend/src/API.js and 4 other locations - About 30 mins to fix
                            frontend/src/API.js on lines 111..113
                            frontend/src/API.js on lines 123..125
                            frontend/src/API.js on lines 175..177
                            frontend/src/API.js on lines 191..193

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

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

                              async notifier_save(data) {
                                return axios.post('api/notifier/' + data.method, data).then(response => (response.data))
                              }
                            Severity: Major
                            Found in frontend/src/API.js and 4 other locations - About 30 mins to fix
                            frontend/src/API.js on lines 51..53
                            frontend/src/API.js on lines 111..113
                            frontend/src/API.js on lines 123..125
                            frontend/src/API.js on lines 175..177

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

                            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