rahulkapoor90/VITacademics-Enhancement-Suite

View on GitHub

Showing 255 of 1,018 total issues

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

                        obj['score'] = table.find('tr').eq(i).find('td').eq(7).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 137..137
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 139..139
Extension for chrome/scripts/home/assignMsg.js on lines 144..144
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 177..177
Extension for chrome/scripts/home/assignMsg.js on lines 178..178
Extension for chrome/scripts/home/assignMsg.js on lines 179..179
Extension for chrome/scripts/home/assignMsg.js on lines 180..180

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

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

                        obj['title'] = table.find('tr').eq(i).find('td').eq(1).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 137..137
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 139..139
Extension for chrome/scripts/home/assignMsg.js on lines 140..140
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 177..177
Extension for chrome/scripts/home/assignMsg.js on lines 178..178
Extension for chrome/scripts/home/assignMsg.js on lines 179..179
Extension for chrome/scripts/home/assignMsg.js on lines 180..180

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

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

        obj['crstp'] = table.find('tr').eq(i).find('td').eq(4).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 137..137
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 139..139
Extension for chrome/scripts/home/assignMsg.js on lines 140..140
Extension for chrome/scripts/home/assignMsg.js on lines 144..144
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 177..177
Extension for chrome/scripts/home/assignMsg.js on lines 178..178
Extension for chrome/scripts/home/assignMsg.js on lines 179..179

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

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

                        obj['title'] = table.find('tr').eq(i).find('td').eq(1).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 139..139
Extension for chrome/scripts/home/assignMsg.js on lines 140..140
Extension for chrome/scripts/home/assignMsg.js on lines 144..144
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 177..177
Extension for chrome/scripts/home/assignMsg.js on lines 178..178
Extension for chrome/scripts/home/assignMsg.js on lines 179..179
Extension for chrome/scripts/home/assignMsg.js on lines 180..180

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

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

        obj['crsnm'] = table.find('tr').eq(i).find('td').eq(3).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 137..137
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 139..139
Extension for chrome/scripts/home/assignMsg.js on lines 140..140
Extension for chrome/scripts/home/assignMsg.js on lines 144..144
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 177..177
Extension for chrome/scripts/home/assignMsg.js on lines 178..178
Extension for chrome/scripts/home/assignMsg.js on lines 180..180

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

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

                        obj['status'] = table.find('tr').eq(i).find('td').eq(6).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 137..137
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 140..140
Extension for chrome/scripts/home/assignMsg.js on lines 144..144
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 177..177
Extension for chrome/scripts/home/assignMsg.js on lines 178..178
Extension for chrome/scripts/home/assignMsg.js on lines 179..179
Extension for chrome/scripts/home/assignMsg.js on lines 180..180

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

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

        obj['classnbr'] = table.find('tr').eq(i).find('td').eq(1).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 137..137
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 139..139
Extension for chrome/scripts/home/assignMsg.js on lines 140..140
Extension for chrome/scripts/home/assignMsg.js on lines 144..144
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 178..178
Extension for chrome/scripts/home/assignMsg.js on lines 179..179
Extension for chrome/scripts/home/assignMsg.js on lines 180..180

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

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

        obj['crscd'] = table.find('tr').eq(i).find('td').eq(2).text().trim();
Severity: Major
Found in Extension for chrome/scripts/home/assignMsg.js and 10 other locations - About 1 hr to fix
Extension for chrome/scripts/home/assignMsg.js on lines 137..137
Extension for chrome/scripts/home/assignMsg.js on lines 138..138
Extension for chrome/scripts/home/assignMsg.js on lines 139..139
Extension for chrome/scripts/home/assignMsg.js on lines 140..140
Extension for chrome/scripts/home/assignMsg.js on lines 144..144
Extension for chrome/scripts/home/assignMsg.js on lines 146..146
Extension for chrome/scripts/home/assignMsg.js on lines 147..147
Extension for chrome/scripts/home/assignMsg.js on lines 177..177
Extension for chrome/scripts/home/assignMsg.js on lines 179..179
Extension for chrome/scripts/home/assignMsg.js on lines 180..180

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

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

  addListenerForNotificationOpened: function(callback) {
    var port = chrome.runtime.connect({name: "ONESIGNAL_NOTIFICATION_OPENED"});
    port.onMessage.addListener(function(msg) {
      callback(msg);
    });
Severity: Major
Found in Extension for chrome/scripts/OneSignal.js and 1 other location - About 1 hr to fix
Extension for chrome/scripts/OneSignal.js on lines 283..288

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

      if (result["gt_registration_id"] != null) {
        var port = chrome.runtime.connect({name: "GT_IDS_AVAILABLE"});
        port.onMessage.addListener(function(msg) {
          callback(msg);
        });
Severity: Major
Found in Extension for chrome/scripts/OneSignal.js and 1 other location - About 1 hr to fix
Extension for chrome/scripts/OneSignal.js on lines 272..277

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

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

for(var i=2;i<=36;i++){
    document.getElementById('tree23ec0_0_' + i + '_ico').src =  "https://res.cloudinary.com/dadfowug4/image/upload/v1479314802/nAnJHcz_kt2did.png";
}
Severity: Minor
Found in Extension for Firefox/scripts/menu/stud_menu.js and 1 other location - About 50 mins to fix
Extension for Edge/scripts/menu/stud_menu.js on lines 2..4

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

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

for(var i=2;i<=36;i++){
    document.getElementById('tree23ec0_0_' + i + '_ico').src =  "https://res.cloudinary.com/dadfowug4/image/upload/v1479314802/nAnJHcz_kt2did.png";
}
Severity: Minor
Found in Extension for Edge/scripts/menu/stud_menu.js and 1 other location - About 50 mins to fix
Extension for Firefox/scripts/menu/stud_menu.js on lines 2..4

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

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

for(var j=10;j<=24;j++){
document.getElementById('tree23ec0_0_' + j + '_flagImg').src = "https://res.cloudinary.com/dadfowug4/image/upload/v1479314802/YFcV4bO_oppp1h.png";
}
Severity: Minor
Found in Extension for Firefox/scripts/menu/stud_menu.js and 1 other location - About 45 mins to fix
Extension for Edge/scripts/menu/stud_menu.js on lines 5..7

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

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

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

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

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

Refactorings

Further Reading

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

    $('#menuSwitch').on('change', function () {
        $('#customMenu').toggle(400);
        $('table').toggle();
    });
Severity: Minor
Found in Extension for Firefox/scripts/menu/custom_stud_menu.js and 1 other location - About 45 mins to fix
Extension for chrome/scripts/menu/custom_stud_menu.js on lines 12..15

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

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

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

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

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

Refactorings

Further Reading

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

for(var j=10;j<=24;j++){
document.getElementById('tree23ec0_0_' + j + '_flagImg').src = "https://res.cloudinary.com/dadfowug4/image/upload/v1479314802/YFcV4bO_oppp1h.png";
}
Severity: Minor
Found in Extension for Edge/scripts/menu/stud_menu.js and 1 other location - About 45 mins to fix
Extension for Firefox/scripts/menu/stud_menu.js on lines 5..7

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

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

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

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

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

Refactorings

Further Reading

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

    $('#menuSwitch').on('change', function () {
        $('#customMenu').toggle(400);
        $('table').toggle();
    });
Severity: Minor
Found in Extension for chrome/scripts/menu/custom_stud_menu.js and 1 other location - About 45 mins to fix
Extension for Firefox/scripts/menu/custom_stud_menu.js on lines 12..15

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

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

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

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

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

Refactorings

Further Reading

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

if(window.location.search.includes("todt") && window.location.search.includes("fmdt")){
    init();
}
Severity: Major
Found in Extension for Edge/scripts/attendance/lastDate.js and 2 other locations - About 40 mins to fix
Extension for Firefox/scripts/attendance/lastDate.js on lines 40..42
Extension for chrome/scripts/attendance/lastDate.js on lines 40..42

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

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

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

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

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

Refactorings

Further Reading

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

if(window.location.search.includes("todt") && window.location.search.includes("fmdt")){
    init();
}
Severity: Major
Found in Extension for chrome/scripts/attendance/lastDate.js and 2 other locations - About 40 mins to fix
Extension for Edge/scripts/attendance/lastDate.js on lines 40..42
Extension for Firefox/scripts/attendance/lastDate.js on lines 40..42

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

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

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

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

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

Refactorings

Further Reading

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

if(window.location.search.includes("todt") && window.location.search.includes("fmdt")){
    init();
}
Severity: Major
Found in Extension for Firefox/scripts/attendance/lastDate.js and 2 other locations - About 40 mins to fix
Extension for Edge/scripts/attendance/lastDate.js on lines 40..42
Extension for chrome/scripts/attendance/lastDate.js on lines 40..42

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

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

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

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

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

Refactorings

Further Reading

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

var gradePoint = {
    "S": 10,
    "A": 9,
    "B": 8,
    "C": 7,
Severity: Minor
Found in Extension for chrome/scripts/grade/gpa.js and 1 other location - About 40 mins to fix
Extension for chrome/scripts/grade/archive_gpa.js on lines 1..10

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

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

Severity
Category
Status
Source
Language