Showing 1,157 of 1,157 total issues

Avoid too many return statements within this function.
Open

      return true;
Severity: Major
Found in src/text-editor-component.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        if (newProps.didMeasureVisibleBlockDecoration) return true;
    Severity: Major
    Found in src/text-editor-component.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          if (!arraysEqual(oldProps.bufferRows, newProps.bufferRows)) return true;
      Severity: Major
      Found in src/text-editor-component.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return false;
        Severity: Major
        Found in src/text-editor-component.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                if (blockDecorationsChanged) return true;
          Severity: Major
          Found in src/text-editor-component.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    if (oldHighlight.className !== newHighlight.className) return true;
            Severity: Major
            Found in src/text-editor-component.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      if (blockDecorationsChanged) return true;
              Severity: Major
              Found in src/text-editor-component.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return true;
                Severity: Major
                Found in src/text-editor-component.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return true;
                  Severity: Major
                  Found in src/text-editor-component.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return undefined;
                    Severity: Major
                    Found in src/project.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return this.openPath({
                              pathToOpen: null,
                              pidToKillWhenClosed,
                              newWindow,
                              devMode,
                      Severity: Major
                      Found in src/main-process/atom-application.js - About 30 mins to fix

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

                          inSafeMode() {
                            if (this.safeMode == null) this.safeMode = this.getLoadSettings().safeMode;
                            return this.safeMode;
                          }
                        Severity: Major
                        Found in src/atom-environment.js and 5 other locations - About 30 mins to fix
                        src/atom-environment.js on lines 533..536
                        src/atom-environment.js on lines 545..548
                        src/atom-environment.js on lines 552..556
                        src/atom-environment.js on lines 561..564
                        src/atom-environment.js on lines 569..573

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

                          inSpecMode() {
                            if (this.specMode == null) this.specMode = this.getLoadSettings().isSpec;
                            return this.specMode;
                          }
                        Severity: Major
                        Found in src/atom-environment.js and 5 other locations - About 30 mins to fix
                        src/atom-environment.js on lines 533..536
                        src/atom-environment.js on lines 539..542
                        src/atom-environment.js on lines 552..556
                        src/atom-environment.js on lines 561..564
                        src/atom-environment.js on lines 569..573

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

                          getVersion() {
                            if (this.appVersion == null)
                              this.appVersion = this.getLoadSettings().appVersion;
                            return this.appVersion;
                          }
                        Severity: Major
                        Found in src/atom-environment.js and 5 other locations - About 30 mins to fix
                        src/atom-environment.js on lines 533..536
                        src/atom-environment.js on lines 539..542
                        src/atom-environment.js on lines 545..548
                        src/atom-environment.js on lines 552..556
                        src/atom-environment.js on lines 561..564

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

                          inDevMode() {
                            if (this.devMode == null) this.devMode = this.getLoadSettings().devMode;
                            return this.devMode;
                          }
                        Severity: Major
                        Found in src/atom-environment.js and 5 other locations - About 30 mins to fix
                        src/atom-environment.js on lines 539..542
                        src/atom-environment.js on lines 545..548
                        src/atom-environment.js on lines 552..556
                        src/atom-environment.js on lines 561..564
                        src/atom-environment.js on lines 569..573

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

                          getAppName() {
                            if (this.appName == null) this.appName = this.getLoadSettings().appName;
                            return this.appName;
                          }
                        Severity: Major
                        Found in src/atom-environment.js and 5 other locations - About 30 mins to fix
                        src/atom-environment.js on lines 533..536
                        src/atom-environment.js on lines 539..542
                        src/atom-environment.js on lines 545..548
                        src/atom-environment.js on lines 552..556
                        src/atom-environment.js on lines 569..573

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

                          isFirstLoad() {
                            if (this.firstLoad == null)
                              this.firstLoad = this.getLoadSettings().firstLoad;
                            return this.firstLoad;
                          }
                        Severity: Major
                        Found in src/atom-environment.js and 5 other locations - About 30 mins to fix
                        src/atom-environment.js on lines 533..536
                        src/atom-environment.js on lines 539..542
                        src/atom-environment.js on lines 545..548
                        src/atom-environment.js on lines 561..564
                        src/atom-environment.js on lines 569..573

                        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

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

                          destroyActivePane() {
                            const activePane = this.getActivePane();
                            if (activePane != null) {
                              activePane.destroy();
                            }
                        Severity: Minor
                        Found in src/workspace-center.js and 1 other location - About 30 mins to fix
                        src/dock.js on lines 750..755

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

                            if (yDelta != null) {
                              const scaledDelta = scaleMouseDragAutoscrollDelta(yDelta) * yDirection;
                              scrolled = this.setScrollTop(this.getScrollTop() + scaledDelta);
                            }
                        Severity: Minor
                        Found in src/text-editor-component.js and 1 other location - About 30 mins to fix
                        src/text-editor-component.js on lines 2207..2210

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

                              'line-ending-selector:convert-to-CRLF': event => {
                                const editorElement = event.target.closest('atom-text-editor');
                                setLineEnding(editorElement.getModel(), '\r\n');
                              }
                        Severity: Minor
                        Found in packages/line-ending-selector/lib/main.js and 1 other location - About 30 mins to fix
                        packages/line-ending-selector/lib/main.js on lines 43..46

                        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