Showing 12,761 of 12,761 total issues
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 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(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(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) {
// TODO: once backend prefill is implemented, refactor to
// remove test-data with incoming prefill data
const { preparerType } = formData;
const newFormData = {
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 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'));
};
Function getCancelInfo
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getCancelInfo(state) {
const {
appointmentToCancel,
showCancelModal,
cancelAppointmentStatus,
Function generatePhaseItems
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generatePhaseItems = () => {
const {
currentPhaseBack,
previousPhases,
} = claim.attributes.claimPhaseDates;
Function VeteranSuccessModalContent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function VeteranSuccessModalContent() {
return (
<>
<p>
This program supports service members, Veterans, and qualified
Function addMapMarker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addMapMarker = (institution, index, locationBounds, mapMarkers) => {
const { latitude, longitude, name } = institution;
const lngLat = new mapboxgl.LngLat(longitude, latitude);
const markerElement = document.createElement('div');
Function validateSearchTermSubmit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const validateSearchTermSubmit = (
searchTerm,
dispatchError,
error,
filters,
Function buildSearchFilters
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const buildSearchFilters = filters => {
const clonedFilters = _.cloneDeep(filters);
delete clonedFilters.expanded;
delete clonedFilters.search;
Function EightKeysModalContent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function EightKeysModalContent() {
return (
<>
<p>
The “8 Keys to Veterans’ Success” are steps that postsecondary
Function aboutTheSchool
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function aboutTheSchool(
onChangeCheckbox,
options,
smallScreen,
automatedTest = false,
Function institutionFieldValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const institutionFieldValue = (
field,
rowIndex,
colIndex,
institution,