ahbeng/NUSMods

View on GitHub
scrapers/nus-v2/src/services/io/elastic.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function createIndex has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function createIndex(client: Client): Promise<Client> {
  try {
    await client.indices.create({
      index: INDEX_NAME,
      body: {
Severity: Major
Found in scrapers/nus-v2/src/services/io/elastic.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status