insideout10/wordlift-plugin-js

View on GitHub
app/admin_files/wp-langs-en.js

Summary

Maintainability
C
1 day
Test Coverage

File wp-langs-en.js has 499 lines of code (exceeds 250 allowed). Consider refactoring.
Open

tinyMCE.addI18n({en:{
common:{
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
apply:"Apply",
insert:"Insert",
Severity: Minor
Found in app/admin_files/wp-langs-en.js - About 1 day to fix

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

    advlist:{
    types:"Types",
    def:"Default",
    lower_alpha:"Lower alpha",
    lower_greek:"Lower greek",
    Severity: Major
    Found in app/admin_files/wp-langs-en.js and 4 other locations - About 1 hr to fix
    app/admin_files/wp-langs-en.js on lines 188..199
    app/lib/TimelineJS.build/build/js/timeline.js on lines 1196..1207
    app/lib/TimelineJS.build/build/js/timeline.js on lines 2715..2726
    app/lib/tinymce/jscripts/tiny_mce/utils/validate.js on lines 75..86

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

    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

    spellchecker:{
    desc:"Toggle spellchecker (Alt + Shift + N)",
    menu:"Spellchecker settings",
    ignore_word:"Ignore word",
    ignore_words:"Ignore all",
    Severity: Major
    Found in app/admin_files/wp-langs-en.js and 4 other locations - About 1 hr to fix
    app/admin_files/wp-langs-en.js on lines 203..214
    app/lib/TimelineJS.build/build/js/timeline.js on lines 1196..1207
    app/lib/TimelineJS.build/build/js/timeline.js on lines 2715..2726
    app/lib/tinymce/jscripts/tiny_mce/utils/validate.js on lines 75..86

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

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

    insertdatetime:{
    date_fmt:"%Y-%m-%d",
    time_fmt:"%H:%M:%S",
    insertdate_desc:"Insert date",
    inserttime_desc:"Insert time",
    Severity: Major
    Found in app/admin_files/wp-langs-en.js and 3 other locations - About 35 mins to fix
    app/lib/jquery-ui-1.10.3/external/globalize.culture.de-DE.js on lines 67..76
    app/lib/jquery-ui-1.10.3/external/globalize.culture.ja-JP.js on lines 60..69
    app/lib/jquery-ui-1.10.3/external/globalize.culture.ja-JP.js on lines 86..95

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

    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

    There are no issues that match your filters.

    Category
    Status