Showing 4,231 of 14,884 total issues
Function UploadFileToVa
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UploadFileToVa = () => {
return (
<div>
<MainContentSubDiv id="upload-files-to-va" header="Upload files to VA">
<LiSpanAndVaLinkAndPTag
Function OMBInfo
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const OMBInfo = () => {
const expDate = '07/31/2027';
const ombNum = '2900-0091';
const resBurden = '27';
return (
Function handleTouClick
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleTouClick = async type => {
const params = {
...(redirectLocation.searchParams.get('terms_code') && {
// eslint-disable-next-line camelcase
terms_code: redirectLocation.searchParams.get('terms_code'),
Function render
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.state.loading) {
return <va-loading-indicator message="Loading facilities..." />;
}
Function renderConfirmationMessage
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderConfirmationMessage = () => {
return (
<Wrapper
pageTitle={t('youre-checked-in')}
testID="multiple-appointments-confirm"
Function Demographics
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Demographics = props => {
const dispatch = useDispatch();
const { router } = props;
const {
goToNextPage,
Function generateFeatureToggles
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateFeatureToggles = (toggles = {}) => {
const {
checkInExperienceEnabled = true,
preCheckInEnabled = true,
checkInExperienceTranslationDisclaimerSpanishEnabled = true,
Function convertCountryCode
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function convertCountryCode(savedData) {
const addressPaths = [
{
path: 'incident0.incidentLocation.country',
returnUrl: 'disabilities/ptsd-incident-location-0',
Function getMonthlyIncome
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getMonthlyIncome = formData => {
const {
additionalIncome: {
addlIncRecords = [],
spouse: { spAddlIncome = [] } = {},
Function updateFormData
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
e.preventDefault();
if (!isValidCurrency(grossMonthlyIncome.value)) {
setIncomeError(true);
Function sendReply
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => async dispatch => {
try {
await createReplyToMessage(replyToId, message, attachments);
dispatch(
addAlert(
Function FoldersList
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FoldersList = props => {
const { folders, showUnread } = props;
const folderNameDdAction = folderName => {
const isCustomFolder =
Function useGetReferralsAndRequests
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useGetReferralsAndRequests = () => {
const [loading, setLoading] = useState(true);
const [referralsError, setReferralsError] = useState(false);
const [requestsError, setRequestsError] = useState(false);
const dispatch = useDispatch();
Function MockAuth
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function MockAuth() {
return (
<section className="login">
<va-banner
type="warning"
Function createAppealsSuccess
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createAppealsSuccess = (updatedDaysAgo = 10) => {
const daysAgo = addDays(new Date(), -updatedDaysAgo);
const formattedDaysAgo = format(daysAgo, 'yyyy-MM-dd');
return {
Function notQualifiedWarning
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function notQualifiedWarning() {
return (
<div className="usa-alert usa-alert-warning usa-content not-qualified">
<div className="usa-alert-body">
<h2>You don't qualify</h2>
Function formatAddress
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function formatAddress(address) {
/* eslint-disable prefer-template */
const {
addressLine1,
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
accountLevel,
accountState,
errors,
Function addressValidationSuccessTwoConfirmedSuggestions
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addressValidationSuccessTwoConfirmedSuggestions() {
return asyncReturn(
{
addresses: [
{
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,