CLOSER-Cohorts/archivist

View on GitHub
react/src/App.js

Summary

Maintainability
D
2 days
Test Coverage

Function App has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const App = () => {

  return (
    <MuiThemeProvider theme={theme}>
      <Router>
Severity: Major
Found in react/src/App.js - About 2 hrs to fix

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.questionItems.all} component={InstrumentBuildQuestionItems} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.codeLists.all} component={InstrumentBuildCodeLists} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.questionItems.show} component={InstrumentBuildQuestionItems} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.codeLists.new} component={InstrumentBuildCodeLists} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.responseDomains.all} component={InstrumentBuildResponseDomains} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.questionGrids.show} component={InstrumentBuildQuestionGrids} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.codeLists.show} component={InstrumentBuildCodeLists} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.questionItems.new} component={InstrumentBuildQuestionItems} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.responseDomains.show} component={InstrumentBuildResponseDomains} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.responseDomains.new} component={InstrumentBuildResponseDomains} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.constructs.show} component={InstrumentConstructBuild} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.questionGrids.all} component={InstrumentBuildQuestionGrids} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 112..112
react/src/App.js on lines 113..113
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.questionGrids.new} component={InstrumentBuildQuestionGrids} />
Severity: Major
Found in react/src/App.js and 12 other locations - About 40 mins to fix
react/src/App.js on lines 105..105
react/src/App.js on lines 106..106
react/src/App.js on lines 107..107
react/src/App.js on lines 108..108
react/src/App.js on lines 109..109
react/src/App.js on lines 110..110
react/src/App.js on lines 111..111
react/src/App.js on lines 112..112
react/src/App.js on lines 114..114
react/src/App.js on lines 115..115
react/src/App.js on lines 116..116
react/src/App.js on lines 117..117

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

            <AuthRoute type="admin" exact path={routes.admin.instruments.instrument.show} component={AdminInstrumentView} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="admin" exact path={routes.admin.instruments.instrument.datasets} component={AdminInstrumentDatasetLink} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="admin" exact path={routes.admin.users.user.edit} component={AdminUserEdit} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.show} component={InstrumentBuild} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.ccConditions} component={InstrumentCcConditions} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.ccQuestions} component={InstrumentCcQuestions} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.ccSequences} component={InstrumentCcSequences} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.map.show} component={InstrumentMap} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="admin" exact path={routes.admin.instruments.instrument.edit} component={AdminInstrumentEdit} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.ccLoops} component={InstrumentCcLoops} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="admin" exact path={routes.admin.datasets.dataset.show} component={AdminDatasetView} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 122..122
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

Duplicated Code

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

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

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

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

            <AuthRoute type="editor" exact path={routes.instruments.instrument.build.ccStatements} component={InstrumentCcStatements} />
Severity: Major
Found in react/src/App.js and 11 other locations - About 30 mins to fix
react/src/App.js on lines 100..100
react/src/App.js on lines 101..101
react/src/App.js on lines 118..118
react/src/App.js on lines 119..119
react/src/App.js on lines 120..120
react/src/App.js on lines 121..121
react/src/App.js on lines 128..128
react/src/App.js on lines 132..132
react/src/App.js on lines 133..133
react/src/App.js on lines 135..135
react/src/App.js on lines 138..138

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

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
Open

import React from 'react';
Severity: Minor
Found in react/src/App.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status