Showing 4,231 of 14,884 total issues
Function AreaOfDisagreementReviewField
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const AreaOfDisagreementReviewField = props => {
const { defaultEditButton, formData } = props;
if (!getIssueName(formData)) {
return null;
Function fetchResultsThunk
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchResultsThunk = () => async dispatch => {
// Change the `fetching` state in our store.
dispatch(
fetchResultsAction({
hideFetchingState: true,
Function fileUploadUi
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fileUploadUi(content) {
return {
...fileUiSchema(content.label, {
buttonText: 'Upload file',
addAnotherLabel: 'Upload another file',
Function formatMenuItems
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const formatMenuItems = menuItems => {
const formattedMenuItems = [];
if (menuItems && isArray(menuItems)) {
return menuItems;
Function phoneUiSchema
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const phoneUiSchema = fieldName => {
return {
inputPhoneNumber: {
'ui:title': `${fieldName} (U.S. numbers only)`,
'ui:webComponentField': VaTextInputField,
Function mockData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mockData = (state = INITIAL_STATE, action) => {
switch (action.type) {
case UPDATE_PENDING_VERIFICATIONS:
// this delets all pending verifications award_ids
return {
Function TravelVehicle
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TravelVehicle = props => {
const { router } = props;
const { t } = useTranslation();
const { updateError } = useUpdateError();
const additionalInfoItems = [
Function DependentListLoopForm
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DependentListLoopForm = props => {
const { children, data, page, onChange, onSubmit } = props;
const { isLoggedIn } = useSelector(selectAuthStatus);
const { fullName = {} } = data || {};
Function updateFormPages
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormPages = (
patientDemographicsStatus,
pages,
URLS,
isTravelReimbursementEnabled = false,
Function withError
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const withError = Component => {
const WrappedComponent = props => {
const selectError = useMemo(makeSelectError, []);
const { error } = useSelector(selectError);
Function makeSchema
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeSchema(locationId) {
return {
type: 'object',
properties: {
toxicExposure: {
Function changeDisabilityName
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const changeDisabilityName = (oldData, newData, changedIndex) => {
const oldId = sippableId(oldData.newDisabilities[changedIndex]?.condition);
const newId = sippableId(newData.newDisabilities[changedIndex]?.condition);
let result = removeDisability(oldData.newDisabilities[changedIndex], newData);
Function makeSchema
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeSchema(locationId) {
return {
type: 'object',
properties: {
toxicExposure: {
Function makeSchema
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeSchema(itemId) {
return {
type: 'object',
properties: {
toxicExposure: {
Function makeSchema
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeSchema(locationId) {
return {
type: 'object',
properties: {
toxicExposure: {
Function prefillTransformer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function prefillTransformer(pages, formData, metadata) {
const prefillPersonalInformation = data => {
return {
aboutYourself: {
...data.personalInformation,
Function addressUI
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addressUI = props => {
const {
label,
hint = null,
requireCounty = false,
Function AmOther
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AmOther = props => {
const { setWizardStatus } = props;
useEffect(
() => {
setWizardStatus(false);
Function MaintenanceAlert
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MaintenanceAlert = () => {
return (
<va-alert
class="row vads-u-margin-top--3 vads-u-margin-left--1"
status="info"
Function UnAuthBanner
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UnAuthBanner = () => {
const dispatch = useDispatch();
const handleSignIn = () => {
dispatch(toggleLoginModal(true, 'mhv-sm-landing-page'));
};