Showing 4,231 of 14,884 total issues
Function AutoSSO
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AutoSSO(props) {
const {
authenticatedWithOAuth,
hasCalledKeepAlive,
transactionId,
Function overrideAnimations
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function overrideAnimations(client) {
const styles = `* {
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
Function formatDowntime
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const formatDowntime = dateTime => {
let date;
const timeZone = 'America/New_York';
if (dateTime instanceof Object) {
Function replaceSchema
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
replaceSchema: (formData, schema, _uiSchema, index, path) => {
if (schema.maxLength) {
cityMaxLength = schema.maxLength;
}
const addressPath = getAddressPath(path); // path is ['address', 'currentField']
Function updateFormDataAddress
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const updateFormDataAddress = (
oldFormData,
formData,
path,
index = null, // this is included in the path, but added as
Function updateFormDataAddress
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const updateFormDataAddress = (
oldFormData,
formData,
path,
index = null, // this is included in the path, but added as
Function lcsSingleVsMulti
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lcsSingleVsMulti(
userInput,
disabilityLabels,
threshold = THRESHOLD,
splitreg = REGEX_SPLIT,
Function pageAndDataState
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(state, page) => {
const definitions = {
...(formConfig.defaultDefinitions || {}),
...page.schema.definitions,
};
Function prefillTransformer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function prefillTransformer(pages, formData, metadata) {
const newFormData = formData;
for (const addressType of ['permanentAddress', 'temporaryAddress']) {
if (newFormData[addressType]?.country) {
Function handleChange
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleChange(event) {
if (props?.showMebEnhancements08) {
if (props.email !== event) {
props.setFormData({
...props?.formData,
Function setupMap
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const setupMap = () => {
const mapContainerElement = document.getElementById(mapboxGlContainer);
if (!mapContainerElement) {
return null;
}
Function VABenefitsCall
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function VABenefitsCall() {
return (
<div>
<p className="p1">
<strong>To check on the status of your claim or appeal</strong>, use our{' '}
Function requiredLocations
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const requiredLocations = newForm => {
const dates = newForm
? {
treatmentDate: { type: 'string' },
noDate: { type: 'boolean' },
Function mainTransform
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mainTransform = formData => {
const { benefitType, additionalDocuments } = formData;
const attributes = {
// fall back to compensation; this will fix a few existing submission
Function mainTransform
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mainTransform = formData => {
const { benefitType, additionalDocuments } = formData;
const attributes = {
// fall back to compensation; this will fix a few existing submission
Function fetchUser
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchUser() {
return async dispatch => {
dispatch({
type: FETCH_USER,
});
Function onclick
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
radio.onclick = e => {
let title = e.target.attributes.name.value;
if (hasVeteran && veteranLabelMap.has(title))
title = veteranLabelMap.get(title);
else if (nonVeteranMap.has(title)) title = nonVeteranMap.get(title);
Function getCemeteries
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getCemeteries() {
return fetch(`${environment.API_URL}/v0/preneeds/cemeteries`, {
credentials: 'include',
headers: {
'X-Key-Inflection': 'camel',
Function CustomSSNReviewPage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function CustomSSNReviewPage(props) {
const maskedSSN = maskSSN(props?.data?.veteranSocialSecurityNumber?.ssn);
return props.data ? (
<div className="form-review-panel-page">
<div className="form-review-panel-page-header-row">
Function SupportingFilesOrAffidavitInfo
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SupportingFilesOrAffidavitInfo = () => {
return (
<>
<p>
You can also upload supporting files or an affidavit (a written