theQRL/block-explorer

View on GitHub

Showing 158 of 158 total issues

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

  theme() {
    try {
      const x = LocalStore.get('theme')
      if (x === 'dark') {
        return 'sun'
Severity: Major
Found in imports/ui/layouts/body/body.js and 1 other location - About 3 hrs to fix
imports/ui/mobile/mobile.js on lines 61..76

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

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

`` has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

Template.lasttx.helpers({
  lasttx() {
    const res = lasttx.findOne()
    return res
  },
Severity: Minor
Found in imports/ui/components/lasttx/lasttx.js - About 3 hrs to fix

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

      ts() {
        if (this.header) {
          const x = moment.unix(this.header.timestamp_seconds)
          return moment(x).format('HH:mm D MMM YYYY')
        }
    Severity: Major
    Found in imports/ui/components/tx/tx.js and 1 other location - About 2 hrs to fix
    imports/ui/components/lasttx/lasttx.js on lines 29..36

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

    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

      ts() {
        if (this.header) {
          const x = moment.unix(this.header.timestamp_seconds)
          return moment(x).format('HH:mm D MMM YYYY')
        }
    Severity: Major
    Found in imports/ui/components/lasttx/lasttx.js and 1 other location - About 2 hrs to fix
    imports/ui/components/tx/tx.js on lines 207..214

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

    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

    Function refreshBlocks has 68 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const refreshBlocks = () => {
      const request = { filter: 'BLOCKHEADERS', offset: 0, quantity: 10 }
      const response = Meteor.wrapAsync(getLatestData)(request)
    
      // identify miner and calculate total transacted in block
    Severity: Major
    Found in imports/startup/server/cron.js - About 2 hrs to fix

      Function refreshStats has 63 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function refreshStats() {
        const res = Meteor.wrapAsync(getStats)({ include_timeseries: true })
      
        // Save status object
        status.remove({})
      Severity: Major
      Found in imports/startup/server/cron.js - About 2 hrs to fix

        Function submit #notariseVerificationForm has 58 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          'submit #notariseVerificationForm': (event) => {
            event.preventDefault()
            event.stopPropagation()
        
            $('#documentVerified').hide()
        Severity: Major
        Found in imports/ui/components/tx/tx.js - About 2 hrs to fix

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

            'click .refresh': () => {
              Session.set('lastunconfirmedtx', {})
              Meteor.call('lastunconfirmedtx', (err, res) => {
                // The method call sets the Session variable to the callback value
                if (err) {
          Severity: Major
          Found in imports/ui/components/lastunconfirmedtx/lastunconfirmedtx.js and 1 other location - About 2 hrs to fix
          imports/ui/components/lastunconfirmedtx/lastunconfirmedtx.js on lines 4..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 81.

          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

          Template.lastunconfirmedtx.onCreated(() => {
            Session.set('lastunconfirmedtx', {})
            Meteor.call('lastunconfirmedtx', (err, res) => {
              // The method call sets the Session variable to the callback value
              if (err) {
          Severity: Major
          Found in imports/ui/components/lastunconfirmedtx/lastunconfirmedtx.js and 1 other location - About 2 hrs to fix
          imports/ui/components/lastunconfirmedtx/lastunconfirmedtx.js on lines 103..113

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

          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

          Meteor.call('getTransactionsByAddress', req, (err, res) => {
            if (err) {
              console.log('ADDRESS STATE: - **ERROR**')
              console.log(err.message)
            } else {
          Severity: Major
          Found in imports/startup/client/grpc-console-tests.js and 1 other location - About 2 hrs to fix
          imports/startup/client/grpc-console-tests.js on lines 47..55

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

          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

          Meteor.call('getAddressState', req, (err, res) => {
            if (err) {
              console.log('ADDRESS STATE: - **ERROR**')
              console.log(err.message)
            } else {
          Severity: Major
          Found in imports/startup/client/grpc-console-tests.js and 1 other location - About 2 hrs to fix
          imports/startup/client/grpc-console-tests.js on lines 64..72

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

          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

            zeroCheck() {
              let ret = false
              const x = lasttx.findOne()
              if (x) { if (x.length === 0) { ret = true } }
              if (x === undefined) { ret = true }
          Severity: Major
          Found in imports/ui/components/lasttx/lasttx.js and 1 other location - About 2 hrs to fix
          imports/ui/components/peerstats/peerstats.js on lines 17..23

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

          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

            zeroCheck() {
              let ret = false
              const x = peerstats.findOne()
              if (x) { if (x.length === 0) { ret = true } }
              if (x === undefined) { ret = true }
          Severity: Major
          Found in imports/ui/components/peerstats/peerstats.js and 1 other location - About 2 hrs to fix
          imports/ui/components/lasttx/lasttx.js on lines 37..43

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

          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

          Function getMultiSigAddressState has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
          Open

          const getMultiSigAddressState = (request, callback) => {
            try {
              qrlApi('GetMultiSigAddressState', request, (error, response) => {
                if (error) {
                  const myError = errorCallback(error, 'Cannot access API/GetMultiSigAddressState', '**ERROR/getMultiSigAddressState** ')
          Severity: Minor
          Found in imports/startup/server/index.js - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

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

          FlowRouter.route('/', {
            name: 'App.home',
            action() {
              if (useMobile()) {
                BlazeLayout.render('appBody', { main: 'appHome' })
          Severity: Major
          Found in imports/startup/client/routes.js and 10 other locations - About 2 hrs to fix
          imports/startup/client/routes.js on lines 41..50
          imports/startup/client/routes.js on lines 51..60
          imports/startup/client/routes.js on lines 61..70
          imports/startup/client/routes.js on lines 71..80
          imports/startup/client/routes.js on lines 81..90
          imports/startup/client/routes.js on lines 91..100
          imports/startup/client/routes.js on lines 101..110
          imports/startup/client/routes.js on lines 111..120
          imports/startup/client/routes.js on lines 121..130
          imports/startup/client/routes.js on lines 131..140

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

          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

          FlowRouter.route('/status', {
            name: 'Status.home',
            action() {
              if (useMobile()) {
                BlazeLayout.render('appBody', { main: 'status' })
          Severity: Major
          Found in imports/startup/client/routes.js and 10 other locations - About 2 hrs to fix
          imports/startup/client/routes.js on lines 31..40
          imports/startup/client/routes.js on lines 41..50
          imports/startup/client/routes.js on lines 51..60
          imports/startup/client/routes.js on lines 61..70
          imports/startup/client/routes.js on lines 71..80
          imports/startup/client/routes.js on lines 81..90
          imports/startup/client/routes.js on lines 101..110
          imports/startup/client/routes.js on lines 111..120
          imports/startup/client/routes.js on lines 121..130
          imports/startup/client/routes.js on lines 131..140

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

          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

          FlowRouter.route('/lasttx', {
            name: 'Lasttx.home',
            action() {
              if (useMobile()) {
                BlazeLayout.render('appBody', { main: 'lasttx' })
          Severity: Major
          Found in imports/startup/client/routes.js and 10 other locations - About 2 hrs to fix
          imports/startup/client/routes.js on lines 31..40
          imports/startup/client/routes.js on lines 41..50
          imports/startup/client/routes.js on lines 51..60
          imports/startup/client/routes.js on lines 61..70
          imports/startup/client/routes.js on lines 71..80
          imports/startup/client/routes.js on lines 81..90
          imports/startup/client/routes.js on lines 91..100
          imports/startup/client/routes.js on lines 101..110
          imports/startup/client/routes.js on lines 121..130
          imports/startup/client/routes.js on lines 131..140

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

          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

          FlowRouter.route('/tx/:txId', {
            name: 'Tx.home',
            action() {
              if (useMobile()) {
                BlazeLayout.render('appBody', { main: 'tx' })
          Severity: Major
          Found in imports/startup/client/routes.js and 10 other locations - About 2 hrs to fix
          imports/startup/client/routes.js on lines 31..40
          imports/startup/client/routes.js on lines 51..60
          imports/startup/client/routes.js on lines 61..70
          imports/startup/client/routes.js on lines 71..80
          imports/startup/client/routes.js on lines 81..90
          imports/startup/client/routes.js on lines 91..100
          imports/startup/client/routes.js on lines 101..110
          imports/startup/client/routes.js on lines 111..120
          imports/startup/client/routes.js on lines 121..130
          imports/startup/client/routes.js on lines 131..140

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

          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

          FlowRouter.route('/search', {
            name: 'Search.home',
            action() {
              if (useMobile()) {
                BlazeLayout.render('appBody', { main: 'search' })
          Severity: Major
          Found in imports/startup/client/routes.js and 10 other locations - About 2 hrs to fix
          imports/startup/client/routes.js on lines 31..40
          imports/startup/client/routes.js on lines 41..50
          imports/startup/client/routes.js on lines 51..60
          imports/startup/client/routes.js on lines 61..70
          imports/startup/client/routes.js on lines 71..80
          imports/startup/client/routes.js on lines 81..90
          imports/startup/client/routes.js on lines 91..100
          imports/startup/client/routes.js on lines 111..120
          imports/startup/client/routes.js on lines 121..130
          imports/startup/client/routes.js on lines 131..140

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

          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

          FlowRouter.route('/unconfirmed', {
            name: 'Lastunconfirmedtx.home',
            action() {
              if (useMobile()) {
                BlazeLayout.render('appBody', { main: 'lastunconfirmedtx' })
          Severity: Major
          Found in imports/startup/client/routes.js and 10 other locations - About 2 hrs to fix
          imports/startup/client/routes.js on lines 31..40
          imports/startup/client/routes.js on lines 41..50
          imports/startup/client/routes.js on lines 51..60
          imports/startup/client/routes.js on lines 61..70
          imports/startup/client/routes.js on lines 71..80
          imports/startup/client/routes.js on lines 81..90
          imports/startup/client/routes.js on lines 91..100
          imports/startup/client/routes.js on lines 101..110
          imports/startup/client/routes.js on lines 111..120
          imports/startup/client/routes.js on lines 131..140

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

          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