function readAnalyserConfig(analyserPath) {
    var filePath = path.join(analyserPath, 'config.json');

    return readFile(filePath, {encoding: 'utf8'})
      .then(function(fileContents){
        try {
          return doResolve(JSON.parse(jsonWithComments(fileContents)));
        } catch(err){
          return doReject(`Unable to parse config file for analyser '${analyserPath}'`, err);
        }
      }, function(err){
        return doReject(`Unable to read config file for analyser '${analyserPath}'`, err);
      });
  }
function readAnalyserConfig(analyserPath) {
    var filePath = path.join(analyserPath, 'config.json');

    return readFile(filePath, {encoding: 'utf8'})
      .then(function(fileContents){
        try {
          return doResolve(JSON.parse(jsonWithComments(fileContents)));
        } catch(err){
          return doReject(`Unable to parse config file for analyser '${analyserPath}'`, err);
        }
      }, function(err){
        return doReject(`Unable to read config file for analyser '${analyserPath}'`, err);
      });
  }
function readAnalyserConfig ( analyserPath ) { var filePath = path . join ( analyserPath , 'config.json' ) ; return readFile ( filePath , { encoding : 'utf8' } ) . then ( function ( fileContents ) { try { return doResolve ( JSON . parse ( jsonWithComments ( fileContents ) ) ) ; } catch ( err ) { return doReject ( ` ${ analyserPath } ` , err ) ; } } , function ( err ) { return doReject ( ` ${ analyserPath } ` , err ) ; } ) ; }
Read and parse the config for a locally installed analyser
@param analyserPath the abs path of the analyser config file
Read and parse the config for a locally installed analyser