rofrischmann/fela

View on GitHub
packages/fela-bindings/src/connectFactory.js

Summary

Maintainability
C
1 day
Test Coverage

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

export default function connectFactory(
  BaseComponent,
  createElement,
  RendererContext,
  ThemeContext
Severity: Major
Found in packages/fela-bindings/src/connectFactory.js - About 3 hrs to fix

    Function connect has 93 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      return function connect(rules, config = {}) {
        const connectConfig = {
          ...defaultConfig,
          ...config,
        }
    Severity: Major
    Found in packages/fela-bindings/src/connectFactory.js - About 3 hrs to fix

      Function render has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              render() {
                const { extend, _felaRules, ...otherProps } = this.props
      
                const allRules = [rules]
                if (_felaRules) {
      Severity: Major
      Found in packages/fela-bindings/src/connectFactory.js - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status