Showing 4,231 of 14,884 total issues
Function App
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const App = () => {
return (
<div>
<div className="row">
<VaBreadcrumbs
Function FollowUs
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FollowUs = () => {
return (
<section>
<h4>Follow us</h4>
<ul className="va-nav-linkslist-list social">
Function ListBlock
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ListBlock = props => {
const {
heading,
headingLevel = 3,
items,
Function fetchRepStatus
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchRepStatus = async () => {
setIsLoading(true);
setError(null);
try {
Function sendPreCheckInData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function sendPreCheckInData() {
// Set pre-checkin complete and send demographics flags.
const preCheckInData = { uuid: token };
if (demographicsUpToDate) {
Function WrappedComponent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WrappedComponent = props => {
const { appName } = options;
const { router } = props;
const selectCurrentContext = useMemo(makeSelectCurrentContext, []);
const { token, permissions } = useSelector(selectCurrentContext);
Function updateSchema
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, schema, uiSchema, index) => {
let militaryBasePath = livesOnMilitaryBasePath;
let countryPath = path;
if (typeof index === 'number') {
militaryBasePath = insertArrayIndex(
Function FormFooter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function FormFooter() {
return (
<>
<div className="row">
<div className="usa-width-two-thirds medium-8 columns">
Function transformForSubmit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function transformForSubmit(formConfig, form) {
const transformedData = JSON.parse(
sharedTransformForSubmit(formConfig, form),
);
const preparerTypeIdData = {
Function updateSchema
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, schema, uiSchema) => {
const { claimOwnership } = formData;
let labels = { veteran: 'Veteran', 'non-veteran': 'Non-Veteran' };
let title;
Function ContactBenefits
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ContactBenefits = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert': 'debt related to separation pay/attorney fees',
Function WiderThanMobileLogoRow
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WiderThanMobileLogoRow = () => {
return (
<div className="row va-flex usa-grid usa-grid-full va-header-logo-menu">
<div className="va-header-logo-wrapper">
<a
Function UtilityBillChecklist
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UtilityBillChecklist = () => {
const dispatch = useDispatch();
const formData = useSelector(state => state.form.data);
const { utilityRecords = [] } = formData;
Function VRECounselorNotification
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VRECounselorNotification = () => {
useEffect(() => {
recordEvent({
event: `howToWizard-alert-displayed`,
'reason-for-alert': 'ineligibility - eligible for chapter 31',
Function IneligibleNotice
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const IneligibleNotice = () => {
useEffect(() => {
recordEvent({
event: `howToWizard-notice-displayed`,
'reason-for-alert': 'ineligibility - not a service member or veteran',
Function openContactFacilitiesPage
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function openContactFacilitiesPage() {
return async (dispatch, getState) => {
try {
const initialState = getState();
const newBooking = selectCovid19VaccineNewBooking(initialState);
Function message
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const message = (state = initialState, action) => {
switch (action.type) {
case MESSAGE_MOVE_STARTED:
return {
...state,
Function generateDocsFiled
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateDocsFiled = docsFiled => {
return docsFiled.map(document => {
if (document.id && document.status) {
return {
requestTypeText: `Request type: ${document.displayName}`,
Function addStatusToIssues
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function addStatusToIssues(issues) {
return issues.map(issue => {
let status = '';
switch (issue.lastAction) {
case ISSUE_STATUS.fieldGrant:
Function groupTimelineActivity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function groupTimelineActivity(events) {
const phases = {};
let activity = [];
const phaseEvents = events