assemblymade/meta

View on GitHub
app/assets/javascripts/components/start_page.js.jsx

Summary

Maintainability
F
3 wks
Test Coverage

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

  render: function() {
    var background = 'linear-gradient(160deg, rgba(255, 232, 80, .8), rgba(26, 88, 131, .85) 70%), url(' + this.props.mastheadUrl + ')';
    return (
      <div className="mt0 mb3">
        <div className="masthead" style={{background: background, paddingTop: 0}}>
Severity: Major
Found in app/assets/javascripts/components/start_page.js.jsx - About 1 day to fix

    File start_page.js.jsx has 402 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    var Accordion = require('./ui/accordion.js.jsx');
    var Spinner = require('./spinner.js.jsx');
    var TextPost = require('./ui/text_post.js.jsx')
    var Tile = require('./ui/tile.js.jsx')
    var Button = require('./ui/button.js.jsx')
    Severity: Minor
    Found in app/assets/javascripts/components/start_page.js.jsx - About 5 hrs to fix

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

              <div className="container center">
      
                <ul className="list list-steps hidden-xs hidden-sm">
                  <li className="overlay" />
      
      
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 1 other location - About 4 days to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 30..100

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

      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

              <div className="container-fluid" style={{background: '#fff no-repeat center bottom'}}>
                <div className="container" style={{paddingBottom: 80}}>
                  {/*Why start a product on Assembly? */}
                  {/* <div class="row">
            <div class="col-xs-12 center">
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 1 other location - About 3 days to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 124..169

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

      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

              <div className="container center">
                <div className="row">
                  <div className="col-xs-6 col-sm-2" />
                  <div className="col-xs-12 col-sm-4" style={{padding: '50px 40px', borderRight: '1px solid #eee'}}>
                    <h1 style={{fontSize: 80, lineHeight: 1, margin: 0}}>4MM</h1>
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 1 other location - About 1 day to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 102..122

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 318.

      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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#what-is-assemblys-fee" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 1 other location - About 1 day to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 253..272

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#hiring-employees" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 10 other locations - About 7 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 206..221
      app/assets/javascripts/components/import_page.js.jsx on lines 237..252
      app/assets/javascripts/components/import_page.js.jsx on lines 277..292
      app/assets/javascripts/components/import_page.js.jsx on lines 313..332
      app/assets/javascripts/components/import_page.js.jsx on lines 334..349
      app/assets/javascripts/components/start_page.js.jsx on lines 206..221
      app/assets/javascripts/components/start_page.js.jsx on lines 252..267
      app/assets/javascripts/components/start_page.js.jsx on lines 292..307
      app/assets/javascripts/components/start_page.js.jsx on lines 308..323
      app/assets/javascripts/components/start_page.js.jsx on lines 344..363

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#can-a-product-be-sold" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 10 other locations - About 7 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 206..221
      app/assets/javascripts/components/import_page.js.jsx on lines 237..252
      app/assets/javascripts/components/import_page.js.jsx on lines 277..292
      app/assets/javascripts/components/import_page.js.jsx on lines 313..332
      app/assets/javascripts/components/import_page.js.jsx on lines 334..349
      app/assets/javascripts/components/start_page.js.jsx on lines 206..221
      app/assets/javascripts/components/start_page.js.jsx on lines 252..267
      app/assets/javascripts/components/start_page.js.jsx on lines 292..307
      app/assets/javascripts/components/start_page.js.jsx on lines 344..363
      app/assets/javascripts/components/start_page.js.jsx on lines 365..380

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#no-interest-generated" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 10 other locations - About 7 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 206..221
      app/assets/javascripts/components/import_page.js.jsx on lines 237..252
      app/assets/javascripts/components/import_page.js.jsx on lines 277..292
      app/assets/javascripts/components/import_page.js.jsx on lines 313..332
      app/assets/javascripts/components/import_page.js.jsx on lines 334..349
      app/assets/javascripts/components/start_page.js.jsx on lines 206..221
      app/assets/javascripts/components/start_page.js.jsx on lines 252..267
      app/assets/javascripts/components/start_page.js.jsx on lines 308..323
      app/assets/javascripts/components/start_page.js.jsx on lines 344..363
      app/assets/javascripts/components/start_page.js.jsx on lines 365..380

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#can-a-product-leave-assembly" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 10 other locations - About 7 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 206..221
      app/assets/javascripts/components/import_page.js.jsx on lines 237..252
      app/assets/javascripts/components/import_page.js.jsx on lines 277..292
      app/assets/javascripts/components/import_page.js.jsx on lines 313..332
      app/assets/javascripts/components/import_page.js.jsx on lines 334..349
      app/assets/javascripts/components/start_page.js.jsx on lines 206..221
      app/assets/javascripts/components/start_page.js.jsx on lines 292..307
      app/assets/javascripts/components/start_page.js.jsx on lines 308..323
      app/assets/javascripts/components/start_page.js.jsx on lines 344..363
      app/assets/javascripts/components/start_page.js.jsx on lines 365..380

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#will-product-make-money" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 10 other locations - About 7 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 206..221
      app/assets/javascripts/components/import_page.js.jsx on lines 237..252
      app/assets/javascripts/components/import_page.js.jsx on lines 277..292
      app/assets/javascripts/components/import_page.js.jsx on lines 313..332
      app/assets/javascripts/components/import_page.js.jsx on lines 334..349
      app/assets/javascripts/components/start_page.js.jsx on lines 206..221
      app/assets/javascripts/components/start_page.js.jsx on lines 252..267
      app/assets/javascripts/components/start_page.js.jsx on lines 292..307
      app/assets/javascripts/components/start_page.js.jsx on lines 308..323
      app/assets/javascripts/components/start_page.js.jsx on lines 365..380

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#who-pays-for-hosting-the-product" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 10 other locations - About 7 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 206..221
      app/assets/javascripts/components/import_page.js.jsx on lines 237..252
      app/assets/javascripts/components/import_page.js.jsx on lines 277..292
      app/assets/javascripts/components/import_page.js.jsx on lines 313..332
      app/assets/javascripts/components/import_page.js.jsx on lines 334..349
      app/assets/javascripts/components/start_page.js.jsx on lines 252..267
      app/assets/javascripts/components/start_page.js.jsx on lines 292..307
      app/assets/javascripts/components/start_page.js.jsx on lines 308..323
      app/assets/javascripts/components/start_page.js.jsx on lines 344..363
      app/assets/javascripts/components/start_page.js.jsx on lines 365..380

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#who-owns-the-intellectual-property" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 7 other locations - About 6 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 191..205
      app/assets/javascripts/components/import_page.js.jsx on lines 222..236
      app/assets/javascripts/components/import_page.js.jsx on lines 295..311
      app/assets/javascripts/components/import_page.js.jsx on lines 351..367
      app/assets/javascripts/components/start_page.js.jsx on lines 191..205
      app/assets/javascripts/components/start_page.js.jsx on lines 326..342
      app/assets/javascripts/components/start_page.js.jsx on lines 382..398

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#what-about-investors" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 7 other locations - About 6 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 191..205
      app/assets/javascripts/components/import_page.js.jsx on lines 222..236
      app/assets/javascripts/components/import_page.js.jsx on lines 295..311
      app/assets/javascripts/components/import_page.js.jsx on lines 351..367
      app/assets/javascripts/components/start_page.js.jsx on lines 191..205
      app/assets/javascripts/components/start_page.js.jsx on lines 222..236
      app/assets/javascripts/components/start_page.js.jsx on lines 326..342

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#why-not-just-do-open-source" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 7 other locations - About 6 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 191..205
      app/assets/javascripts/components/import_page.js.jsx on lines 222..236
      app/assets/javascripts/components/import_page.js.jsx on lines 295..311
      app/assets/javascripts/components/import_page.js.jsx on lines 351..367
      app/assets/javascripts/components/start_page.js.jsx on lines 222..236
      app/assets/javascripts/components/start_page.js.jsx on lines 326..342
      app/assets/javascripts/components/start_page.js.jsx on lines 382..398

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

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

                        <div className="panel panel-subtle">
                          <div className="panel-heading">
                            <p className="panel-title">
                              <a href="#must-make-money" data-toggle="collapse" style={{display: 'block'}}>
                                <span className="glyphicon glyphicon-chevron-down small pull-right" style={{marginTop: 5}} />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 7 other locations - About 6 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 191..205
      app/assets/javascripts/components/import_page.js.jsx on lines 222..236
      app/assets/javascripts/components/import_page.js.jsx on lines 295..311
      app/assets/javascripts/components/import_page.js.jsx on lines 351..367
      app/assets/javascripts/components/start_page.js.jsx on lines 191..205
      app/assets/javascripts/components/start_page.js.jsx on lines 222..236
      app/assets/javascripts/components/start_page.js.jsx on lines 382..398

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

      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

                  <div className="text-large" style={{padding: '60px 30px', fontSize: 20}}>
                    <Button type="primary" action="/ideas/new">
                      Start an idea
                    </Button>
                    <div className="visible-xs mt3" />
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 1 other location - About 3 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 372..381

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

      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

              <div className="masthead" style={{background: background, paddingTop: 0}}>
                <div className="masthead-title p4">
                  <div className="clearfix">
                    <h1 className="col-8 mx-auto center white">
                       Turn your idea into a product with the community.
      Severity: Major
      Found in app/assets/javascripts/components/start_page.js.jsx and 1 other location - About 2 hrs to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 20..28

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

      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

        propTypes: {
          productsStarted: React.PropTypes.number,
          productsWorked: React.PropTypes.number,
          mastheadUrl: React.PropTypes.string
        },
      Severity: Minor
      Found in app/assets/javascripts/components/start_page.js.jsx and 1 other location - About 30 mins to fix
      app/assets/javascripts/components/import_page.js.jsx on lines 10..14

      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

      There are no issues that match your filters.

      Category
      Status