betagouv/service-national-universel

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

Summary

Maintainability
D
2 days
Test Coverage

File translation.ts has 1245 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 378 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 1 day to fix

      There are no issues that match your filters.

      Category
      Status