airbnb/caravel

View on GitHub

Showing 3,672 of 6,072 total issues

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

export default class ContourChartPlugin extends ChartPlugin {
  constructor() {
    super({
      loadChart: () => import('./Contour'),
      controlPanel,
superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Grid/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Heatmap/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Path/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Scatter/index.ts on lines 46..55
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Screengrid/index.ts on lines 38..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 53.

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

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

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

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

Refactorings

Further Reading

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

export default class HexChartPlugin extends ChartPlugin {
  constructor() {
    super({
      loadChart: () => import('./Hex'),
      controlPanel,
superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Contour/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Grid/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Heatmap/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Path/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Scatter/index.ts on lines 46..55
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Screengrid/index.ts on lines 38..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 53.

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

test('should render', () => {
  const { container } = render(
    <DatasetNotFoundErrorMessage {...mockedProps} />,
  );
  expect(container).toBeInTheDocument();
superset-frontend/src/components/Badge/Badge.test.tsx on lines 27..30
superset-frontend/src/components/Datasource/Field.test.tsx on lines 34..37
superset-frontend/src/components/ErrorMessage/BasicErrorAlert.test.tsx on lines 38..41
superset-frontend/src/components/ErrorMessage/ErrorAlert.test.tsx on lines 56..59
superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.test.tsx on lines 41..44
superset-frontend/src/components/ErrorMessage/IssueCode.test.tsx on lines 28..31
superset-frontend/src/components/ErrorMessage/ParameterErrorMessage.test.tsx on lines 57..60
superset-frontend/src/components/ErrorMessage/TimeoutErrorMessage.test.tsx on lines 56..59
superset-frontend/src/components/ModalTrigger/ModalTrigger.test.tsx on lines 28..31
superset-frontend/src/components/ProgressBar/ProgressBar.test.tsx on lines 26..29
superset-frontend/src/components/Slider/Slider.test.tsx on lines 29..32
superset-frontend/src/components/TableView/TableView.test.tsx on lines 46..49
superset-frontend/src/components/Tags/Tag.test.tsx on lines 32..35
superset-frontend/src/components/Tags/TagsList.test.tsx on lines 56..59
superset-frontend/src/explore/components/controls/TextControl/TextControl.test.tsx on lines 31..34
superset-frontend/src/features/tags/TagModal.test.tsx on lines 34..37

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

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

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

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

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

Refactorings

Further Reading

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

export default class HeatmapChartPlugin extends ChartPlugin {
  constructor() {
    super({
      loadChart: () => import('./Heatmap'),
      controlPanel,
superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Contour/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Grid/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Path/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Scatter/index.ts on lines 46..55
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Screengrid/index.ts on lines 38..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 53.

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

      const {
        id,
        dashboard_title,
        slug,
        certified_by,
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts on lines 89..99
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts on lines 98..108
superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts on lines 159..169
superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx on lines 34..44
superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts on lines 75..85
superset-frontend/src/filters/components/Range/transformProps.ts on lines 23..33
superset-frontend/src/filters/components/Time/transformProps.ts on lines 24..34

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

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

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

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

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

Refactorings

Further Reading

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

export default class MultiChartPlugin extends ChartPlugin {
  constructor() {
    super({
      loadChart: () => import('./Multi'),
      controlPanel,
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Contour/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Grid/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Heatmap/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Path/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Scatter/index.ts on lines 46..55
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Screengrid/index.ts on lines 38..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 53.

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

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

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

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

Refactorings

Further Reading

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

export default class ArcChartPlugin extends ChartPlugin {
  constructor() {
    super({
      loadChart: () => import('./Arc'),
      controlPanel,
superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Contour/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Grid/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Heatmap/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Path/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Scatter/index.ts on lines 46..55
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Screengrid/index.ts on lines 38..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 53.

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

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

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

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

Refactorings

Further Reading

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

export default class PathChartPlugin extends ChartPlugin {
  constructor() {
    super({
      loadChart: () => import('./Path'),
      controlPanel,
superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/index.ts on lines 36..45
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Contour/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Grid/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Heatmap/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Polygon/index.ts on lines 38..47
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Scatter/index.ts on lines 46..55
superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Screengrid/index.ts on lines 38..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 53.

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

  const {
    formData,
    height,
    hooks,
    queriesData,
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts on lines 89..99
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts on lines 98..108
superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts on lines 159..169
superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx on lines 34..44
superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts on lines 75..85
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx on lines 165..175
superset-frontend/src/filters/components/Range/transformProps.ts on lines 23..33

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

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

  const {
    formData,
    height,
    hooks,
    filterState,
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts on lines 89..99
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts on lines 98..108
superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts on lines 159..169
superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx on lines 34..44
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx on lines 165..175
superset-frontend/src/filters/components/Range/transformProps.ts on lines 23..33
superset-frontend/src/filters/components/Time/transformProps.ts on lines 24..34

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

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

  const {
    width,
    height,
    formData,
    queriesData,
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts on lines 89..99
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts on lines 98..108
superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx on lines 34..44
superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts on lines 75..85
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx on lines 165..175
superset-frontend/src/filters/components/Range/transformProps.ts on lines 23..33
superset-frontend/src/filters/components/Time/transformProps.ts on lines 24..34

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

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

  const {
    formData,
    height,
    hooks,
    filterState,
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts on lines 98..108
superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts on lines 159..169
superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx on lines 34..44
superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts on lines 75..85
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx on lines 165..175
superset-frontend/src/filters/components/Range/transformProps.ts on lines 23..33
superset-frontend/src/filters/components/Time/transformProps.ts on lines 24..34

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

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

  const {
    width,
    height,
    formData,
    queriesData,
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts on lines 89..99
superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts on lines 159..169
superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx on lines 34..44
superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts on lines 75..85
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx on lines 165..175
superset-frontend/src/filters/components/Range/transformProps.ts on lines 23..33
superset-frontend/src/filters/components/Time/transformProps.ts on lines 24..34

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

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

const {
  donut,
  innerRadius,
  labelsOutside,
  labelType,
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts on lines 89..99
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts on lines 98..108
superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts on lines 159..169
superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts on lines 75..85
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx on lines 165..175
superset-frontend/src/filters/components/Range/transformProps.ts on lines 23..33
superset-frontend/src/filters/components/Time/transformProps.ts on lines 24..34

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

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

  const {
    formData,
    height,
    hooks,
    queriesData,
superset-frontend/plugins/plugin-chart-echarts/src/Funnel/transformProps.ts on lines 89..99
superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts on lines 98..108
superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts on lines 159..169
superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx on lines 34..44
superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts on lines 75..85
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx on lines 165..175
superset-frontend/src/filters/components/Time/transformProps.ts on lines 24..34

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

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

  {
    type: 'organic',
    region: 'Sacramento',
    'AVG(averageprice)__mean': 1.972871794871795,
    'AVG(averageprice)__median': 1.9875,
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 33..44
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 69..80
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 93..104
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 129..140

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

  {
    type: 'organic',
    region: 'San Francisco',
    'AVG(averageprice)__mean': 2.213615384615385,
    'AVG(averageprice)__median': 2.275,
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 33..44
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 69..80
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 93..104
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 117..128

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

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

  {
    type: 'organic',
    region: 'Hartford Springfield',
    'AVG(averageprice)__mean': 2.231141025641026,
    'AVG(averageprice)__median': 2.265,
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 69..80
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 93..104
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 117..128
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 129..140

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

  {
    type: 'organic',
    region: 'Northeast',
    'AVG(averageprice)__mean': 1.8608333333333336,
    'AVG(averageprice)__median': 1.868,
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 33..44
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 93..104
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 117..128
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 129..140

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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

  {
    type: 'organic',
    region: 'Philadelphia',
    'AVG(averageprice)__mean': 1.8673589743589747,
    'AVG(averageprice)__median': 1.85,
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 33..44
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 69..80
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 117..128
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/plugin-chart-echarts/BoxPlot/data.ts on lines 129..140

Duplicated Code

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

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

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

Tuning

This issue has a mass of 53.

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