* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import _ from 'underscore';
+import find from 'lodash/find';
+import sortBy from 'lodash/sortBy';
import React from 'react';
import { Histogram } from '../../../components/charts/histogram';
getLanguageName (langKey) {
if (this.state && this.state.languages) {
- const lang = _.findWhere(this.state.languages, { key: langKey });
+ const lang = find(this.state.languages, { key: langKey });
return lang ? lang.name : translate('unknown');
} else {
return langKey;
return { x: parseInt(tokens[1], 10), y: index, value: tokens[0] };
});
- data = _.sortBy(data, d => -d.x);
+ data = sortBy(data, d => -d.x);
const yTicks = data.map(point => this.getLanguageName(point.value)).map(this.cutLanguageName);
const yValues = data.map(point => formatMeasure(point.x, 'SHORT_INT'));
metrics: state.app.metrics,
metric: state.details.metric,
measure: state.details.measure,
+ secondaryMeasure: state.details.secondaryMeasure,
periods: state.details.periods
};
};
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import _ from 'underscore';
+import sortBy from 'lodash/sortBy';
import moment from 'moment';
import React from 'react';
return { version: event.n, date: moment(event.dt).toDate() };
});
- return _.sortBy(events, 'date');
+ return sortBy(events, 'date');
});
}
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import _ from 'underscore';
-import sortBy from '../../../../../../node_modules/lodash/sortBy';
-import partition from '../../../../../../node_modules/lodash/partition';
+import groupBy from 'lodash/groupBy';
+import partition from 'lodash/partition';
+import sortBy from 'lodash/sortBy';
+import toPairs from 'lodash/toPairs';
import { RECEIVE_MEASURES } from './actions';
function groupByDomains (measures) {
const KNOWN_DOMAINS = ['Reliability', 'Security', 'Maintainability', 'Tests', 'Duplication', 'Size', 'Complexity'];
- const domains = _.sortBy(_.pairs(_.groupBy(measures, measure => measure.metric.domain)).map(r => {
+ const domains = sortBy(toPairs(groupBy(measures, measure => measure.metric.domain)).map(r => {
const [name, measures] = r;
- const sortedMeasures = _.sortBy(measures, measure => measure.metric.name);
+ const sortedMeasures = sortBy(measures, measure => measure.metric.name);
return { name, measures: sortedMeasures };
}), 'name');
coding_rules.custom_rule.title=This rule has been created through customization of a rule template
coding_rules.custom_rule.activation_notice=Note: parameters of a custom rule are not customizable on rule activation, only during creation/edit.
coding_rules.custom_rules=Custom Rules
+coding_rules.delete_rule=Delete Rule
coding_rules.delete.custom.confirm=Are you sure you want to delete custom rule "{0}"?
coding_rules.delete.manual.confirm=Are you sure you want to delete manual rule "{0}"?
coding_rules.extend_description=Extend Description