airbnb/caravel

View on GitHub

Showing 3,672 of 6,072 total issues

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

            : this.addNewFilterPopoverTrigger(
                <AddControlLabel>
                  <Icons.PlusSmall iconColor={theme.colors.grayscale.light1} />
                  {t('Add filter')}
                </AddControlLabel>,
superset-frontend/src/explore/components/controls/MetricControl/MetricsControl.jsx on lines 330..335

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

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 (hasJavaScriptFiles) {
    console.log(
      `${"  ".repeat(
        curDirectory.split("/").length - 1
      )}- [ ] \`${curDirectory}\``
Severity: Minor
Found in scripts/generate_frontend_ts_tasklist.js and 1 other location - About 50 mins to fix
scripts/generate_frontend_ts_tasklist.js on lines 60..66

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

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

  const labels = labelsWrap
    .selectAll('g')
    .data(JSON.parse(JSON.stringify(arcSt.labels)))
    .enter()
    .append('g')
Severity: Minor
Found in superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js and 1 other location - About 50 mins to fix
superset-frontend/plugins/legacy-plugin-chart-rose/src/Rose.js on lines 371..375

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

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

    expect(
      dashboardFiltersReducer(dashboardFilters, {
        type: CHANGE_FILTER,
        chartId: filterId,
        newSelectedValues: {
superset-frontend/src/dashboard/reducers/dashboardFilters.test.js on lines 76..105

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

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

      expect(dispatch.getCall(2).args[0]).toEqual({
        type: DELETE_COMPONENT,
        payload: {
          id: 'tabsId',
          parentId: 'parentId',
Severity: Minor
Found in superset-frontend/src/dashboard/actions/dashboardLayout.test.js and 1 other location - About 50 mins to fix
superset-frontend/src/dashboard/actions/dashboardLayout.test.js on lines 123..126

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

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

    expect(
      dashboardFiltersReducer(dashboardFilters, {
        type: CHANGE_FILTER,
        chartId: filterId,
        newSelectedValues: {
superset-frontend/src/dashboard/reducers/dashboardFilters.test.js on lines 43..72

Duplicated Code

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

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

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

Tuning

This issue has a mass of 52.

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

        [
          {
            name: 'show_pointer',
            config: {
              type: 'CheckboxControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

        [
          {
            name: 'interval_color_indices',
            config: {
              type: 'TextControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278

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

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

        [
          {
            name: 'round_cap',
            config: {
              type: 'CheckboxControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

        [
          {
            name: 'value_formatter',
            config: {
              type: 'TextControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

        [
          {
            name: 'overlap',
            config: {
              type: 'CheckboxControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

        [
          {
            name: 'show_split_line',
            config: {
              type: 'CheckboxControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

        [
          {
            name: 'intervals',
            config: {
              type: 'TextControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

        [
          {
            name: 'animation',
            config: {
              type: 'CheckboxControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

        [
          {
            name: 'show_axis_tick',
            config: {
              type: 'CheckboxControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 224..235
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

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

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

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

Refactorings

Further Reading

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

test('should render', async () => {
  const { container } = setup();
  await waitFor(() => expect(container).toBeVisible());
});
superset-frontend/src/explore/components/controls/ColorSchemeControl/ColorSchemeLabel.test.tsx on lines 44..47
superset-frontend/src/explore/components/controls/OptionControls/OptionControls.test.tsx on lines 58..61

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

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

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

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

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

Refactorings

Further Reading

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

test('should render', async () => {
  const { container } = setup();
  await waitFor(() => expect(container).toBeVisible());
});
superset-frontend/src/explore/components/controls/ColorSchemeControl/ColorSchemeControl.test.tsx on lines 51..54
superset-frontend/src/explore/components/controls/OptionControls/OptionControls.test.tsx on lines 58..61

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

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

        [
          {
            name: 'show_progress',
            config: {
              type: 'CheckboxControl',
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 144..157
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 158..169
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 170..183
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 185..196
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 197..208
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 236..249
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 250..263
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 265..278
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/controlPanel.tsx on lines 279..292

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

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

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

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

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

Refactorings

Further Reading

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

test('should render', async () => {
  const { container } = setup();
  await waitFor(() => expect(container).toBeVisible());
});
superset-frontend/src/explore/components/controls/ColorSchemeControl/ColorSchemeControl.test.tsx on lines 51..54
superset-frontend/src/explore/components/controls/ColorSchemeControl/ColorSchemeLabel.test.tsx on lines 44..47

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

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

          <div className="control-label">
            {t('END (EXCLUSIVE)')}{' '}
            <InfoTooltipWithTrigger
              tooltip={t('End date excluded from time range')}
              placement="right"
superset-frontend/src/explore/components/controls/DateFilterControl/components/AdvancedFrame.tsx on lines 61..67
superset-frontend/src/explore/components/controls/DateFilterControl/components/AdvancedFrame.tsx on lines 73..79
superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx on lines 146..152

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

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