Showing 3,732 of 12,811 total issues
Function NeedHelp
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function NeedHelp() {
const isIntro = window.location.pathname.endsWith('/introduction');
return isIntro ? (
<>
<p>
Function board
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const board = (formValues, noDRB) => {
if (!formValues) return null;
const prevAppType =
['1', '4'].indexOf(formValues['10_prevApplicationType']) > -1;
Function BenefitsSelection
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function BenefitsSelection(props) {
const state = useFormikContext();
return (
<>
Function onDownloadLinkClick
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function onDownloadLinkClick(event, reduxStore) {
// This function purpose is to determine if the PDF is valid on click.
// Once it's done, it passes information to DownloadHandler() which determines what to render.
event.preventDefault();
Function schema
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function schema(currentSchema, userOptions) {
const options = {
fields: ['serviceBranch', 'dateRange'],
required: [],
...userOptions,
Function createOldSchoolPage
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function createOldSchoolPage(schema) {
const { trainingEndDate, reasonForChange } = schema.properties;
const { school, date } = schema.definitions;
return {
path: 'school-selection/old-school',
Function transformForSubmit
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function transformForSubmit(formConfig, form) {
const transformedData = JSON.parse(
formsSystemTransformForSubmit(formConfig, form),
);
Function CollapsibleList
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CollapsibleList = () => {
return (
<div id="SupportingFiles-collapsiblePanel">
<div className="input-section">
<div
Function onUpdateClicked
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onUpdateClicked = async () => {
const addressState = {
...stateAndZip,
state: stateAndZip.stateCode,
};
Function IdentityVerificationForm
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IdentityVerificationForm = props => {
const { data, onLogin, onChange, onSubmit } = props;
const {
vesRecordFound,
hasServerError,
Function WarningStatus
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WarningStatus = () => {
const {
statusCode,
applicationDate,
enrollmentDate,
Function confirmationPageNextStepsParagraph
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const confirmationPageNextStepsParagraph = formData => {
if (
hasActiveCompensationITF({ formData }) &&
hasActivePensionITF({ formData })
) {
Function IntroductionPage
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const IntroductionPage = props => {
const { route, router } = props;
const startForm = useCallback(
() => {
Function formatAddress
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function formatAddress(address) {
/* eslint-disable prefer-template */
const {
country,
postalCode,
Function VetTec
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VetTec = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert': 'help with VET TEC program debt',
Function getBenefitOptionText
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getBenefitOptionText(
option,
value,
isVeteran,
awardEffectiveDate,
Function sortMessages
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data => {
return data.sort((a, b) => {
if (
[SENT_DATE_DESCENDING.value, DRAFT_DATE_DESCENDING.value].includes(
sortOrder,
Function updateFacilitySortMethod
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function updateFacilitySortMethod(sortMethod, uiSchema) {
return async (dispatch, getState) => {
let location = null;
const { facilities } = selectCovid19VaccineNewBooking(getState());
const calculatedDistanceFromCurrentLocation = facilities.some(
Function fetchRequestDetails
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchRequestDetails(id) {
return async (dispatch, getState) => {
try {
const state = getState();
let request = selectAppointmentById(state, id, [
Function getPageContent
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getPageContent() {
const { claim } = this.props;
// Return null if the claim/ claim.attributes dont exist
if (!claimAvailable(claim)) {