owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

Function mergeArrayValue has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    protected function mergeArrayValue(array $configNames, $existingValues, $value, $updateOnly) {
        $configName = \array_shift($configNames);
        if (!\is_array($existingValues)) {
            $existingValues = [];
        }
Severity: Minor
Found in core/Command/Config/System/SetConfig.php - About 55 mins 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

Function removeSubValue has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    protected function removeSubValue($keys, $currentValue, $throwError) {
        $nextKey = \array_shift($keys);

        if (\is_array($currentValue)) {
            if (isset($currentValue[$nextKey])) {
Severity: Minor
Found in core/Command/Config/System/DeleteConfig.php - About 55 mins 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

Function beforeController has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    public function beforeController($controller, $methodName) {
        if ($controller instanceof LoginController && $methodName === 'logout') {
            // Don't block the logout page, to allow canceling the 2FA
            return;
        }
Severity: Minor
Found in core/Middleware/TwoFactorMiddleware.php - About 55 mins 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

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

OC.L10N.register(
    "lib",
    {
    "Username" : "Хэрэглэгчийн нэр",
    "Password" : "Нууц үг",
Severity: Major
Found in lib/l10n/mn.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Afmælisdagar tengiliðar",
    "User disabled" : "Notandi óvirkur",
Severity: Major
Found in apps/dav/l10n/is.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "settings",
    {
    "Authentication error" : "验证错误",
    "Please provide an admin recovery password; otherwise, all user data will be lost." : "请提供管理员恢复密码;否则所有用户数据将会被删除。",
Severity: Major
Found in settings/l10n/zh-Hans.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Verjaardagen contactpersonen",
    "User disabled" : "Gebruiker gedeactiveerd",
Severity: Major
Found in apps/dav/l10n/nl.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "settings",
    {
    "Share" : "Compartir",
    "Cancel" : "Cancelar",
Severity: Major
Found in settings/l10n/es_CL.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Syntymäpäivät",
    "User disabled" : "Käyttäjä poistettu käytöstä",
Severity: Major
Found in apps/dav/l10n/fi_FI.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "File is already shared with %s" : "File đã được chia sẻ với %s",
    "Accept" : "Đồng ý",
Severity: Major
Found in apps/federatedfilesharing/l10n/vi.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Kontakters fødselsdage",
    "User disabled" : "Bruger deaktiveret",
Severity: Major
Found in apps/dav/l10n/da.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "files_external",
    {
    "Personal" : "यक्तिगत",
    "Username" : "प्रयोक्ता का नाम",
Severity: Major
Found in apps/files_external/l10n/hi.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "files_external",
    {
    "Personal" : "వ్యక్తిగతం",
    "Username" : "వాడుకరి పేరు",
Severity: Major
Found in apps/files_external/l10n/te.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "updatenotification",
    {
    "Update notifications" : "ដំណឹង​អំពី​ការ​ធ្វើ​បច្ចុប្បន្នកម្ម",
    "{version} is available. Get more information on how to update." : "មាន​កំណែ {version} ហើយ។ ទទួល​ព័ត៌មាន​បន្ថែម​អំពី​របៀប​ធ្វើ​បច្ចុប្បន្នកម្ម។",
Severity: Major
Found in apps/updatenotification/l10n/km.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Narodeniny kontaktov",
    "User disabled" : "Používateľ je deaktivovaný",
Severity: Major
Found in apps/dav/l10n/sk_SK.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Rojstni dan stika",
    "User disabled" : "Uporabnik je onemogočen",
Severity: Major
Found in apps/dav/l10n/sl.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "settings",
    {
    "Invalid email address" : "Alamat surel tidak benar",
    "Create" : "Buat",
Severity: Major
Found in settings/l10n/id_ID.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "federatedfilesharing",
    {
    "Federated sharing" : "Compartir (federación)",
    "Invalid Federated Cloud ID" : "ID de Nube Federada Inválida",
Severity: Major
Found in apps/federatedfilesharing/l10n/es_MX.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Anniversaris dels contactes",
    "User disabled" : "Utilizaire desactivat",
Severity: Major
Found in apps/dav/l10n/oc.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/dav/l10n/uk.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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

OC.L10N.register(
    "dav",
    {
    "Contact birthdays" : "Дні народження контактів",
    "User disabled" : "Користувач виключений",
Severity: Major
Found in apps/dav/l10n/uk.js and 23 other locations - About 55 mins to fix
apps/dav/l10n/ast.js on lines 1..12
apps/dav/l10n/da.js on lines 1..12
apps/dav/l10n/fi_FI.js on lines 1..12
apps/dav/l10n/is.js on lines 1..12
apps/dav/l10n/ja.js on lines 1..12
apps/dav/l10n/nb_NO.js on lines 1..12
apps/dav/l10n/nl.js on lines 1..12
apps/dav/l10n/oc.js on lines 1..12
apps/dav/l10n/sk_SK.js on lines 1..12
apps/dav/l10n/sl.js on lines 1..12
apps/federatedfilesharing/l10n/es_AR.js on lines 1..12
apps/federatedfilesharing/l10n/es_MX.js on lines 1..12
apps/federatedfilesharing/l10n/vi.js on lines 1..12
apps/files/l10n/fil.js on lines 1..12
apps/files/l10n/ml_IN.js on lines 1..12
apps/files_external/l10n/hi.js on lines 1..12
apps/files_external/l10n/te.js on lines 1..12
apps/systemtags/l10n/lt_LT.js on lines 1..12
apps/updatenotification/l10n/km.js on lines 1..12
lib/l10n/mn.js on lines 1..12
settings/l10n/es_CL.js on lines 1..12
settings/l10n/id_ID.js on lines 1..12
settings/l10n/zh-Hans.js on lines 1..12

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

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