Showing 445 of 2,739 total issues
Function resolveCustomShadows
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveCustomShadows(colors, background) {
let shadows = {};
if (colors.brand) {
shadows.brand = `0 0 2px ${colors.brand.main}`;
}
Function rgbToHsv
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function rgbToHsv(color) {
const { type, values } = decomposeColor(color);
if (!type || !values || type.indexOf('rgb') === -1) {
return '';
}
Function updateRows
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateRows() {
const { keyField, selectedRows, onRowSelection, data } = this.props;
const maxRowSelection = this.getMaxRowSelection();
const newRows = getRows({
keyField,
Function getSearchParams
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function getSearchParams(searchOptions) {
let searchParams = {};
if (searchOptions) {
const { bounds, country, location, ...otherSearchOptions } = searchOptions;
Function Week
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function Week(props) {
const {
value,
startDate,
endDate,
Function Dashboard
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Dashboard = props => {
const { className, style } = props;
return (
<svg
className={className}
Function handleChange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleChange = event => {
const { value: newValue, selectionStart } = event.target;
const cleanValue = clearValue(newValue, decimalSeparator);
const normalizeNewValue = normalizeValue({
value: cleanValue,
Function CardExample
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function CardExample() {
return (
<div className="rainbow-m-around_large">
<Card className="rainbow-align-content_center rainbow-m-around_large">
<img
Function withDebounce
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function withDebounce(WrappedComponent) {
return class extends Component {
constructor(props) {
super(props);
this.fieldRef = React.createRef();
Function handleChange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleChange = event => {
const { value: newValue, selectionStart } = event.target;
const cleanValue = clearValue(newValue, decimalSeparator);
const normalizeNewValue = normalizeValue({
value: cleanValue,
Function renderInput
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderInput() {
const { props } = this;
const { readOnly, isCentered, valueAlignment } = props;
const alignment = getValueAlignment({ valueAlignment, isCentered });
Function componentDidUpdate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidUpdate(prevProps, prevState) {
const {
options: prevOptions,
preferredSelectedOption: prevPreferredSelectedOption,
} = prevProps;
Function Plus
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Plus = props => {
const { className, style } = props;
return (
<svg
className={className}
Function RainbowComponents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function RainbowComponents() {
return (
<DesignDetails
category="library"
title="Rainbow Components"
Function CancelIcon
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function CancelIcon() {
return (
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
<title>cancel</title>
<g
Function buildShapeAttrList
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function buildShapeAttrList(data) {
return Object.keys(data).map((name, index) => {
const type = data[name].name;
const value = data[name].value;
let valueType;
Function EmailCustom
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const EmailCustom = props => {
const { className } = props;
return (
<svg className={className} width="491px" height="342px" viewBox="0 0 491 342" version="1.1">
<g id="pages" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
Function handleChange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
option => {
const { icon, name, label, value: optionValue, only } = option;
if (only) {
return onChange([
{
Function useHandleKeyDown
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
focusedDate,
currentMonth,
rightCalendarMonth,
minDate,
maxDate,
Function TreeChildren
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function TreeChildren(props) {
const {
data,
onNodeCheck,
onNodeExpand,