ant-design/ant-design

View on GitHub
components/upload/style/list.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function genListStyle has 95 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const genListStyle: GenerateStyle<UploadToken> = (token) => {
  const { componentCls, antCls, iconCls, fontSize, lineHeight, calc } = token;
  const itemCls = `${componentCls}-list-item`;
  const actionsCls = `${itemCls}-actions`;
  const actionCls = `${itemCls}-action`;
Severity: Major
Found in components/upload/style/list.ts - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status