jsdir/react-ladda

View on GitHub

Showing 12 of 13 total issues

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

          <section className="button-demo">
            <h3>slide-left</h3>
            <LaddaButton
              loading={this.state.expSlideLeft}
              onClick={() => this.toggle('expSlideLeft')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>expand-down</h3>
            <LaddaButton
              loading={this.state.expDown}
              onClick={() => this.toggle('expDown')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>slide-down</h3>
            <LaddaButton
              loading={this.state.expSlideDown}
              onClick={() => this.toggle('expSlideDown')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186

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

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

          <section className="button-demo">
            <h3>expand-up</h3>
            <LaddaButton
              loading={this.state.expUp}
              onClick={() => this.toggle('expUp')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>expand-right</h3>
            <LaddaButton
              loading={this.state.expRight}
              onClick={() => this.toggle('expRight')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>zoom-in</h3>
            <LaddaButton
              loading={this.state.expZoomIn}
              onClick={() => this.toggle('expZoomIn')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>contract-overlay</h3>
            <LaddaButton
              loading={this.state.expOverlay}
              onClick={() => this.toggle('expOverlay')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>slide-right</h3>
            <LaddaButton
              loading={this.state.expSlideRight}
              onClick={() => this.toggle('expSlideRight')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>expand-left</h3>
            <LaddaButton
              loading={this.state.expLeft}
              onClick={() => this.toggle('expLeft')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>zoom-out</h3>
            <LaddaButton
              loading={this.state.expZoomOut}
              onClick={() => this.toggle('expZoomOut')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>slide-up</h3>
            <LaddaButton
              loading={this.state.expSlideUp}
              onClick={() => this.toggle('expSlideUp')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 102..112
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 188..198

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

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

          <section className="button-demo">
            <h3>contract</h3>
            <LaddaButton
              loading={this.state.expContract}
              onClick={() => this.toggle('expContract')}
Severity: Major
Found in example/src/App.jsx and 11 other locations - About 2 hrs to fix
example/src/App.jsx on lines 54..64
example/src/App.jsx on lines 65..75
example/src/App.jsx on lines 77..87
example/src/App.jsx on lines 89..99
example/src/App.jsx on lines 114..124
example/src/App.jsx on lines 126..136
example/src/App.jsx on lines 138..148
example/src/App.jsx on lines 152..162
example/src/App.jsx on lines 164..174
example/src/App.jsx on lines 176..186
example/src/App.jsx on lines 188..198

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

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