for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
'use strict'
module.exports = (input, callback) => {
const mqtt = require('mqtt')
mqtt
const validate = require('./validate')
let error = null
let output = null
output
validate(input, (validatedInput, thrownError) => {
input = validatedInput
error = thrownError
})
output = {
'version': {'ref': 'input'},
'metadata': [
{'name': 'topic', 'value': 'Hulk Hogan'},
{'name': 'timestamp', 'value': Date.now().toString()}
]
}
callback(error, output, source)
source
/** global: source */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.