elninotech/uppload

View on GitHub

Showing 37 of 92 total issues

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const fr = {
  upload: "Télécharger",
  cancel: "Annuler",
  close: "Fermer",
  uploading: "Télécharger...",
Severity: Major
Found in src/i18n/fr.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const ro = {
  upload: "Încărcare",
  cancel: "Anulare",
  close: "Închide",
  uploading: "Încărcare...",
Severity: Major
Found in src/i18n/ro.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const fa = {
    upload: "آپلود",
    cancel: "لغو",
    close: "بستن",
    uploading: "در حال بارگذاری...",
Severity: Major
Found in src/i18n/fa.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const hi = {
  upload: "अपलोड",
  cancel: "रद्द करना",
  close: "बंद करे",
  uploading: "अपलोड हो रहा है...",
Severity: Major
Found in src/i18n/hi.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const uk = {
  upload: "Завантажити",
  cancel: "Відмінити",
  close: "Закрити",
  uploading: "Завантаження...",
Severity: Major
Found in src/i18n/uk.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const es = {
  upload: "Subir",
  cancel: "Cancelar",
  close: "Cerrar",
  uploading: "Subiendo...",
Severity: Major
Found in src/i18n/es.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const tr = {
  upload: "Yükleme",
  cancel: "İptal etmek",
  close: "Kapat",
  uploading: "Yükle ...",
Severity: Major
Found in src/i18n/tr.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const pt = {
  upload: "Enviar",
  cancel: "Cancelar",
  close: "Fechar",
  uploading: "Enviando...",
Severity: Major
Found in src/i18n/pt.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const zhTW = {
  upload: "上載",
  cancel: "取消",
  close: "關",
  uploading: "上傳中...",
Severity: Major
Found in src/i18n/zh-TW.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const it = {
  upload: "Caricare",
  cancel: "Annulla",
  close: "Vicino",
  uploading: "Carica ...",
Severity: Major
Found in src/i18n/it.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const de = {
  upload: "Hochladen",
  cancel: "Abbrechen",
  close: "Schließen",
  uploading: "Hochladen ...",
Severity: Major
Found in src/i18n/de.ts and 11 other locations - About 4 days to fix
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/nl.ts on lines 1..185
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

export const nl = {
  upload: "Uploaden",
  cancel: "Annuleren",
  close: "Sluiten",
  uploading: "Uploaden...",
Severity: Major
Found in src/i18n/nl.ts and 11 other locations - About 4 days to fix
src/i18n/de.ts on lines 1..184
src/i18n/es.ts on lines 1..189
src/i18n/fa.ts on lines 1..188
src/i18n/fr.ts on lines 1..186
src/i18n/hi.ts on lines 1..184
src/i18n/it.ts on lines 1..186
src/i18n/pt.ts on lines 1..189
src/i18n/ro.ts on lines 1..189
src/i18n/tr.ts on lines 1..184
src/i18n/uk.ts on lines 1..189
src/i18n/zh-TW.ts on lines 1..189

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 732.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    requestAnimationFrame(() => {
      if (typeof activeService.handlers === "function")
        activeService.handlers({
          next: this.next.bind(this),
          upload: this.upload.bind(this),
Severity: Major
Found in src/uppload.ts and 1 other location - About 4 hrs to fix
src/uppload.ts on lines 507..518

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 133.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    requestAnimationFrame(() => {
      if (typeof activeEffect.handlers === "function")
        activeEffect.handlers({
          next: this.next.bind(this),
          upload: this.upload.bind(this),
Severity: Major
Found in src/uppload.ts and 1 other location - About 4 hrs to fix
src/uppload.ts on lines 477..488

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 133.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            this.lang.effects &&
            this.lang.effects[effect.name] &&
            this.lang.effects[effect.name].title
              ? this.lang.effects[effect.name].title
              : effect.name
Severity: Major
Found in src/uppload.ts and 1 other location - About 2 hrs to fix
src/uppload.ts on lines 357..361

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 83.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

              this.lang.services &&
              this.lang.services[service.name] &&
              this.lang.services[service.name].title
                ? this.lang.services[service.name].title
                : service.name
Severity: Major
Found in src/uppload.ts and 1 other location - About 2 hrs to fix
src/uppload.ts on lines 390..394

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 83.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            translate(`services.${this.name}.placeholder`) ||
            translate("services.microlink.placeholder", [
              translate(`services.${this.name}.title`) || this.name,
              translate(`services.${this.name}.type`) ||
                translate("services.microlink.type"),
Severity: Major
Found in src/helpers/microlink.ts and 1 other location - About 2 hrs to fix
src/helpers/microlink.ts on lines 29..34

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            translate(`services.${this.name}.label`) ||
            translate("services.microlink.label", [
              translate(`services.${this.name}.title`) || this.name,
              translate(`services.${this.name}.type`) ||
                translate("services.microlink.type"),
Severity: Major
Found in src/helpers/microlink.ts and 1 other location - About 2 hrs to fix
src/helpers/microlink.ts on lines 37..42

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    if (file)
      params.next({
        blob: file,
        size: file.size,
        type: file.type,
Severity: Major
Found in src/services/local.ts and 1 other location - About 1 hr to fix
src/services/local.ts on lines 142..151

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 71.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    if (file)
      params.next({
        blob: file,
        size: file.size,
        type: file.type,
Severity: Major
Found in src/services/local.ts and 1 other location - About 1 hr to fix
src/services/local.ts on lines 87..96

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 71.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language