Skip to content

Commit

Permalink
Update to SQ 6.7.1 + Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
agigleux committed Jan 31, 2018
1 parent c571cf4 commit 97f9dfb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<groupId>org.sonarsource.plugins.example</groupId>
<artifactId>sonar-example-plugin</artifactId>
<packaging>sonar-plugin</packaging>
<version>6.7.0-SNAPSHOT</version>
<version>6.7.1</version>

<name>Example Plugin for SonarQube 6.7 LTS</name>
<name>Example Plugin for SonarQube 6.7.x LTS</name>
<description>Example of Plugin for SonarQube: Foo Language, FooLint, Custom Metrics and MeasureComputers</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.apiVersion>6.6</sonar.apiVersion>
<sonar.apiVersion>6.7.1</sonar.apiVersion>
<jdk.min.version>1.8</jdk.min.version>
<sonar.sources>src/main/java,src/main/js</sonar.sources>
</properties>
Expand Down Expand Up @@ -52,7 +52,7 @@
<plugin>
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
<artifactId>sonar-packaging-maven-plugin</artifactId>
<version>1.16</version>
<version>1.18.0.372</version>
<extensions>true</extensions>
<configuration>
<pluginKey>example</pluginKey>
Expand Down
8 changes: 4 additions & 4 deletions src/main/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ export function findQualityProfilesStatistics(project) {
return getJSON('/api/qualityprofiles/search').then(function (response) {
return response.profiles.length;
});
};
}

export function findQualityQatesStatistics(project) {
return getJSON('/api/qualitygates/list').then(function (response) {
return response.qualitygates.length;
});
};
}

export function findIssuesStatistics(project) {
return getJSON('/api/issues/search').then(function (response) {
return response.total;
});
};
}

export function findProjects(project) {
return getJSON('/api/projects/search').then(function (response) {
return response.components.length;
});
};
}

export function findVersionsAndMeasures(project) {

Expand Down
2 changes: 1 addition & 1 deletion src/main/js/components/QualityGate.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class QualityGate extends React.PureComponent {
} else if ( this.props.qg_status === 'WARN' ) {
return ( <span className="level level-WARN">Warning</span> );
} else {
return ( <span className="level level-KO custom-abc">Failed</span> );
return ( <span className="level level-ERROR">Failed</span> );
}
}
}
1 change: 1 addition & 0 deletions src/main/js/components/VersionsMeasuresHistoryApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import React from 'react';
import MeasuresHistory from './MeasuresHistory'
import {translate} from '../common/l10n.js'
import {findVersionsAndMeasures} from '../api.js'
import {stringifyQPDetails} from '../api.js'

export default class VersionsMeasuresHistoryApp extends React.PureComponent {

Expand Down

0 comments on commit 97f9dfb

Please sign in to comment.