betagouv/service-national-universel

View on GitHub
packages/lib/src/translation.ts

Summary

Maintainability
D
2 days
Test Coverage

File translation.ts has 1239 lines of code (exceeds 700 allowed). Consider refactoring.
Open

import { FUNCTIONAL_ERRORS } from "./constants/functionalErrors";

const translate = (value) => {
  switch (value) {
    case "WAITING_REALISATION":
Severity: Major
Found in packages/lib/src/translation.ts - About 1 day to fix

    Function translate has 372 lines of code (exceeds 200 allowed). Consider refactoring.
    Open

    const translate = (value) => {
      switch (value) {
        case "WAITING_REALISATION":
          return "En attente de réalisation";
        case "NONE":
    Severity: Major
    Found in packages/lib/src/translation.ts - About 7 hrs to fix

      There are no issues that match your filters.

      Category
      Status