nexxtway/react-rainbow

View on GitHub

Showing 445 of 2,739 total issues

Function render has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    render() {
        const {
            name,
            value,
            onChange,
Severity: Minor
Found in src/components/Input/inputCheckbox/checkbox.js - About 1 hr to fix

    Function constructor has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        constructor(props) {
            super(props);
            const {
                children,
                showCheckboxColumn,
    Severity: Minor
    Found in src/components/Table/index.js - About 1 hr to fix

      Function render has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          render() {
              const { activeTabName, fullWidth, variant, children, style, className, id } = this.props;
              const { areButtonsVisible } = this.state;
              const { screenWidth } = this;
              const showButtons = areButtonsVisible || screenWidth < 600;
      Severity: Minor
      Found in src/components/Tabset/index.js - About 1 hr to fix

        Function DashboardPurple has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const DashboardPurple = props => {
            const { className, style } = props;
            return (
                <svg
                    className={className}
        Severity: Minor
        Found in library/exampleComponents/Icons/dashboardPurple.js - About 1 hr to fix

          Function SearchIcon has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          const SearchIcon = props => {
              const { className } = props;
              return (
                  <svg
                      className={className}
          Severity: Minor
          Found in library/pages/ComponentsPage/searchIcon.js - About 1 hr to fix

            Function Settings has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            const Settings = props => {
                const { className, style } = props;
                return (
                    <svg
                        className={className}
            Severity: Minor
            Found in library/exampleComponents/Icons/settings.js - About 1 hr to fix

              Function toBeFocusable has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export default function toBeFocusable(component) {
                  if (component && isMountedByEnzyme(component)) {
                      const onClickMockFn = jest.fn();
                      const onBlurMockFn = jest.fn();
                      const onFocusMockFn = jest.fn();
              Severity: Minor
              Found in jestMatchers/toBeFocusable.js - About 1 hr to fix

                Function Indicators has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                const Indicators = props => {
                    const { carouselChildren, onSelect, selectedItem } = props;
                    const containerRef = useRef();
                
                    const { childrenRegistered: indicatorsRefs, register, unregister } = useChildrenRegister({
                Severity: Minor
                Found in src/components/CarouselCard/indicators/index.js - About 1 hr to fix

                  Function XCircle has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export default function XCircle(props) {
                      const { className, style } = props;
                      return (
                          <svg
                              className={className}
                  Severity: Minor
                  Found in src/components/ImportRecordsFlow/icons/xCircle.js - About 1 hr to fix

                    Function render has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        render() {
                            const {
                                style,
                                className,
                                disabled,
                    Severity: Minor
                    Found in src/components/CheckboxToggle/index.js - About 1 hr to fix

                      Function renderValue has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function renderValue(value, caption, row) {
                          const { description, type } = row;
                      
                          if (value === 'undefined' || value === 'null') {
                              return '';
                      Severity: Minor
                      Found in library/styleguideComponents/PropsTable/bodyRows.js - About 1 hr to fix

                        Function DatePickerModal has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export default function DatePickerModal(props) {
                            const {
                                id,
                                className,
                                style,
                        Severity: Minor
                        Found in src/components/DatePickerModal/index.js - About 1 hr to fix

                          Function render has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              render() {
                                  const {
                                      style,
                                      className,
                                      paginationAlignment,
                          Severity: Minor
                          Found in src/components/TableWithBrowserPagination/index.js - About 1 hr to fix

                            Function Default has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            const Default = React.forwardRef((_props, ref) => {
                                const { colors } = useContext(ColorPickerContext);
                                const firstRef = useRef();
                                const lastRef = useRef();
                            
                            
                            Severity: Minor
                            Found in src/components/ColorPicker/variants/default.js - About 1 hr to fix

                              Function constructor has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  constructor(props) {
                                      super(props);
                                      this.state = {
                                          focusedDate: normalizeDate(props.value),
                                          currentMonth: getFirstDayMonth(normalizeDate(props.value)),
                              Severity: Minor
                              Found in src/components/Calendar/singleCalendar.js - About 1 hr to fix

                                Function Charts has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                const Charts = props => {
                                    const { className, style } = props;
                                    return (
                                        <svg
                                            className={className}
                                Severity: Minor
                                Found in library/exampleComponents/Icons/charts.js - About 1 hr to fix

                                  Function getComponentsByCategory has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      getComponentsByCategory() {
                                          const { searchTerm } = this.state;
                                          const { components } = this.props;
                                          const filtered = filterSectionsByName(components, searchTerm);
                                          const categorizedComponents = {
                                  Severity: Minor
                                  Found in library/pages/ComponentsPage/index.js - About 1 hr to fix

                                    Function render has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        render() {
                                            const {
                                                itemRef,
                                                label,
                                                ariaDescribedby,
                                    Severity: Minor
                                    Found in src/components/RadioButtonGroup/radioButtonItem.js - About 1 hr to fix

                                      Function getDesiredPosition has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function getDesiredPosition(options, alignment, margin) {
                                          const {
                                              trigger: {
                                                  leftUpAnchor,
                                                  leftBottomAnchor,
                                      Severity: Minor
                                      Found in src/components/PrimitiveMenu/utils.js - About 1 hr to fix

                                        Function render has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        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();
                                        Severity: Minor
                                        Found in src/components/Calendar/singleCalendar.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language