riot/compiler

View on GitHub
src/generators/javascript/utils.js

Summary

Maintainability
A
1 hr
Test Coverage

Function addComponentInterfaceToExportedObject has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function addComponentInterfaceToExportedObject(ast, componentInterface) {
  const body = getProgramBody(ast)
  const RiotComponentWrapperImportSpecifier = builders.importSpecifier(
    builders.identifier(RIOT_INTERFACE_WRAPPER_NAME),
  )
Severity: Minor
Found in src/generators/javascript/utils.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status