Showing 4,231 of 14,884 total issues
Function DecisionReviewPage
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DecisionReviewPage = () => {
useEffect(() => {
setTimeout(() => {
focusElement('#main h2');
});
Function ConfirmationPage
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
resetStoredSubTask();
return (
<ConfirmationDecisionReviews
Function VeteranInformation
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function VeteranInformation(props) {
const state = useFormikContext();
return (
<>
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId } = form;
const appliedForVaEducationBenefits = _.get(
Function ResultsList
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ResultsList = props => {
const searchResultTitle = useRef();
const { inProgress, searchResults, query } = props;
Function renderValue
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderValue = (key, value) => {
// Skip undefined values
if (value === undefined) {
return null;
}
Function mapStateToProps
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const mapStateToProps = (state, ownProps) => {
const { fieldName } = ownProps;
const { transaction, transactionRequest } = selectVAPServiceTransaction(
state,
Function AppContent
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function AppContent() {
const [data, setData] = useState({});
const [hasError, setHasError] = useState(false);
const [isRequestDone, setIsRequestDone] = useState(false);
Function noDisabilityRatingContent
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const noDisabilityRatingContent = errorCode => {
let content;
let status;
if (isServerError(errorCode)) {
Function useDefaultFormData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useDefaultFormData = () => {
const { totalRating } = useSelector(state => state.disabilityRating);
const { data: formData } = useSelector(state => state.form);
const featureToggles = useSelector(selectFeatureToggles);
const { dob: veteranDob } = useSelector(selectProfile);
Function mapStateToProps
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const mapStateToProps = (state, ownProps) => {
const { fieldName } = ownProps;
const { transaction, transactionRequest } = selectVAPServiceTransaction(
state,
Function mapStateToProps
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const mapStateToProps = (state, ownProps) => {
const { fieldName } = ownProps;
const { transaction, transactionRequest } = selectVAPServiceTransaction(
state,
Function MultipleAppointmentBody
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MultipleAppointmentBody = props => {
const {
error,
appointments,
selectedAppointment,
Function EmergencyContact
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const EmergencyContact = props => {
const { router } = props;
const { t } = useTranslation();
const selectVeteranData = useMemo(makeSelectVeteranData, []);
Function TravelPayClaimFilters
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function TravelPayClaimFilters(props) {
const {
statusesToFilterBy,
checkedStatusFilters,
onStatusFilterChange,
Function calculateIncome
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const calculateIncome = (
enhancedFSRActive,
employmentRecords = [],
addlIncRecords = [],
socialSecurity = {},
Function updateFormData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
e.preventDefault();
if (!isValidCurrency(grossMonthlyIncome.value)) {
setIncomeError(true);
Function getAllExpenses
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getAllExpenses = formData => {
const {
expenses: {
creditCardBills = [],
expenseRecords = [],
Function captureError
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function captureError(
err,
skipRecordEvent = false,
customTitle,
extraData,
Function ProviderAddress
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ProviderAddress = props => {
const { address, showDirections = false, directionsName, phone } = props;
return (
<address data-testid="address-block">
<p className="vads-u-margin--0">