diff --git a/index.js b/index.js index 650f5027..12232b82 100644 --- a/index.js +++ b/index.js @@ -102,6 +102,14 @@ exports.getBenchmarksSchema = function(performanceYear = Constants.currentPerfor return YAML.load(path.join(__dirname, 'benchmarks', performanceYear.toString(), 'benchmarks-schema.yaml')); }; +/** + * @return {Array} + */ +exports.getBenchmarksExclusionReasons = function(performanceYear = Constants.currentPerformanceYear) { + return JSON.parse( + fs.readFileSync(path.join(__dirname, 'benchmarks', performanceYear.toString(), 'benchmark-exclusion-reasons.json'))); +}; + /** * @return {Array} */