]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaws
authorStas Vilchik <vilchiks@gmail.com>
Tue, 8 Nov 2016 12:51:24 +0000 (13:51 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 8 Nov 2016 12:51:24 +0000 (13:51 +0100)
server/sonar-web/src/main/js/apps/code/components/Component.js
server/sonar-web/src/main/js/apps/projects/components/ProjectCardContainer.js
server/sonar-web/src/main/js/apps/projects/components/ProjectsListFooter.js
server/sonar-web/src/main/js/apps/projects/store/actions.js
server/sonar-web/src/main/js/apps/projects/store/utils.js
server/sonar-web/src/main/js/components/source-viewer/main.js

index 14386f2b2f53a0e0f8efe527888336196734894e..7a772566d7f0a4571e259b90951a8f94ec475e08 100644 (file)
@@ -87,7 +87,7 @@ export default class Component extends React.Component {
       { metric: 'reliability_rating', type: 'RATING' },
       { metric: 'security_rating', type: 'RATING' },
       { metric: 'sqale_rating', type: 'RATING' },
-      { metric: 'ncloc', type: 'SHORT_INT' },
+      { metric: 'ncloc', type: 'SHORT_INT' }
     ] : [
       { metric: 'ncloc', type: 'SHORT_INT' },
       { metric: 'bugs', type: 'SHORT_INT' },
index f3f9713ffb927fb142a8a3f8ce2cd1e8aa18f978..e260f56ca1556bfd7f6c8dc45f2dffbbfd504a72 100644 (file)
@@ -24,6 +24,6 @@ import { getComponent, getComponentMeasures } from '../../../app/store/rootReduc
 export default connect(
     (state, ownProps) => ({
       project: getComponent(state, ownProps.projectKey),
-      measures: getComponentMeasures(state, ownProps.projectKey),
+      measures: getComponentMeasures(state, ownProps.projectKey)
     })
 )(ProjectCard);
index d256492d68e18f19ed11ea109589e9ef16e84e14..1ff5cdd71afcf53bee10bcbaf5f14dd5c58f2769 100644 (file)
@@ -22,7 +22,7 @@ import ListFooter from '../../../components/controls/ListFooter';
 
 export default class ProjectsListFooter extends React.Component {
   static propTypes = {
-    total: React.PropTypes.number.isRequired,
+    total: React.PropTypes.number.isRequired
   };
 
   render () {
index 561937468f326a1855f77b805bcc25e62f5ce085..9582b7a7dee7e9fa1b94cc1968a13fb73d93c2f0 100644 (file)
@@ -92,7 +92,7 @@ const onReceiveProjects = dispatch => response => {
   });
   dispatch(updateState({
     total: response.paging.total,
-    pageIndex: response.paging.pageIndex,
+    pageIndex: response.paging.pageIndex
   }));
 };
 
@@ -142,7 +142,7 @@ export const fetchFavoriteProjects = () => dispatch => {
     });
     dispatch(updateState({
       total: projects.length,
-      pageIndex: 1,
+      pageIndex: 1
     }));
   }, onFail(dispatch));
 };
index d2422b8ee85041a3b69c5cd9f7c6c7f3a4de4529..9ed9dd74ef4ca29e11a76054fb0903fbfd2a345c 100644 (file)
@@ -39,7 +39,7 @@ export const parseUrlQuery = urlQuery => ({
   'maintainability': getAsNumericRating(urlQuery['maintainability']),
   'coverage': getAsNumericRating(urlQuery['coverage']),
   'duplications': getAsNumericRating(urlQuery['duplications']),
-  'size': getAsNumericRating(urlQuery['size']),
+  'size': getAsNumericRating(urlQuery['size'])
 });
 
 const convertIssuesRating = (metric, rating) => {
index 50d476d0f57d68e8882d9975b4538717d693cf43..980e7e98447fa6674061070fce822238d20b0ef4 100644 (file)
@@ -216,7 +216,7 @@ export default Marionette.LayoutView.extend({
       }
       source = source.map(function (row) {
         return _.extend(row, {
-          coverageStatus: that.getCoverageStatus(row),
+          coverageStatus: that.getCoverageStatus(row)
         });
       });
       const firstLine = _.first(source).line;