for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
$(document).ready(function () {
API.runtime.onMessage.addListener(function (msg, sender) {
sender
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.
$('.container').show();
//console.log('Method call', msg.method);
console.log(msg);
console.log
if(msg.hasOwnProperty('setIframeUsername')){
$('.username').text(msg.setIframeUsername);
}
});
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.