ant-design/ant-design

View on GitHub
.dumi/theme/common/Color/ColorStyle.tsx

Summary

Maintainability
C
1 day
Test Coverage

Function ColorStyle has 225 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const ColorStyle: React.FC = () => {
  const token = useTheme();

  const makePalette = (color: string, index: number = 1): string => {
    if (index <= 10) {
Severity: Major
Found in .dumi/theme/common/Color/ColorStyle.tsx - About 1 day to fix

    There are no issues that match your filters.

    Category
    Status