Showing 12,851 of 12,851 total issues
Function getBenefitOptionText
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getBenefitOptionText(
option,
value,
isVeteran,
awardEffectiveDate,
Function SearchResults
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SearchResults = () => {
const {
awaitingResults,
searchResults,
searchFolder,
Function BackendAppointmentServiceAlert
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function BackendAppointmentServiceAlert() {
const {
backendServiceFailures,
futureStatus,
pastStatus,
Function NextSteps
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function NextSteps() {
return (
<div className="next-steps-container vads-u-margin-bottom--4">
<h3 className="vads-u-margin-top--0 vads-u-margin-bottom--3">
Next steps
Function renderEnrolled
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderEnrolled = () => {
const {
enrolled: shouldRenderEnrolled,
enrolledOld: shouldRenderEnrolledOld,
} = displayedInputs;
Function doSearch
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const doSearch = event => {
if (event) {
event.preventDefault();
if (
validateSearchTermSubmit(
Function deletePhoneNumberSuccess
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const deletePhoneNumberSuccess = () => {
return [
rest.delete(`${prefix}/v0/profile/telephones`, (req, res, ctx) => {
return res(
ctx.json({
Function fetchSearchResults
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchSearchResults(query, page, options) {
return dispatch => {
dispatch({ type: FETCH_SEARCH_RESULTS, query });
let queryString = `/search?query=${encodeURIComponent(query)}`;
Function getEnrollmentData
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getEnrollmentData(apiVersion) {
return dispatch =>
apiRequest(
'/post911_gi_bill_status',
apiVersion,
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div>
<div className="footer-inner">
<DesktopLinks
Function deriveNavItemsLookup
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deriveNavItemsLookup = options => {
// Derive the properties from options.
const rootPath = get(options, 'rootPath');
const depth = get(options, 'depth', 0);
const items = get(options, 'items', []);
Function initMHVTermsMocks
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initMHVTermsMocks(token, termsName = 'mhvac', bypass = true) {
mock(token, {
path: `/v0/terms_and_conditions/${termsName}/versions/latest`,
verb: 'get',
value: {
Function PreviousNames
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function PreviousNames(props) {
const { values, setFieldValue } = useFormikContext();
useEffect(
() => {
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId, data } = form;
const submitDate = new Date(submission?.timestamp);
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId, data } = form;
const submitDate = new Date(submission?.timestamp);
const { fullName } = data;
Function buildLevelOneLinks
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildLevelOneLinks = (sectionData, index) => {
const isDropdown = sectionData?.menuSections;
const sectionOpen = levelOneIndexOpen === index;
if (isDropdown) {
Function redirectIfNecessary
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const redirectIfNecessary = currentWindow => {
// Check if the route matches an absolute cross-domain redirect.
const absoluteCrossDomainRedirects = crossDomainRedirects?.filter(
redirect => !redirect?.catchAll && !redirect?.isToSubdomain,
);
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const fields = [
{
label: 'Subject',
value: 'subject',
Function render
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { formId, data } = form;
const { fullName } = data;
Function setupPages
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const setupPages = formConfig => {
const chapterKeys = Object.keys(formConfig?.chapters || {});
const chapterTitles = Object.values(formConfig?.chapters || {}).map(
value => value.title,
);