ant-design/ant-design

View on GitHub
.dumi/theme/common/styles/Demo.tsx

Summary

Maintainability
D
1 day
Test Coverage

Function GlobalDemoStyles has 308 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

  const { antCls, iconCls } = token;

Severity: Major
Found in .dumi/theme/common/styles/Demo.tsx - About 1 day to fix

    File Demo.tsx has 314 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import React from 'react';
    import { css, Global } from '@emotion/react';
    import { useTheme } from 'antd-style';
    
    const GlobalDemoStyles: React.FC = () => {
    Severity: Minor
    Found in .dumi/theme/common/styles/Demo.tsx - About 3 hrs to fix

      There are no issues that match your filters.

      Category
      Status