Showing 173 of 964 total issues
Function SvgIconExample
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function SvgIconExample() {
return (
<div style={style}>
<div style={cardStyle}>
<h3>Icon with no icon or children properties defined</h3>
File FixedPeriodsGenerator.spec.js
has 544 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import FixedPeriodsGenerator from '../FixedPeriodsGenerator';
describe('FixedPeriodsGenerator class', () => {
const periodsGenerator = new FixedPeriodsGenerator();
File FixedPeriodsGenerator.js
has 495 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// generatePeriods config object: { boolean offset, boolean filterFuturePeriods, boolean reversePeriods }
function DailyPeriodType(formatYyyyMmDd, fnFilter) {
this.generatePeriods = config => {
let periods = [];
Function render
has 157 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const filterHeight = this.getFilterText().length > 0 ? 15 : 0;
const styles = {
container: {
display: 'flex',
File colorbrewer.js
has 416 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
// Please see license at http://colorbrewer.org/export/LICENSE.txt
export default { YlGn: {
3: ['#f7fcb9', '#addd8e', '#31a354'],
4: ['#ffffcc', '#c2e699', '#78c679', '#238443'],
File OrgUnitTree.component.js
has 410 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import PropTypes from 'prop-types';
import LinearProgress from '@material-ui/core/LinearProgress';
import StopIcon from '@material-ui/icons/Stop';
Function render
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { root, roots, preRoot } = this.state;
if (!root || !roots || !preRoot) {
return null;
Function PeriodType
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function PeriodType() {
const monthNames = [
'January',
'February',
'March',
Function render
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const fields = [
{
name: 'exampleTextField',
value: 'Default Value',
GroupEditor
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export default class GroupEditor extends Component {
constructor(props, context) {
super(props, context);
const i18n = this.context.d2.i18n;
File GroupEditor.component.js
has 351 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Material UI
import Paper from 'material-ui/Paper/Paper';
Function getContent
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getContent() {
const {
classes,
fileType,
onSave,
File FormBuilder.component.spec.js
has 348 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { shallow } from 'enzyme';
import TextField from 'material-ui/TextField/TextField';
import FormBuilder from '../FormBuilder.component';
import AsyncValidatorRunner from '../AsyncValidatorRunner';
File Validators.spec.js
has 344 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import
Validators
from '../Validators';
const {
Function SidebarExample
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function SidebarExample(props) {
return (
<div>
<div style={styles.box}>
<div style={styles.header}>
Function render
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const changeRoot = (currentRoot) => {
this.setState({ currentRoot });
};
Function render
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const actions = [
<FlatButton
label={this.i18n.getTranslation('cancel')}
secondary
Function render
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (!this.state.d2) {
console.log('no');
return null;
}
Function render
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
user,
displayName,
userAccesses,
Function createFormValidator
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createFormValidator(fieldConfigs = [], scheduler) {
const validatorQueue = new Rx.Subject();
const statusSubject = new Rx.ReplaySubject(1);
const initialStatuses = fieldConfigs
.filter(fieldConfig => Array.isArray(fieldConfig.validators) && fieldConfig.validators.length > 0)