AndrewWalsh/at-your-service

View on GitHub
demo/src/AnimationEffect.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function RenderBox has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const RenderBox = (props: Item) => {
  const height = `${Math.max(props.height, MIN_DIMENSION)}px`;
  const width = `${Math.max(props.width, MIN_DIMENSION)}px`;
  const bgs: Array<string> = [
    COLOR_WHITE,
Severity: Major
Found in demo/src/AnimationEffect.tsx - About 2 hrs to fix

    Function AnimationEffect has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function AnimationEffect(props: {
      bg: typeof COLOR_PRIMARY | typeof COLOR_SECONDARY;
    }) {
      const [itemsFirst, setItemsFirst] = useState<Array<Item>>([]);
    
    
    Severity: Major
    Found in demo/src/AnimationEffect.tsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status