Showing 3,732 of 12,811 total issues
Function HomeAcreageValueInput
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const HomeAcreageValueInput = props => {
const {
goBack,
goForward,
onReviewPage = false,
- 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 ResolutionAmount
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const ResolutionAmount = ({ formContext }) => {
const dispatch = useDispatch();
const formData = useSelector(state => state.form.data);
const { selectedDebtsAndCopays = [] } = formData;
- 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 MonetaryCheckList
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const MonetaryCheckList = ({
data,
goBack,
goForward,
goToPath,
- 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 getEmploymentHistory
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
export const getEmploymentHistory = ({ questions, personalData }) => {
const { employmentHistory } = personalData;
let history = [];
const defaultObj = {
- 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 EmploymentHistorySummaryCard
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const EmploymentHistorySummaryCard = ({
job,
index,
isSpouse,
formData,
- 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 BankruptcyQuestion
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const BankruptcyQuestion = ({
data,
goBack,
goForward,
goToPath,
- 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 useFormState
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
export default function useFormState({
initialSchema,
uiSchema = null,
initialData = {},
dependencies = [],
- 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 NewBookingSection
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
export function NewBookingSection() {
const match = useRouteMatch();
const location = useLocation();
const dispatch = useDispatch();
const canUseVaccineFlow = useSelector(selectCanUseVaccineFlow);
- 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 InPersonLayout
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
export default function InPersonLayout({ data: appointment }) {
const {
clinicName,
clinicPhysicalLocation,
clinicPhone,
- 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 WaitTimeAlert
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
export const WaitTimeAlert = ({
eligibleForRequests,
facilityId,
nextAvailableApptDate,
preferredDate,
- 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 Default5103EvidenceNotice
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
function Default5103EvidenceNotice({
decisionRequestError,
decisionRequested,
loadingDecisionRequest,
item,
- 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 useClinicFormState
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
export default function useClinicFormState() {
const initialData = useSelector(getFormData);
const location = useSelector(selectChosenFacilityInfo);
const selectedTypeOfCare = getTypeOfCare(initialData);
- 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 Docket
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
function Docket({
ahead,
total,
totalAllDockets,
month,
- 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 Decision
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const Decision = ({ issues, aoj, ama = true, boardDecision = false }) => {
const allowedIssues = issues
.filter(issue => issue.disposition === 'allowed')
.map((issue, i) => <li key={`allowed-${i}`}>{issue.description}</li>);
const deniedIssues = issues
- 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 Decision
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const Decision = ({ issues, aoj, ama = true, boardDecision = false }) => {
const allowedIssues = issues
.filter(issue => issue.disposition === 'allowed')
.map((issue, i) => <li key={`allowed-${i}`}>{issue.description}</li>);
const deniedIssues = issues
- 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 NotificationItem
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
const NotificationItem = ({ channelIds, itemName, description, itemId }) => {
const {
profileShowMhvNotificationSettingsEmailAppointmentReminders: aptReminderToggle,
profileShowMhvNotificationSettingsEmailRxShipment: shipmentToggle,
} = useNotificationSettingsUtils().toggles;
- 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 pharmacyPhoneNumber
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
export const pharmacyPhoneNumber = prescription => {
if (prescription.cmopDivisionPhone) {
return prescription.cmopDivisionPhone;
}
if (prescription.dialCmopDivisionPhone) {
- 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 createDetailItem
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
const createDetailItem = async (doc, config, x, item) => {
const paragraphOptions = { lineGap: 6 };
let titleText = item.title ?? '';
const content = [];
const monospaceFont = config.text.monospaceFont || config.text.font;
Function generateResultsContent
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
const generateResultsContent = async (doc, parent, data, config) => {
const results = doc.struct('Sect', {
title: 'Results',
});
parent.add(results);
Function render
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
const alertContent = (
<div>
<p>
This will remove your {toLower(this.props.title)} across many VA