Skip to content

Commit

Permalink
fix(es5): for eslint & eslint-angular, use the severity property to…
Browse files Browse the repository at this point in the history
… retrieve the severity

Closes #16
  • Loading branch information
ValentinGot committed Jan 11, 2017
1 parent fb03d91 commit 463c1fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion build/reporters/eslint-angular.reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion build/reporters/eslint.reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 463c1fc

Please sign in to comment.