airbnb/caravel

View on GitHub
superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts

Summary

Maintainability
B
6 hrs
Test Coverage

File countries.ts has 420 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file

    Avoid too many return statements within this function.
    Open

      return [
        x,
        x
          .split('_')
          .map(e => e[0].toUpperCase() + e.slice(1))

      There are no issues that match your filters.

      Category
      Status