codevise/pageflow

View on GitHub

Showing 1,024 of 1,024 total issues

Avoid too many return statements within this function.
Open

      return 'Der Server ist nicht erreichbar.';
Severity: Major
Found in package/src/editor/models/mixins/failureTracking.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return motifAreaDimension.height
    Severity: Major
    Found in entry_types/scrolled/package/src/frontend/v1/useMotifAreaState.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return '';
      Severity: Major
      Found in package/src/editor/models/mixins/failureTracking.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return [
              {
                type: 'video/mp4',
                src: videoFile.urls[quality]
              }
        Severity: Major
        Found in entry_types/scrolled/package/src/frontend/VideoPlayer/sources.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return 0;
          Severity: Major
          Found in package/src/editor/collections/PagesCollection.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return -1;
            Severity: Major
            Found in package/src/editor/collections/PagesCollection.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return 'Der Server hat einen internen Fehler gemeldet.';
              Severity: Major
              Found in package/src/editor/models/mixins/failureTracking.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return motifAreaDimension.top + motifAreaDimension.height
                Severity: Major
                Found in entry_types/scrolled/package/src/frontend/v1/useMotifAreaState.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return result;
                  Severity: Major
                  Found in entry_types/scrolled/package/src/frontend/VideoPlayer/sources.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return 1;
                    Severity: Major
                    Found in package/src/editor/collections/PagesCollection.js - About 30 mins to fix

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

                      pageTransitions.register('scroll_left', {
                        v: {className: 'scroll scroll-in scroll-from_left', duration: 1100},
                        h: {className: 'scroll scroll-in scroll-from_top scroll-fast', duration: 600}
                      });
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

                      pageTransitions.register('fade', {
                        v: {className: 'fade fade-v', duration: 1100},
                        h: {className: 'fade fade-h', duration: 600}
                      });
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
                      entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

                      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

                      Avoid too many return statements within this function.
                      Open

                            return Promise.resolve('fulfilled');
                      Severity: Major
                      Found in package/src/frontend/Consent/index.js - About 30 mins to fix

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

                        pageTransitions.register('crossfade', {
                          v: {className: 'crossfade', duration: 1100},
                          h: {className: 'crossfade crossfade-fast', duration: 600}
                        });
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

                        pageTransitions.register('scroll', {
                          v: {className: 'scroll scroll-in scroll-from_bottom', duration: 1100},
                          h: {className: 'scroll scroll-in scroll-from_right scroll-fast', duration: 600}
                        });
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

                        pageTransitions.register('fade_to_black', {
                          v: {className: 'fade_to_black', duration: 2100},
                          h: {className: 'fade_to_black', duration: 2100}
                        });
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

                        pageTransitions.register('scroll_right', {
                          v: {className: 'scroll scroll-in scroll-from_right', duration: 1100},
                          h: {className: 'scroll scroll-in scroll-from_bottom scroll-fast', duration: 600}
                        });
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
                        entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

                        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

                        Avoid too many return statements within this function.
                        Open

                                return Promise.resolve('failed');
                        Severity: Major
                        Found in package/src/frontend/Consent/index.js - About 30 mins to fix

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

                          pageTransitions.register('cut', {
                            v: {className: 'cut', duration: 1100},
                            h: {className: 'cut', duration: 1100}
                          });
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 69..72
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

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

                          pageTransitions.register('scroll_over_from_right', {
                            v: {className: 'scroll scroll-over scroll-from_right', duration: 1100},
                            h: {className: 'scroll scroll-over scroll-from_bottom scroll-fast', duration: 600}
                          });
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 34..37
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 39..42
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 44..47
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 49..52
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 54..57
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 59..62
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 64..67
                          entry_types/paged/packages/pageflow-paged/src/frontend/pageTransitions.js on lines 74..77

                          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