rescribet/link-redux

View on GitHub
src/__tests__/helpers/fixtures.ts

Summary

Maintainability
C
7 hrs
Test Coverage

Function sFull has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const sFull = (id: NamedNode, attrs: CWOpts = {}): Quadruple[] => {
    const createQuad = (predicate: NamedNode, object: SomeTerm, graph = ld.add) => rdfFactory.quad(
        id,
        predicate,
        object,
Severity: Major
Found in src/__tests__/helpers/fixtures.ts - About 3 hrs to fix

    File fixtures.ts has 268 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import rdfFactory, { NamedNode, Quad, Quadruple, SomeTerm } from "@ontologies/core";
    import * as ld from "@ontologies/ld";
    import * as rdfx from "@ontologies/rdf";
    import * as schema from "@ontologies/schema";
    import * as xsd from "@ontologies/xsd";
    Severity: Minor
    Found in src/__tests__/helpers/fixtures.ts - About 2 hrs to fix

      Function chargeLRS has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function chargeLRS(delta: Quadruple[] = [], subject: SomeNode): TestContext<React.ComponentType<any>> {
          const store = new RDFStore();
          const s = new Schema(store);
          const lrsOpts = {
            mapping: new ComponentStoreTestProxy<React.ComponentType>(s),
      Severity: Major
      Found in src/__tests__/helpers/fixtures.ts - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status