Showing 3,732 of 12,811 total issues
Function generateResultsContent
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateResultsContent = async (doc, parent, data) => {
const results = doc.struct('Sect', {
title: 'Results',
});
parent.add(results);
Function formatAddress
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function formatAddress(address) {
/* eslint-disable prefer-template */
const {
addressLine1,
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
accountLevel,
accountState,
errors,
Function addressValidationSuccessTwoConfirmedSuggestions
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addressValidationSuccessTwoConfirmedSuggestions() {
return asyncReturn(
{
addresses: [
{
Function mapStateToProps
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const mapStateToProps = (state, ownProps) => {
const { fieldName } = ownProps;
const { transaction, transactionRequest } = selectVAPServiceTransaction(
state,
Function ConfirmationPage
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
resetStoredSubTask();
return (
<ConfirmationDecisionReviews
Function ConfirmationPage
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ConfirmationPage = () => {
resetStoredSubTask();
return (
<ConfirmationDecisionReviews
Function VeteranInformation
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function VeteranInformation(props) {
const state = useFormikContext();
return (
<>
Function render
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { form } = this.props;
const { submission, formId } = form;
const appliedForVaEducationBenefits = _.get(
Function mapStateToProps
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const mapStateToProps = (state, ownProps) => {
const { fieldName } = ownProps;
const { transaction, transactionRequest } = selectVAPServiceTransaction(
state,
Function ResultsList
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ResultsList = props => {
const searchResultTitle = useRef();
const { inProgress, searchResults, query } = props;
Function AppContent
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function AppContent() {
const [data, setData] = useState({});
const [hasError, setHasError] = useState(false);
const [isRequestDone, setIsRequestDone] = useState(false);
Function noDisabilityRatingContent
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const noDisabilityRatingContent = errorCode => {
let content;
let status;
if (isServerError(errorCode)) {
Function MultipleAppointmentBody
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MultipleAppointmentBody = props => {
const {
error,
appointments,
selectedAppointment,
Function EmergencyContact
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const EmergencyContact = props => {
const { router } = props;
const { t } = useTranslation();
const selectVeteranData = useMemo(makeSelectVeteranData, []);
Function TravelPayClaimFilters
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function TravelPayClaimFilters(props) {
const {
statusesToFilterBy,
checkedStatusFilters,
onStatusFilterChange,
Function updateFormData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const updateFormData = e => {
e.preventDefault();
if (!isValidCurrency(grossMonthlyIncome.value)) {
setIncomeError(true);
Function captureError
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function captureError(
err,
skipRecordEvent = false,
customTitle,
extraData,
Function generateProgressNoteContent
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generateProgressNoteContent = record => {
const content = {
details: {
header: 'Details',
items: [
Function DynamicRadioWidget
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function DynamicRadioWidget(props) {
const { formData, onChange } = props;
let organizationList = null;
let upperContent = null;
const organizations =