owncloud/core

View on GitHub

Showing 4,482 of 4,482 total issues

Function getItems has a Cognitive Complexity of 275 (exceeds 5 allowed). Consider refactoring.
Open

    public static function getItems(
        $itemType,
        $item = null,
        $shareType = null,
        $shareWith = null,
Severity: Minor
Found in lib/private/Share/Share.php - About 5 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File js.js has 2043 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Disable console output unless DEBUG mode is enabled.
 * Add
 *      'debug' => true,
 * To the definition of $CONFIG in config/config.php to enable debug mode.
Severity: Major
Found in core/js/js.js - About 5 days to fix

    Method changeSchema has 984 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function changeSchema(Schema $schema, array $options) {
            $prefix = $options['tablePrefix'];
    
            if (!$schema->hasTable("{$prefix}addressbookchanges")) {
                $addressBookChangesTable = $schema->createTable("{$prefix}addressbookchanges");
    Severity: Major
    Found in core/Migrations/Version20170101010100.php - About 4 days to fix

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

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Das Server-zu-Server-Teilen ist auf diesem Server nicht aktiviert",
          "The mountpoint name contains invalid characters." : "Der Name des Einhängepunktes enthält ungültige Zeichen.",
      Severity: Major
      Found in apps/files_sharing/l10n/de_DE.js and 6 other locations - About 4 days to fix
      apps/files_sharing/l10n/de.js on lines 1..157
      apps/files_sharing/l10n/en_GB.js on lines 1..157
      apps/files_sharing/l10n/pt_BR.js on lines 1..157
      apps/files_sharing/l10n/ru.js on lines 1..157
      apps/files_sharing/l10n/sq.js on lines 1..157
      apps/files_sharing/l10n/tr.js on lines 1..157

      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 778.

      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 7 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Ndarja mes shërbyesish s’është e aktivizuar në këtë shërbyes",
          "The mountpoint name contains invalid characters." : "Emri i pikës së montimit përmban shenja të pavlefshme.",
      Severity: Major
      Found in apps/files_sharing/l10n/sq.js and 6 other locations - About 4 days to fix
      apps/files_sharing/l10n/de.js on lines 1..157
      apps/files_sharing/l10n/de_DE.js on lines 1..157
      apps/files_sharing/l10n/en_GB.js on lines 1..157
      apps/files_sharing/l10n/pt_BR.js on lines 1..157
      apps/files_sharing/l10n/ru.js on lines 1..157
      apps/files_sharing/l10n/tr.js on lines 1..157

      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 778.

      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 7 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Sunucudan sunucuya paylaşım bu sunucuda etkin değil",
          "The mountpoint name contains invalid characters." : "Bağlama noktası adı geçersiz karakterler içeriyor.",
      Severity: Major
      Found in apps/files_sharing/l10n/tr.js and 6 other locations - About 4 days to fix
      apps/files_sharing/l10n/de.js on lines 1..157
      apps/files_sharing/l10n/de_DE.js on lines 1..157
      apps/files_sharing/l10n/en_GB.js on lines 1..157
      apps/files_sharing/l10n/pt_BR.js on lines 1..157
      apps/files_sharing/l10n/ru.js on lines 1..157
      apps/files_sharing/l10n/sq.js on lines 1..157

      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 778.

      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 7 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Compartilhamento de servidor para servidor não está habilitado no servidor",
          "The mountpoint name contains invalid characters." : "O nome do ponto de montagem contém caracteres inválidos.",
      Severity: Major
      Found in apps/files_sharing/l10n/pt_BR.js and 6 other locations - About 4 days to fix
      apps/files_sharing/l10n/de.js on lines 1..157
      apps/files_sharing/l10n/de_DE.js on lines 1..157
      apps/files_sharing/l10n/en_GB.js on lines 1..157
      apps/files_sharing/l10n/ru.js on lines 1..157
      apps/files_sharing/l10n/sq.js on lines 1..157
      apps/files_sharing/l10n/tr.js on lines 1..157

      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 778.

      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 7 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "На данном сервере выключено межсерверное предоставление общего доступа",
          "The mountpoint name contains invalid characters." : "Имя точки монтирования содержит недопустимые символы.",
      Severity: Major
      Found in apps/files_sharing/l10n/ru.js and 6 other locations - About 4 days to fix
      apps/files_sharing/l10n/de.js on lines 1..157
      apps/files_sharing/l10n/de_DE.js on lines 1..157
      apps/files_sharing/l10n/en_GB.js on lines 1..157
      apps/files_sharing/l10n/pt_BR.js on lines 1..157
      apps/files_sharing/l10n/sq.js on lines 1..157
      apps/files_sharing/l10n/tr.js on lines 1..157

      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 778.

      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 7 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Das Server-zu-Server-Teilen ist auf diesem Server nicht aktiviert",
          "The mountpoint name contains invalid characters." : "Der Name des Einhängepunktes enthält ungültige Zeichen.",
      Severity: Major
      Found in apps/files_sharing/l10n/de.js and 6 other locations - About 4 days to fix
      apps/files_sharing/l10n/de_DE.js on lines 1..157
      apps/files_sharing/l10n/en_GB.js on lines 1..157
      apps/files_sharing/l10n/pt_BR.js on lines 1..157
      apps/files_sharing/l10n/ru.js on lines 1..157
      apps/files_sharing/l10n/sq.js on lines 1..157
      apps/files_sharing/l10n/tr.js on lines 1..157

      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 778.

      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 7 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Server to server sharing is not enabled on this server",
          "The mountpoint name contains invalid characters." : "The mountpoint name contains invalid characters.",
      Severity: Major
      Found in apps/files_sharing/l10n/en_GB.js and 6 other locations - About 4 days to fix
      apps/files_sharing/l10n/de.js on lines 1..157
      apps/files_sharing/l10n/de_DE.js on lines 1..157
      apps/files_sharing/l10n/pt_BR.js on lines 1..157
      apps/files_sharing/l10n/ru.js on lines 1..157
      apps/files_sharing/l10n/sq.js on lines 1..157
      apps/files_sharing/l10n/tr.js on lines 1..157

      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 778.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "เซิร์ฟเวอร์ไปยังแชร์เซิร์ฟเวอร์ไม่ได้เปิดใช้งานบนเซิร์ฟเวอร์นี้",
          "The mountpoint name contains invalid characters." : "ชื่อจุดเชื่อมต่อมีตัวอักษรที่ไม่ถูกต้อง",
      Severity: Major
      Found in apps/files_sharing/l10n/th_TH.js and 4 other locations - About 4 days to fix
      apps/files_sharing/l10n/bg_BG.js on lines 1..156
      apps/files_sharing/l10n/es.js on lines 1..156
      apps/files_sharing/l10n/ko.js on lines 1..156
      apps/files_sharing/l10n/zh_CN.js on lines 1..156

      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 773.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "이 서버에서 서버간 공유를 사용할 수 없음",
          "The mountpoint name contains invalid characters." : "마운트 지점 이름에 잘못된 글자가 포함되어 있습니다.",
      Severity: Major
      Found in apps/files_sharing/l10n/ko.js and 4 other locations - About 4 days to fix
      apps/files_sharing/l10n/bg_BG.js on lines 1..156
      apps/files_sharing/l10n/es.js on lines 1..156
      apps/files_sharing/l10n/th_TH.js on lines 1..156
      apps/files_sharing/l10n/zh_CN.js on lines 1..156

      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 773.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Compartir entre servidores no está habilitado en este servidor",
          "The mountpoint name contains invalid characters." : "El punto de montaje contiene caracteres inválidos.",
      Severity: Major
      Found in apps/files_sharing/l10n/es.js and 4 other locations - About 4 days to fix
      apps/files_sharing/l10n/bg_BG.js on lines 1..156
      apps/files_sharing/l10n/ko.js on lines 1..156
      apps/files_sharing/l10n/th_TH.js on lines 1..156
      apps/files_sharing/l10n/zh_CN.js on lines 1..156

      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 773.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "此服务器未启用服务器到服务器分享功能",
          "The mountpoint name contains invalid characters." : "挂载点的名称包含无效字符。",
      Severity: Major
      Found in apps/files_sharing/l10n/zh_CN.js and 4 other locations - About 4 days to fix
      apps/files_sharing/l10n/bg_BG.js on lines 1..156
      apps/files_sharing/l10n/es.js on lines 1..156
      apps/files_sharing/l10n/ko.js on lines 1..156
      apps/files_sharing/l10n/th_TH.js on lines 1..156

      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 773.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files_sharing",
          {
          "Server to server sharing is not enabled on this server" : "Споделянето между сървърите не е разрешено на този сървър",
          "The mountpoint name contains invalid characters." : "Името на точката за монтиране съдържа невалидни символи.",
      Severity: Major
      Found in apps/files_sharing/l10n/bg_BG.js and 4 other locations - About 4 days to fix
      apps/files_sharing/l10n/es.js on lines 1..156
      apps/files_sharing/l10n/ko.js on lines 1..156
      apps/files_sharing/l10n/th_TH.js on lines 1..156
      apps/files_sharing/l10n/zh_CN.js on lines 1..156

      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 773.

      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

      OC.L10N.register(
          "files",
          {
          "Storage is temporarily not available" : "L'archiviazione non è temporaneamente disponibile",
          "Storage invalid" : "Archiviazione non valida",
      Severity: Major
      Found in apps/files/l10n/it.js and 1 other location - About 4 days to fix
      apps/files/l10n/es.js on lines 1..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 772.

      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

      OC.L10N.register(
          "files",
          {
          "Storage is temporarily not available" : "El almacenamiento no se encuentra disponible temporalmente",
          "Storage invalid" : "Almacenamiento inválido",
      Severity: Major
      Found in apps/files/l10n/es.js and 1 other location - About 4 days to fix
      apps/files/l10n/it.js on lines 1..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 772.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files",
          {
          "Storage is temporarily not available" : "Storage is temporarily not available",
          "Storage invalid" : "Storage invalid",
      Severity: Major
      Found in apps/files/l10n/en_GB.js and 4 other locations - About 4 days to fix
      apps/files/l10n/de.js on lines 1..152
      apps/files/l10n/de_DE.js on lines 1..152
      apps/files/l10n/sq.js on lines 1..152
      apps/files/l10n/tr.js on lines 1..152

      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 771.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files",
          {
          "Storage is temporarily not available" : "Depozita është përkohësisht jashtë pune",
          "Storage invalid" : "Depozitë e pavlefshme",
      Severity: Major
      Found in apps/files/l10n/sq.js and 4 other locations - About 4 days to fix
      apps/files/l10n/de.js on lines 1..152
      apps/files/l10n/de_DE.js on lines 1..152
      apps/files/l10n/en_GB.js on lines 1..152
      apps/files/l10n/tr.js on lines 1..152

      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 771.

      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 5 locations. Consider refactoring.
      Open

      OC.L10N.register(
          "files",
          {
          "Storage is temporarily not available" : "Speicher ist vorübergehend nicht verfügbar",
          "Storage invalid" : "Speicher ungültig",
      Severity: Major
      Found in apps/files/l10n/de_DE.js and 4 other locations - About 4 days to fix
      apps/files/l10n/de.js on lines 1..152
      apps/files/l10n/en_GB.js on lines 1..152
      apps/files/l10n/sq.js on lines 1..152
      apps/files/l10n/tr.js on lines 1..152

      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 771.

      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