owncloud/core

View on GitHub

Showing 4,504 of 4,504 total issues

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

OC.L10N.register(
    "files",
    {
    "Close" : "Cau",
    "Upload cancelled." : "Diddymwyd llwytho i fyny.",
Severity: Major
Found in apps/files/l10n/cy_GB.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "タグ",
    "Tagged files" : "タグ済ファイル",
Severity: Major
Found in apps/systemtags/l10n/ja.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Мітки",
    "Tagged files" : "Відмічені файли",
Severity: Major
Found in apps/systemtags/l10n/uk.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Cuvinte cheie",
    "Tagged files" : "Fișiere etichetate",
Severity: Major
Found in apps/systemtags/l10n/ro.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Stikkord",
    "Tagged files" : "Merkede filer",
Severity: Major
Found in apps/systemtags/l10n/nb_NO.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "files",
    {
    "Home" : "அகம்",
    "Close" : "மூடுக",
Severity: Major
Found in apps/files/l10n/ta_LK.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Etiquetes",
    "Tagged files" : "Ficheros marcaos",
Severity: Major
Found in apps/systemtags/l10n/ast.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Etikette",
    "Tagged files" : "Geëtiketteerde lêers",
Severity: Major
Found in apps/systemtags/l10n/af_ZA.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "systemtags",
    {
    "Tags" : "Značky",
    "Tagged files" : "Otagované soubory",
Severity: Major
Found in apps/systemtags/l10n/cs_CZ.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/si_LK.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

OC.L10N.register(
    "files",
    {
    "Close" : "වසන්න",
    "Upload cancelled." : "උඩුගත කිරීම අත් හරින්න ලදී",
Severity: Major
Found in apps/files/l10n/si_LK.js and 19 other locations - About 5 hrs to fix
apps/federatedfilesharing/l10n/eu.js on lines 1..32
apps/federatedfilesharing/l10n/is.js on lines 1..32
apps/federatedfilesharing/l10n/nl.js on lines 1..32
apps/files/l10n/cy_GB.js on lines 1..32
apps/files/l10n/ta_LK.js on lines 1..32
apps/systemtags/l10n/af_ZA.js on lines 1..32
apps/systemtags/l10n/ast.js on lines 1..32
apps/systemtags/l10n/cs_CZ.js on lines 1..32
apps/systemtags/l10n/da.js on lines 1..32
apps/systemtags/l10n/fr.js on lines 1..32
apps/systemtags/l10n/hu_HU.js on lines 1..32
apps/systemtags/l10n/ja.js on lines 1..32
apps/systemtags/l10n/lb.js on lines 1..32
apps/systemtags/l10n/nb_NO.js on lines 1..32
apps/systemtags/l10n/nl.js on lines 1..32
apps/systemtags/l10n/oc.js on lines 1..32
apps/systemtags/l10n/ro.js on lines 1..32
apps/systemtags/l10n/sl.js on lines 1..32
apps/systemtags/l10n/uk.js on lines 1..32

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

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

Function position has 147 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.position = function( options ) {
    if ( !options || !options.of ) {
        return _position.apply( this, arguments );
    }

Severity: Major
Found in core/js/js.js - About 5 hrs to fix

    FailedStorage has 43 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class FailedStorage extends Common {
        /** @var \Exception */
        protected $e;
    
        /**
    Severity: Minor
    Found in lib/private/Files/Storage/FailedStorage.php - About 5 hrs to fix

      Function autocompleteHandler has 145 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              autocompleteHandler: function (search, response) {
                  var view = this;
                  var $loading = this.$el.find('.shareWithLoading');
                  var trimmedSearch = search.term.trim();
                  $loading.removeClass('hidden');
      Severity: Major
      Found in core/js/sharedialogview.js - About 5 hrs to fix

        Function rename has 144 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                rename: function(oldName) {
                    var self = this;
                    var tr, td, input, form;
                    tr = this.findFileEl(oldName);
                    var oldFileInfo = this.files[tr.index()];
        Severity: Major
        Found in apps/files/js/filelist.js - About 5 hrs to fix

          Function registerCoreProviders has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
          Open

              protected function registerCoreProviders() {
                  if ($this->registeredCoreProviders) {
                      return;
                  }
                  $this->registeredCoreProviders = true;
          Severity: Minor
          Found in lib/private/PreviewManager.php - About 5 hrs 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

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

              public function isExpired($timestamp, $quotaExceeded = false) {
                  // No expiration if disabled
                  if (!$this->isEnabled()) {
                      return false;
                  }
          Severity: Major
          Found in apps/files_trashbin/lib/Expiration.php and 1 other location - About 5 hrs to fix
          apps/files_versions/lib/Expiration.php on lines 77..112

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

          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

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

              public function isExpired($timestamp, $quotaExceeded = false) {
                  // No expiration if disabled
                  if (!$this->isEnabled()) {
                      return false;
                  }
          Severity: Major
          Found in apps/files_versions/lib/Expiration.php and 1 other location - About 5 hrs to fix
          apps/files_trashbin/lib/Expiration.php on lines 71..106

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

          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

                  '<span class="icon-loading-small hidden"></span>' +
                  '<ul class="link-shares">' +
                  '{{#each shares}}' +
                  '<li class="link-entry" data-id="{{id}}">' +
                      '<span class="link-entry--icon icon-public-white"></span>' +
          Severity: Major
          Found in core/js/sharedialoglinklistview.js and 1 other location - About 5 hrs to fix
          core/js/sharedialoglinkshareview.js on lines 19..56

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

          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

                  '<div class="error-message-global hidden"></div>' +
                  '<div class="public-link-modal">'+
                      '<div class="public-link-modal--item">' +
                          '<label class="public-link-modal--label">{{linkNameLabel}}</label>' +
                          '<input class="public-link-modal--input" type="text" name="linkName" placeholder="{{namePlaceholder}}" value="{{name}}" maxlength="64" />' +
          Severity: Major
          Found in core/js/sharedialoglinkshareview.js and 1 other location - About 5 hrs to fix
          core/js/sharedialoglinklistview.js on lines 17..54

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

          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

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

          OC.L10N.register(
              "settings",
              {
              "Wrong current password" : "كلمة المرور الحالية خاطئة",
              "The new password cannot be the same as the previous one" : "لا يمكن أن تكون كلمة المرور الجديدة نفس كلمة المرور القديمة",
          Severity: Minor
          Found in settings/l10n/ar.js - About 5 hrs to fix
            Severity
            Category
            Status
            Source
            Language