airbnb/caravel

View on GitHub

Showing 3,672 of 6,072 total issues

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

    const {
      width,
      height,
      aggregatorName,
      clusterer,
superset-frontend/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx on lines 61..75

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

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

    userSelectorMock.mockReturnValue({
      createdOn: '2021-05-27T18:12:38.952304',
      email: 'alpha@gmail.com',
      firstName: 'alpha',
      isActive: true,
superset-frontend/src/pages/DatabaseList/DatabaseList.test.jsx on lines 105..121

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_by: changedBy,
Severity: Major
Found in superset-frontend/src/pages/SavedQueryList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_by: changedBy,
Severity: Major
Found in superset-frontend/src/pages/DatabaseList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_on_delta_humanized: changedOn,
Severity: Major
Found in superset-frontend/src/pages/AlertReportList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_on_delta_humanized: changedOn,
Severity: Major
Found in superset-frontend/src/pages/DatasetList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_on_delta_humanized: changedOn,
Severity: Major
Found in superset-frontend/src/pages/DashboardList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_on_delta_humanized: changedOn,
Severity: Major
Found in superset-frontend/src/pages/Tags/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_on_delta_humanized: changedOn,
Severity: Major
Found in superset-frontend/src/pages/RowLevelSecurityList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_on_delta_humanized: changedOn,
Severity: Major
Found in superset-frontend/src/pages/ChartList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/AnnotationLayerList/index.tsx on lines 156..168
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

      {
        Cell: ({
          row: {
            original: {
              changed_on_delta_humanized: changedOn,
Severity: Major
Found in superset-frontend/src/pages/AnnotationLayerList/index.tsx and 8 other locations - About 2 hrs to fix
superset-frontend/src/pages/AlertReportList/index.tsx on lines 319..331
superset-frontend/src/pages/ChartList/index.tsx on lines 434..446
superset-frontend/src/pages/DashboardList/index.tsx on lines 388..400
superset-frontend/src/pages/DatabaseList/index.tsx on lines 411..423
superset-frontend/src/pages/DatasetList/index.tsx on lines 391..403
superset-frontend/src/pages/RowLevelSecurityList/index.tsx on lines 148..160
superset-frontend/src/pages/SavedQueryList/index.tsx on lines 371..383
superset-frontend/src/pages/Tags/index.tsx on lines 177..189

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

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

          <Collapse.Panel
            header={
              <div>
                <h4>{t('Columns')}</h4>
                <p className="helper">
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 91..253
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 254..371
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 754..876
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 978..1034

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

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

          <Collapse.Panel
            header={
              <div>
                <h4>{t('File Settings')}</h4>
                <p className="helper">
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 91..253
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 254..371
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 877..974
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 978..1034

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

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

      <Collapse.Panel
        header={
          <div>
            <h4>{t('Performance')}</h4>
            <p className="helper">
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 91..253
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 754..876
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 877..974
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 978..1034

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

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

              <Collapse.Panel
                header={
                  <div>
                    <h4>{t('Rows')}</h4>
                    <p className="helper">
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 91..253
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 254..371
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 754..876
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 877..974

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

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

      <Collapse.Panel
        header={
          <div>
            <h4>{t('SQL Lab')}</h4>
            <p className="helper">
superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx on lines 254..371
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 754..876
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 877..974
superset-frontend/src/features/databases/UploadDataModel/index.tsx on lines 978..1034

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

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

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

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

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

Refactorings

Further Reading

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

                onInputChange={({ target }: { target: HTMLInputElement }) =>
                  onChange(ActionType.InputChange, {
                    type: target.type,
                    name: target.name,
                    checked: target.checked,
superset-frontend/src/features/databases/DatabaseModal/index.tsx on lines 1689..1696
superset-frontend/src/features/databases/DatabaseModal/index.tsx on lines 1901..1908

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

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

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

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

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

Refactorings

Further Reading

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

            onInputChange={({ target }: { target: HTMLInputElement }) =>
              onChange(ActionType.InputChange, {
                type: target.type,
                name: target.name,
                checked: target.checked,
superset-frontend/src/features/databases/DatabaseModal/index.tsx on lines 1689..1696
superset-frontend/src/features/databases/DatabaseModal/index.tsx on lines 1816..1823

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

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

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

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

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

Refactorings

Further Reading

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

          onInputChange={({ target }: { target: HTMLInputElement }) =>
            onChange(ActionType.InputChange, {
              type: target.type,
              name: target.name,
              checked: target.checked,
superset-frontend/src/features/databases/DatabaseModal/index.tsx on lines 1816..1823
superset-frontend/src/features/databases/DatabaseModal/index.tsx on lines 1901..1908

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

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

          if (currentChartId === NEW_CHART_SCOPING_ID) {
            delete newConfig[NEW_CHART_SCOPING_ID];
          } else {
            newConfig[currentChartId] = {
              id: currentChartId,
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/CrossFilters/ScopingModal/ScopingModal.tsx on lines 186..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 77.

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