Issue
Take a look at the issues pointed out by CodeFactor.
Example issue
Issue: 'e' is defined but never used, found in js\app.js
on line 352:
$('#copyFromRepoButton').click(function(e) {
Task
Remove all defined but unused variables that can be safely removed in terms of syntax and the code's functionality, as pointed out by CodeFactor.
Solution 1
The e
can be omitted. This example code on line 352 can be written as:
$('#copyFromRepoButton').click(function() {
Solution 2
Another way is to use the arrow notation, if this
keyword is not used in the function:
$('#copyFromRepoButton').click(() => {
If you don't understand when to use arrow notation or how this
keyword works, please stick to Solution 1.
Test
Before submitting a pull request, please test the code and make sure it works. Please check the console for potential errors.