Showing 3,724 of 12,675 total issues
Function CustomResolutionOptionReview
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
const CustomResolutionOptionReview = props => {
const formData = useSelector(state => state.form.data);
const { selectedDebtsAndCopays = [] } = formData;
const currentDebt = selectedDebtsAndCopays[props.pagePerItemIndex];
Function fetchConfirmedAppointmentDetails
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function fetchConfirmedAppointmentDetails(id, type) {
return async (dispatch, getState) => {
try {
const state = getState();
const featureVAOSServiceVAAppointments = selectFeatureVAOSServiceVAAppointments(
Function openFacilityPageV2
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function openFacilityPageV2(page, uiSchema, schema) {
return async (dispatch, getState) => {
try {
const initialState = getState();
const featureFacilitiesServiceV2 = selectFeatureFacilitiesServiceV2(
Function getCompareCalculatorState
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const getCompareCalculatorState = (
calculator,
institution,
constants,
) => {
Function ConnectedDevicesContainer
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const ConnectedDevicesContainer = () => {
const [hasLoaded, setHasLoaded] = useState(false);
const [connectionAvailable, setConnectionAvailable] = useState(false);
const [connectedDevices, setConnectedDevices] = useState([]);
const [successAlert, setSuccessAlert] = useState(false);
Function onChangeEvent
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
const onChangeEvent = option => {
// title may be a React component
const title = options.title?.props?.children || options.title || '';
// this check isn't ideal since the message may exist and the question
// may be dynamically toggled between being required or not
Function removeDependents
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function removeDependents(state = initialState, action) {
// schema, uiSchema, and formData are already extracted based on index (stateKey) here.
if (action.type === FORM_DATA_UPDATED) {
const {
data: newFormData,
Function makeUserObject
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
export function makeUserObject(options = {}) {
const services = options.services || ['vet360'];
let claims = {
ch33_bank_accounts: true,
communication_preferences: true,
Function AllergyListItem
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
const AllergyListItem = props => {
const { record } = props;
return (
<va-card
Function generate
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
const generate = async data => {
validate(data);
const tocPageData = {};
const doc = createAccessibleDoc(data, config);
- 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 PreSubmitSection
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
export function PreSubmitSection(props) {
const {
form,
preSubmit = {},
setPreSubmit,
- 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 updateSchemaFromUiSchema
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
export function updateSchemaFromUiSchema(
schema,
uiSchema,
formData,
index = null,
- 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 ReviewFieldTemplate
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
export default function ReviewFieldTemplate(props) {
const { children, uiSchema, schema, formContext } = props;
const label = uiSchema['ui:title'] || props.label;
const description = uiSchema['ui:description'];
const textDescription = typeof description === 'string' ? description : null;
- 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 AuthApp
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
export default function AuthApp({ location }) {
const [
{ auth, errorCode, returnUrl, loginType, state, requestId },
setAuthState,
] = useState({
- 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 ApplicantRelationshipPage
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
export default function ApplicantRelationshipPage({
data,
genOp,
setFormData,
goBack,
- 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 SearchResultsHeader
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
export const SearchResultsHeader = props => {
const { searchResults, pagination, query } = props;
const {
inProgress,
context,
- 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 BDDPage
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
const BDDPage = ({ setPageState, state = '' }) => {
const [ariaDescribedby, setAriaDescribedby] = useState('');
const [isDirty, setIsDirty] = useState(false);
const [errorMessage, setErrorMessage] = useState(null);
- 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 ContactInfo
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
const ContactInfo = ({
data,
goBack,
goForward,
onReviewPage,
- 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 BankruptcyDetails
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
const BankruptcyDetails = ({
data,
goBack,
goForward,
setFormData,
- 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 SearchBenefits
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
const SearchBenefits = ({
cumulativeService,
dispatchShowModal,
eligForPostGiBill,
enlistmentService,
- 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"