packages/welcome/lib/guide-view.js

Summary

Maintainability
F
1 wk
Test Coverage

Function render has 320 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    return (
      <div className="welcome is-guide">
        <div className="welcome-container">
          <section className="welcome-panel">
Severity: Major
Found in packages/welcome/lib/guide-view.js - About 1 day to fix

    File guide-view.js has 444 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /** @babel */
    /** @jsx etch.dom **/
    
    import etch from 'etch';
    
    
    Severity: Minor
    Found in packages/welcome/lib/guide-view.js - About 6 hrs to fix

      GuideView has 21 functions (exceeds 20 allowed). Consider refactoring.
      Open

      export default class GuideView {
        constructor(props) {
          this.props = props;
          this.didClickProjectButton = this.didClickProjectButton.bind(this);
          this.didClickGitButton = this.didClickGitButton.bind(this);
      Severity: Minor
      Found in packages/welcome/lib/guide-view.js - About 2 hrs to fix

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

                    <details
                      className="welcome-card"
                      {...this.getSectionProps('styling')}
                    >
                      <summary className="welcome-summary icon icon-paintcan">
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 1 other location - About 1 day to fix
        packages/welcome/lib/guide-view.js on lines 243..277

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

        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

                    <details
                      className="welcome-card"
                      {...this.getSectionProps('init-script')}
                    >
                      <summary className="welcome-summary icon icon-code">
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 1 other location - About 1 day to fix
        packages/welcome/lib/guide-view.js on lines 209..241

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

        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

                    <details
                      className="welcome-card"
                      {...this.getSectionProps('packages')}
                    >
                      <summary className="welcome-summary icon icon-package">
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 1 other location - About 1 day to fix
        packages/welcome/lib/guide-view.js on lines 33..67

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

        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

                    <details
                      className="welcome-card"
                      {...this.getSectionProps('project')}
                    >
                      <summary className="welcome-summary icon icon-repo">
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 1 other location - About 1 day to fix
        packages/welcome/lib/guide-view.js on lines 138..171

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

        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

          didClickGitHubButton() {
            this.props.reporterProxy.sendEvent('clicked-github-cta');
            atom.commands.dispatch(
              atom.views.getView(atom.workspace),
              'github:toggle-github-tab'
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 2 other locations - About 1 hr to fix
        packages/welcome/lib/guide-view.js on lines 416..422
        packages/welcome/lib/guide-view.js on lines 424..430

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

        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

          didClickProjectButton() {
            this.props.reporterProxy.sendEvent('clicked-project-cta');
            atom.commands.dispatch(
              atom.views.getView(atom.workspace),
              'application:open'
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 2 other locations - About 1 hr to fix
        packages/welcome/lib/guide-view.js on lines 424..430
        packages/welcome/lib/guide-view.js on lines 432..438

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

        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

          didClickGitButton() {
            this.props.reporterProxy.sendEvent('clicked-git-cta');
            atom.commands.dispatch(
              atom.views.getView(atom.workspace),
              'github:toggle-git-tab'
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 2 other locations - About 1 hr to fix
        packages/welcome/lib/guide-view.js on lines 416..422
        packages/welcome/lib/guide-view.js on lines 432..438

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

        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

          didClickThemesButton() {
            this.props.reporterProxy.sendEvent('clicked-themes-cta');
            atom.workspace.open('atom://config/themes', { split: 'left' });
          }
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 5 other locations - About 40 mins to fix
        packages/welcome/lib/guide-view.js on lines 440..443
        packages/welcome/lib/guide-view.js on lines 450..453
        packages/welcome/lib/guide-view.js on lines 455..458
        packages/welcome/lib/guide-view.js on lines 460..463
        packages/welcome/lib/guide-view.js on lines 465..468

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

        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

          didClickSnippetsButton() {
            this.props.reporterProxy.sendEvent('clicked-snippets-cta');
            atom.workspace.open('atom://.atom/snippets', { split: 'left' });
          }
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 5 other locations - About 40 mins to fix
        packages/welcome/lib/guide-view.js on lines 440..443
        packages/welcome/lib/guide-view.js on lines 445..448
        packages/welcome/lib/guide-view.js on lines 450..453
        packages/welcome/lib/guide-view.js on lines 455..458
        packages/welcome/lib/guide-view.js on lines 465..468

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

        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

          didClickStylingButton() {
            this.props.reporterProxy.sendEvent('clicked-styling-cta');
            atom.workspace.open('atom://.atom/stylesheet', { split: 'left' });
          }
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 5 other locations - About 40 mins to fix
        packages/welcome/lib/guide-view.js on lines 440..443
        packages/welcome/lib/guide-view.js on lines 445..448
        packages/welcome/lib/guide-view.js on lines 455..458
        packages/welcome/lib/guide-view.js on lines 460..463
        packages/welcome/lib/guide-view.js on lines 465..468

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

        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

          didClickPackagesButton() {
            this.props.reporterProxy.sendEvent('clicked-packages-cta');
            atom.workspace.open('atom://config/install', { split: 'left' });
          }
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 5 other locations - About 40 mins to fix
        packages/welcome/lib/guide-view.js on lines 445..448
        packages/welcome/lib/guide-view.js on lines 450..453
        packages/welcome/lib/guide-view.js on lines 455..458
        packages/welcome/lib/guide-view.js on lines 460..463
        packages/welcome/lib/guide-view.js on lines 465..468

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

        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

          didClickInitScriptButton() {
            this.props.reporterProxy.sendEvent('clicked-init-script-cta');
            atom.workspace.open('atom://.atom/init-script', { split: 'left' });
          }
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 5 other locations - About 40 mins to fix
        packages/welcome/lib/guide-view.js on lines 440..443
        packages/welcome/lib/guide-view.js on lines 445..448
        packages/welcome/lib/guide-view.js on lines 450..453
        packages/welcome/lib/guide-view.js on lines 460..463
        packages/welcome/lib/guide-view.js on lines 465..468

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

        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

          didClickTeletypeButton() {
            this.props.reporterProxy.sendEvent('clicked-teletype-cta');
            atom.workspace.open('atom://config/packages/teletype', { split: 'left' });
          }
        Severity: Major
        Found in packages/welcome/lib/guide-view.js and 5 other locations - About 40 mins to fix
        packages/welcome/lib/guide-view.js on lines 440..443
        packages/welcome/lib/guide-view.js on lines 445..448
        packages/welcome/lib/guide-view.js on lines 450..453
        packages/welcome/lib/guide-view.js on lines 455..458
        packages/welcome/lib/guide-view.js on lines 460..463

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

        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

        There are no issues that match your filters.

        Category
        Status