Showing 445 of 2,739 total issues
Function render
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
name,
value,
onChange,
Function constructor
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
const {
children,
showCheckboxColumn,
Function render
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { activeTabName, fullWidth, variant, children, style, className, id } = this.props;
const { areButtonsVisible } = this.state;
const { screenWidth } = this;
const showButtons = areButtonsVisible || screenWidth < 600;
Function DashboardPurple
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DashboardPurple = props => {
const { className, style } = props;
return (
<svg
className={className}
Function SearchIcon
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SearchIcon = props => {
const { className } = props;
return (
<svg
className={className}
Function Settings
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Settings = props => {
const { className, style } = props;
return (
<svg
className={className}
Function toBeFocusable
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function toBeFocusable(component) {
if (component && isMountedByEnzyme(component)) {
const onClickMockFn = jest.fn();
const onBlurMockFn = jest.fn();
const onFocusMockFn = jest.fn();
Function Indicators
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Indicators = props => {
const { carouselChildren, onSelect, selectedItem } = props;
const containerRef = useRef();
const { childrenRegistered: indicatorsRefs, register, unregister } = useChildrenRegister({
Function XCircle
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function XCircle(props) {
const { className, style } = props;
return (
<svg
className={className}
Function render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
style,
className,
disabled,
Function renderValue
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderValue(value, caption, row) {
const { description, type } = row;
if (value === 'undefined' || value === 'null') {
return '';
Function DatePickerModal
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function DatePickerModal(props) {
const {
id,
className,
style,
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
style,
className,
paginationAlignment,
Function Default
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Default = React.forwardRef((_props, ref) => {
const { colors } = useContext(ColorPickerContext);
const firstRef = useRef();
const lastRef = useRef();
Function constructor
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
this.state = {
focusedDate: normalizeDate(props.value),
currentMonth: getFirstDayMonth(normalizeDate(props.value)),
Function Charts
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Charts = props => {
const { className, style } = props;
return (
<svg
className={className}
Function getComponentsByCategory
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getComponentsByCategory() {
const { searchTerm } = this.state;
const { components } = this.props;
const filtered = filterSectionsByName(components, searchTerm);
const categorizedComponents = {
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
itemRef,
label,
ariaDescribedby,
Function getDesiredPosition
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getDesiredPosition(options, alignment, margin) {
const {
trigger: {
leftUpAnchor,
leftBottomAnchor,
Function render
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { currentMonth, currentRange } = this.state;
const { id, value, onChange, minDate, maxDate, className, style, locale } = this.props;
const formattedMonth = getFormattedMonth(currentMonth, locale);
const currentYear = currentMonth.getFullYear();