riot/compiler

View on GitHub
src/generators/template/builder.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function createTagWithBindings has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createTagWithBindings(sourceNode, sourceFile, sourceCode) {
  const bindingsSelector = isRootNode(sourceNode)
    ? null
    : createBindingSelector()
  const cloneNode = createBindingsTag(sourceNode, bindingsSelector)
Severity: Minor
Found in src/generators/template/builder.js - About 1 hr to fix

    Function build has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function build(sourceNode, sourceFile, sourceCode, state) {
      if (!sourceNode)
        panic(
          "Something went wrong with your tag DOM parsing, your tag template can't be created",
        )
    Severity: Minor
    Found in src/generators/template/builder.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status