LD4P/sinopia_indexing_pipeline

View on GitHub
src/TemplateIndexer.js

Summary

Maintainability
A
3 hrs
Test Coverage
A
96%

Function indexMapping has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static get indexMapping() {
    return {
      properties: {
        id: {
          type: "keyword",
Severity: Major
Found in src/TemplateIndexer.js - About 2 hrs to fix

    Function index has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      async index() {
        const resourceId = this.valueFor(
          "http://sinopia.io/vocabulary/hasResourceId"
        )
        // Don't index base templates (i.e., templates for templates).
    Severity: Minor
    Found in src/TemplateIndexer.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status