Showing 42 of 110 total issues
Function MultiSelectInputBase
has 295 lines of code (exceeds 100 allowed). Consider refactoring. Open
function MultiSelectInputBase<T, K extends OptionKey = string>(props: MultiSelectInputBaseProps<T, K>) {
const {
autoFocus,
className: classNameFromProps,
disabled,
Function SelectInputBase
has 292 lines of code (exceeds 100 allowed). Consider refactoring. Open
function SelectInputBase<T, K extends OptionKey = string>(props: SelectInputBaseProps<T, K>) {
const {
autoFocus,
className: classNameFromProps,
disabled,
Function wrapViz
has 225 lines of code (exceeds 100 allowed). Consider refactoring. Open
const wrapViz = (WrappedComponent) => {
const WrapperComponent = class extends React.PureComponent {
static propTypes = propTypes;
static defaultProps = defaultProps;
Function Calendar
has 209 lines of code (exceeds 100 allowed). Consider refactoring. Open
const Calendar = (props: CalendarProps) => {
const {
className,
disabled,
onChange,
Function render
has 195 lines of code (exceeds 100 allowed). Consider refactoring. Open
render() {
const {
className: classNameFromProps,
data,
boundingClientRect,
Function Input
has 181 lines of code (exceeds 100 allowed). Consider refactoring. Open
const Input = (props: Props) => {
const {
className,
disabled,
value: valueMiti,
Function renderChart
has 178 lines of code (exceeds 100 allowed). Consider refactoring. Open
renderChart() {
const {
boundingClientRect,
idSelector,
groupSelector,
Function render
has 177 lines of code (exceeds 100 allowed). Consider refactoring. Open
render() {
const {
error,
hint,
keySelector,
Function render
has 175 lines of code (exceeds 100 allowed). Consider refactoring. Open
render() {
const {
error,
hint,
keySelector,
Function ColorInput
has 174 lines of code (exceeds 100 allowed). Consider refactoring. Open
function ColorInput(props) {
const {
onChange,
showHintAndError,
label,
Function render
has 159 lines of code (exceeds 100 allowed). Consider refactoring. Open
render() {
const {
className: classNameFromProps,
data,
boundingClientRect,
Function Input
has a Cognitive Complexity of 28 (exceeds 10 allowed). Consider refactoring. Open
const Input = (props: Props) => {
const {
className,
disabled,
value: valueMiti,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function SelectInputBase
has a Cognitive Complexity of 28 (exceeds 10 allowed). Consider refactoring. Open
function SelectInputBase<T, K extends OptionKey = string>(props: SelectInputBaseProps<T, K>) {
const {
autoFocus,
className: classNameFromProps,
disabled,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function NepaliDateInput
has 154 lines of code (exceeds 100 allowed). Consider refactoring. Open
const NepaliDateInput = (props: Props) => {
const {
className,
disabled,
error,
Function MultiSelectInputBase
has a Cognitive Complexity of 27 (exceeds 10 allowed). Consider refactoring. Open
function MultiSelectInputBase<T, K extends OptionKey = string>(props: MultiSelectInputBaseProps<T, K>) {
const {
autoFocus,
className: classNameFromProps,
disabled,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function render
has 151 lines of code (exceeds 100 allowed). Consider refactoring. Open
render() {
const {
error,
hint,
keySelector,
DateInput
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
class DateInput extends React.PureComponent {
static propTypes = propTypes;
static defaultProps = defaultProps;
Function render
has 140 lines of code (exceeds 100 allowed). Consider refactoring. Open
render() {
const {
error,
hint,
keySelector,
Function TreeNode
has 139 lines of code (exceeds 100 allowed). Consider refactoring. Open
function TreeNode<T, K extends OptionKey>(props: TreeNodeProps<T, K>) {
const {
className,
disabled,
readOnly,
Function ReCaptcha
has 130 lines of code (exceeds 100 allowed). Consider refactoring. Open
function ReCaptcha(props) {
const {
className,
showHintAndError,
error,