estimancy/projestimate

View on GitHub

Showing 1,675 of 1,675 total issues

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

;(function($){
    $.fn.datepicker.dates['fr'] = {
        days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"],
        daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"],
        daysMin: ["D", "L", "Ma", "Me", "J", "V", "S", "D"],
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['de'] = {
        days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"],
        daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"],
        daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"],
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['en-GB'] = {
    days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
    daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['de'] = {
        days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"],
        daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"],
        daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"],
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['fr'] = {
        days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"],
        daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"],
        daysMin: ["D", "L", "Ma", "Me", "J", "V", "S", "D"],
Severity: Major
Found in app/assets/javascripts/locales/bootstrap-datepicker.fr.js and 12 other locations - About 4 hrs to fix
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['en-GB'] = {
    days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
    daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['de'] = {
        days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"],
        daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"],
        daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"],
Severity: Major
Found in app/assets/javascripts/locales/bootstrap-datepicker.de.js and 12 other locations - About 4 hrs to fix
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['es'] = {
        days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
        daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Dom"],
        daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"],
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['fr'] = {
        days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"],
        daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"],
        daysMin: ["D", "L", "Ma", "Me", "J", "V", "S", "D"],
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['en'] = {
    days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
    daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
Severity: Major
Found in app/assets/javascripts/locales/bootstrap-datepicker.en.js and 12 other locations - About 4 hrs to fix
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-CA.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

;(function($){
    $.fn.datepicker.dates['en-GB'] = {
    days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
    daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
app/assets/javascripts/locales/bootstrap-datepicker.de-AT.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.de.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.en-AU.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en-GB.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.en.js on lines 4..15
app/assets/javascripts/locales/bootstrap-datepicker.es-ES.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-BE.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CA.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr-CH.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.fr.js on lines 5..16
app/assets/javascripts/locales/bootstrap-datepicker.frsncf.js on lines 5..16

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

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

            if('ontouchstart' in window) {
                p.padM.addEventListener('touchstart', function(e) {
                    touchOffset={
                        'X': e.target.offsetParent.offsetLeft,
                        'Y': e.target.offsetParent.offsetTop
Severity: Major
Found in app/assets/javascripts/jscolor.js and 1 other location - About 4 hrs to fix
app/assets/javascripts/jscolor.js on lines 681..692

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

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

            if('ontouchstart' in window) {
                p.sldM.addEventListener('touchstart', function(e) {
                    touchOffset={
                        'X': e.target.offsetParent.offsetLeft,
                        'Y': e.target.offsetParent.offsetTop
Severity: Major
Found in app/assets/javascripts/jscolor.js and 1 other location - About 4 hrs to fix
app/assets/javascripts/jscolor.js on lines 661..672

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

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

                _doOne = function(_el) {
                    // get the element's id and store the endpoint definition for it.  jsPlumb.connect calls will look for one of these,
                    // and use the endpoint definition if found.
                    var elid = _getId(_el),
                        parentElement = function() {
Severity: Major
Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 4 hrs to fix

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

                        h = ((sd.left <= td.left && sd.right >= td.left) || (sd.left <= td.right && sd.right >= td.right) ||
                            (sd.left <= td.left && sd.right >= td.right) || (td.left <= sd.left && td.right >= sd.right)),
    Severity: Major
    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js and 1 other location - About 4 hrs to fix
    app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3644..3645

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

    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

                        v = ((sd.top <= td.top && sd.bottom >= td.top) || (sd.top <= td.bottom && sd.bottom >= td.bottom) ||
                            (sd.top <= td.top && sd.bottom >= td.bottom) || (td.top <= sd.top && td.bottom >= sd.bottom)),
    Severity: Major
    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js and 1 other location - About 4 hrs to fix
    app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js on lines 3642..3643

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

    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

      def import_user_from_ldap(ldap_cn, login, ldap_server)
        login_filter = Net::LDAP::Filter.eq ldap_server.user_name_attribute, "#{login}"
        object_filter = Net::LDAP::Filter.eq 'objectClass', '*'
        #is_an_automatic_account_activation? ? status = 'active' : status = 'pending'
    
    
    Severity: Major
    Found in app/models/user.rb and 1 other location - About 4 hrs to fix
    app/models/user.rb on lines 278..317

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

    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

      def import_user_from_ldap_mail(ldap_cn, email, ldap_server)
        login_filter = Net::LDAP::Filter.eq ldap_server.email_attribute, "#{email}"
        object_filter = Net::LDAP::Filter.eq 'objectClass', '*'
        #is_an_automatic_account_activation? ? status = 'active' : 'pending'
    
    
    Severity: Major
    Found in app/models/user.rb and 1 other location - About 4 hrs to fix
    app/models/user.rb on lines 235..273

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

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

        var DragManager = function(_currentInstance) {        
            var _draggables = {}, _dlist = [], _delements = {}, _elementsWithEndpoints = {},            
                // elementids mapped to the draggable to which they belong.
                _draggablesForElements = {};
    
    
    Severity: Major
    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 4 hrs to fix

      Method update_records has 117 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def self.update_records(external, local, fields)
          loc_defined_rs_id = RecordStatus.find_by_name('Defined').id
          loc_custom_rs_id = RecordStatus.find_by_name('Custom').id
          loc_local_rs_id = RecordStatus.find_by_name('Local').id
          ext_defined_rs_id = ExternalMasterDatabase::ExternalRecordStatus.find_by_name('Defined').id
      Severity: Major
      Found in app/models/home.rb - About 4 hrs to fix
        Severity
        Category
        Status
        Source
        Language