From 463c1fc806f181f35d51ff318743ea0566d79aa9 Mon Sep 17 00:00:00 2001 From: Valentin GOT Date: Wed, 11 Jan 2017 15:53:15 +0100 Subject: [PATCH 1/2] fix(es5): for eslint & eslint-angular, use the `severity` property to retrieve the severity Closes #16 --- CHANGELOG.md | 6 +++++- build/reporters/eslint-angular.reporter.js | 2 +- build/reporters/eslint.reporter.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ea43f6..d8b7582 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## Unreleased +## 3.1.1 - 2017-01-11 + +### Fixed + +- **es5**: for **eslint** & **eslint-angular**, use the `severity` property to retrieve the severity (Closes [#16](https://github.com/groupe-sii/sonar-web-frontend-reporters/issues/16)) [@ValentinGot] ## 3.1.0 - 2016-12-19 diff --git a/build/reporters/eslint-angular.reporter.js b/build/reporters/eslint-angular.reporter.js index 8ddd95e..078c72c 100644 --- a/build/reporters/eslint-angular.reporter.js +++ b/build/reporters/eslint-angular.reporter.js @@ -69,7 +69,7 @@ module.exports = function (_Reporter) { for (var _iterator = result.results[0].messages[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var message = _step.value; - switch (message.type) { + switch (message.severity) { case 2: severity = this.MAJOR; break; diff --git a/build/reporters/eslint.reporter.js b/build/reporters/eslint.reporter.js index e4d20b5..441f790 100644 --- a/build/reporters/eslint.reporter.js +++ b/build/reporters/eslint.reporter.js @@ -69,7 +69,7 @@ module.exports = function (_Reporter) { for (var _iterator = result.results[0].messages[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var message = _step.value; - switch (message.type) { + switch (message.severity) { case 2: severity = this.MAJOR; break; From e0122d88b28192845774be1d57eefd7c5838cfec Mon Sep 17 00:00:00 2001 From: Valentin GOT Date: Wed, 11 Jan 2017 15:58:02 +0100 Subject: [PATCH 2/2] chore(npm): package version will be 3.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7e71ab6..a176095 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sonar-web-frontend-reporters", "description": "sreporter is a Command-Line Interface to generate Front-End linters reporters for the SonarQube plugin", - "version": "3.1.0", + "version": "3.1.1", "main": "./lib/api.js", "bin": { "sreporter": "./bin/sreporter"