phodal/congee

View on GitHub

Showing 421 of 421 total issues

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

CKEDITOR.plugins.setLang( 'templates', 'is', {
    button: 'Sniðmát',
    emptyListMsg: '(Ekkert sniðmát er skilgreint!)',
    insertOption: 'Skipta út raunverulegu innihaldi',
    options: 'Template Options', // MISSING
Severity: Major
Found in ckeditor/plugins/templates/lang/is.js and 4 other locations - About 50 mins to fix
ckeditor/plugins/templates/lang/en-au.js on lines 5..12
ckeditor/plugins/templates/lang/en-ca.js on lines 5..12
ckeditor/plugins/templates/lang/hi.js on lines 5..12
ckeditor/plugins/templates/lang/mn.js on lines 5..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 52.

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

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

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

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

Refactorings

Further Reading

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

CKEDITOR.plugins.setLang( 'templates', 'mn', {
    button: 'Загварууд',
    emptyListMsg: '(Загвар тодорхойлогдоогүй байна)',
    insertOption: 'Одоогийн агууллагыг дарж бичих',
    options: 'Template Options', // MISSING
Severity: Major
Found in ckeditor/plugins/templates/lang/mn.js and 4 other locations - About 50 mins to fix
ckeditor/plugins/templates/lang/en-au.js on lines 5..12
ckeditor/plugins/templates/lang/en-ca.js on lines 5..12
ckeditor/plugins/templates/lang/hi.js on lines 5..12
ckeditor/plugins/templates/lang/is.js on lines 5..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 52.

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

                    editor.widgets.on( 'widgetBlurred', function( evt ) {
                        log( 'widget blurred (id: ' + evt.data.widget.id + ')' );
                    }, null, null, 1 );
Severity: Minor
Found in ckeditor/plugins/widget/dev/console.js and 1 other location - About 50 mins to fix
ckeditor/plugins/widget/dev/console.js on lines 96..98

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

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

                    editor.widgets.on( 'widgetFocused', function( evt ) {
                        log( 'widget focused (id: ' + evt.data.widget.id + ')' );
                    }, null, null, 1 );
Severity: Minor
Found in ckeditor/plugins/widget/dev/console.js and 1 other location - About 50 mins to fix
ckeditor/plugins/widget/dev/console.js on lines 100..102

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

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

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

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

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

Refactorings

Further Reading

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

CKEDITOR.plugins.setLang( 'templates', 'hi', {
    button: 'टॅम्प्लेट',
    emptyListMsg: '(कोई टॅम्प्लेट डिफ़ाइन नहीं किया गया है)',
    insertOption: 'मूल शब्दों को बदलें',
    options: 'Template Options', // MISSING
Severity: Major
Found in ckeditor/plugins/templates/lang/hi.js and 4 other locations - About 50 mins to fix
ckeditor/plugins/templates/lang/en-au.js on lines 5..12
ckeditor/plugins/templates/lang/en-ca.js on lines 5..12
ckeditor/plugins/templates/lang/is.js on lines 5..12
ckeditor/plugins/templates/lang/mn.js on lines 5..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 52.

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

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

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

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

Refactorings

Further Reading

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

CKEDITOR.plugins.setLang( 'templates', 'en-au', {
    button: 'Templates',
    emptyListMsg: '(No templates defined)',
    insertOption: 'Replace actual contents',
    options: 'Template Options', // MISSING
Severity: Major
Found in ckeditor/plugins/templates/lang/en-au.js and 4 other locations - About 50 mins to fix
ckeditor/plugins/templates/lang/en-ca.js on lines 5..12
ckeditor/plugins/templates/lang/hi.js on lines 5..12
ckeditor/plugins/templates/lang/is.js on lines 5..12
ckeditor/plugins/templates/lang/mn.js on lines 5..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 52.

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

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

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

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

Refactorings

Further Reading

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

CKEDITOR.plugins.setLang( 'templates', 'en-ca', {
    button: 'Templates',
    emptyListMsg: '(No templates defined)',
    insertOption: 'Replace actual contents',
    options: 'Template Options', // MISSING
Severity: Major
Found in ckeditor/plugins/templates/lang/en-ca.js and 4 other locations - About 50 mins to fix
ckeditor/plugins/templates/lang/en-au.js on lines 5..12
ckeditor/plugins/templates/lang/hi.js on lines 5..12
ckeditor/plugins/templates/lang/is.js on lines 5..12
ckeditor/plugins/templates/lang/mn.js on lines 5..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 52.

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

                autoSaveKey = editor.config.autosave_SaveKey != null ? editor.config.autosave_SaveKey : 'autosave_' + window.location + "_" + editor.id;
Severity: Minor
Found in ckeditor/plugins/autosave/plugin.js and 1 other location - About 50 mins to fix
ckeditor/plugins/autosave/plugin.js on lines 37..37

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

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

        var autoSaveKey = editorInstance.config.autosave_SaveKey != null ? editorInstance.config.autosave_SaveKey : 'autosave_' + window.location + "_" + editorInstance.id;
Severity: Minor
Found in ckeditor/plugins/autosave/plugin.js and 1 other location - About 50 mins to fix
ckeditor/plugins/autosave/plugin.js on lines 80..80

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

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

Avoid deeply nested control flow statements.
Open

          if (!loose) loose = next;
Severity: Major
Found in ckeditor/plugins/markdown/js/marked.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                } else if ( groupStarted ) {
                                    output.push( '</span>' );
                                    groupStarted = 0;
                                }
    Severity: Major
    Found in ckeditor/plugins/floating-tools/plugin.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              for (i = 0 ; i < context_numBits ; i++) {
                                  context_data_val = (context_data_val << 1) | value;
                                  if (context_data_position == bitsPerChar - 1) {
                                      context_data_position = 0;
                                      context_data.push(getCharFromInt(context_data_val));
      Severity: Major
      Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                  if (bull !== b && !(bull.length > 1 && b.length > 1)) {
                    src = cap.slice(i + 1).join('\n') + src;
                    i = l - 1;
                  }
        Severity: Major
        Found in ckeditor/plugins/markdown/js/marked.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (context_data_position == bitsPerChar - 1) {
                                      context_data_position = 0;
                                      context_data.push(getCharFromInt(context_data_val));
                                      context_data_val = 0;
                                  } else {
          Severity: Major
          Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if (err) {
                                            err.requireMap = this.map;
                                            err.requireModules = this.map.isDefine ? [this.map.id] : null;
                                            err.requireType = this.map.isDefine ? 'define' : 'require';
                                            return onError((this.error = err));
            Severity: Major
            Found in scripts/libs/require.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if (context_data_position == bitsPerChar - 1) {
                                          context_data_position = 0;
                                          context_data.push(getCharFromInt(context_data_val));
                                          context_data_val = 0;
                                      } else {
              Severity: Major
              Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                if ( index > 0 ) {
                                                    toolbarObj.previous = toolbars[ index - 1 ];
                                                    toolbarObj.previous.next = toolbarObj;
                                                }
                Severity: Major
                Found in ckeditor/plugins/floating-tools/plugin.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if (context_data_position == bitsPerChar - 1) {
                                              context_data_position = 0;
                                              context_data.push(getCharFromInt(context_data_val));
                                              context_data_val = 0;
                                          } else {
                  Severity: Major
                  Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                if (mapValue) {
                                                    mapValue = getOwn(mapValue, nameSegment);
                                                    if (mapValue) {
                                                        //Match, update name to the new value.
                                                        foundMap = mapValue;
                    Severity: Major
                    Found in scripts/libs/require.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  if (this.map.isDefine && exports === undefined) {
                                                      cjsModule = this.module;
                                                      if (cjsModule) {
                                                          exports = cjsModule.exports;
                                                      } else if (this.usingExports) {
                      Severity: Major
                      Found in scripts/libs/require.js - About 45 mins to fix
                        Severity
                        Category
                        Status
                        Source
                        Language