phodal/congee

View on GitHub

Showing 421 of 421 total issues

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

CKEDITOR.plugins.setLang('autosave', 'de', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Automatisch gespeichert',
    loadSavedContent: 'Es wurde ein autom. Gespeicherter Inhalt gefunden (vom "{0}"). Wollen Sie den Inhalt vergleichen, um dann entscheiden zu können ob der Inhalt geladen werden soll?',
    title: 'Temp. Gespeichert Inhalt vergleichen',
Severity: Major
Found in ckeditor/plugins/autosave/lang/de.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["fa"] = {
        cancelText: "لغو",
        chooseText: "انتخاب"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-fa.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fi.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ja.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ru.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-sv.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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

CKEDITOR.plugins.setLang('autosave', 'pl', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Auto Saved',
    loadSavedContent: 'Istnieje automatycznie zapisana wersja zawartości (z "{0}"). Otworzyć okno porównawcze, w którym można zadecydować o wczytaniu automatycznie zapisanej zawartości?',
    title: 'Porównanie tymczasowo zapisanej zawartości z zawartością wczytaną w witrynie',
Severity: Major
Found in ckeditor/plugins/autosave/lang/pl.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'ja', {
    dateFormat: 'LLL',
    autoSaveMessage: '自動保存されました',
    loadSavedContent: '投稿途中だった内容があります({0})。現在保存されている投稿と比較しますか?',
    title: 'Compare auto-saved content with that loaded from the website',
Severity: Major
Found in ckeditor/plugins/autosave/lang/ja.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'fr', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Sauvegarde automatique',
    loadSavedContent: 'Une précédente version a été sauvegardée le "{0}". Voulez-vous l\'afficher et la comparer avec le document en cours ?',
    title: 'Comparaison du document en cours et du document sauvegardé',
Severity: Major
Found in ckeditor/plugins/autosave/lang/fr.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'zh', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Auto Saved',
    loadSavedContent: 'An auto-saved version of this content from "{0}" has been found. Would you like to compare content versions and choose which one to load?',
    title: 'Compare auto-saved content with that loaded from the website',
Severity: Major
Found in ckeditor/plugins/autosave/lang/zh.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'en', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Auto Saved',
    loadSavedContent: 'An auto-saved version of this content from "{0}" has been found. Would you like to compare content versions and choose which one to load?',
    title: 'Compare auto-saved content with that loaded from the website',
Severity: Major
Found in ckeditor/plugins/autosave/lang/en.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'cs', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Automaticky uloženo',
    loadSavedContent: 'byla nalezena automaticky uložená verze obsahu ze dne "{0}". Chcete porovnat obsah a zvolit si s kterým obsahem chete pracovat?',
    title: 'Porovnejre automaticky uložený obsah s obsahem nahraným z webové stránky',
Severity: Major
Found in ckeditor/plugins/autosave/lang/cs.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'zh-cn', {
    dateFormat: 'LLL',
    autoSaveMessage: '自动保存',
    loadSavedContent: '已经存在这个内容之前保存的版本 "{0}". 你希望比较两个不同的版本并从中选择你想要加载的那个么?',
    title: '比较自动保存的版本',
Severity: Major
Found in ckeditor/plugins/autosave/lang/zh-cn.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["sv"] = {
        cancelText: "Avbryt",
        chooseText: "Välj"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-sv.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fa.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fi.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ja.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ru.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["fi"] = {
        cancelText: "Kumoa",
        chooseText: "Valitse"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-fi.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fa.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ja.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ru.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-sv.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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 init has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    init: function( editor ) {
        // Register the editing dialog.
        CKEDITOR.dialog.add( 'simplebox', this.path + 'dialogs/simplebox.js' );

        // Register the simplebox widget.
Severity: Minor
Found in ckeditor/plugins/widget/dev/assets/simplebox/plugin.js - About 1 hr to fix

    Function diff has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
    Open

    function diff( o, n ) {
      var ns = new Object();
      var os = new Object();
      
      for ( var i = 0; i < n.length; i++ ) {
    Severity: Minor
    Found in ckeditor/plugins/autosave/js/jsdiff.js - About 1 hr 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 configFromStringAndFormat has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function configFromStringAndFormat(config) {
            // TODO: Move this to another part of the creation flow to prevent circular deps
            if (config._f === utils_hooks__hooks.ISO_8601) {
                configFromISO(config);
                return;
    Severity: Minor
    Found in ckeditor/plugins/autosave/js/moment.js - About 1 hr to fix

      Function find_longest_match has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              this.find_longest_match = function (alo, ahi, blo, bhi) {
                  var a = this.a;
                  var b = this.b;
                  var b2j = this.b2j;
                  var isbjunk = this.isbjunk;
      Severity: Minor
      Found in ckeditor/plugins/autosave/js/difflib.js - About 1 hr to fix

        Function enable has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    enable: function () {
                        enabledRegistry[this.map.id] = this;
                        this.enabled = true;
        
                        //Set flag mentioning that the module is enabling,
        Severity: Minor
        Found in scripts/libs/require.js - About 1 hr to fix

          Function wrapElement has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  wrapElement: function( element, widgetName ) {
                      var wrapper = null,
                          widgetDef,
                          isInline;
          
          
          Severity: Minor
          Found in ckeditor/plugins/widget/plugin.js - About 1 hr to fix

            Function markup has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                markup = (function () {
            
                    // IE does not support gradients with multiple stops, so we need to simulate
                    //  that for the rainbow slider with 8 divs that each have a single gradient
                    var gradientFix = "";
            Severity: Minor
            Found in scripts/spectrum/spectrum.js - About 1 hr to fix

              Function get_matching_blocks has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      this.get_matching_blocks = function () {
                          if (this.matching_blocks != null) return this.matching_blocks;
                          var la = this.a.length;
                          var lb = this.b.length;
                  
              Severity: Minor
              Found in ckeditor/plugins/autosave/js/difflib.js - About 1 hr to fix

                Function stateUpdater has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function stateUpdater( widgetsRepo ) {
                        var currentlySelected = widgetsRepo.selected,
                            toBeSelected = [],
                            toBeDeselected = currentlySelected.slice( 0 ),
                            focused = null;
                Severity: Minor
                Found in ckeditor/plugins/widget/plugin.js - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language