for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import $ from 'jquery'
let status
export function init (options) {
if (!status) {
const apiKey = options.apiKey
const callback = `googleMaps_${Date.now()}`
const url = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&callback=${callback}`
status = new Promise((resolve, reject) => {
reject
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.
window[callback] = () => {
resolve()
}
})
$.getScript(url)
return status
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.