Showing 12,717 of 12,717 total issues
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const buttonClasses = classNames(
this.props.cssClass,
{ 'va-btn-withicon': this.props.icon },
'va-dropdown-trigger',
Function generateFooterContent
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateFooterContent = async (
doc,
parent,
data,
config,
Function SsnField
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function SsnField(fieldProps) {
const props = vaTextInputFieldMapping(fieldProps);
const [val, setVal] = useState(props.value);
const [displayVal, setDisplayVal] = useState(props.value);
Function checkAutoSession
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function checkAutoSession(
loggedIn,
ssoeTransactionId,
profile = {},
) {
Function VaRadioField
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function VaRadioField(props) {
const mappedProps = vaRadioFieldMapping(props);
const enumOptions =
Array.isArray(props.childrenProps.schema.enum) &&
optionsList(props.childrenProps.schema);
Function vaRadioFieldMapping
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function vaRadioFieldMapping(props) {
const {
description,
textDescription,
DescriptionField,
Function recalculateSchemaAndData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function recalculateSchemaAndData(initialState) {
return Object.keys(initialState.pages).reduce((state, pageKey) => {
// on each data change, we need to do the following steps
// Recalculate any required fields, based on the new data
const page = state.pages[pageKey];
Function fileUiSchema
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function fileUiSchema(label, userOptions = {}) {
return {
'ui:title': label,
'ui:field': FileField,
'ui:options': {
Function TextNotificationsDisclaimer
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TextNotificationsDisclaimer() {
return (
<>
<h4>What to know about text notifications</h4>
<ul>
Function CustomEmailField
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function CustomEmailField(props) {
function handleChange(event) {
if (props?.showMebEnhancements08) {
if (props.email !== event) {
props.setFormData({
Function mainTransform
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mainTransform = formData => {
const informalConference = showNewHlrContent(formData)
? formData.informalConferenceChoice === 'yes'
: ['me', 'rep'].includes(formData.informalConference);
const attributes = {
Function onContinueClick
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onContinueClick = async () => {
const year = yearInput || new Date().getFullYear();
if (dependentsInput && year && zipCodeInput) {
setSubmitting(true);
Function strongCaseTips
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const strongCaseTips = () => {
if (specialReason) {
const { name, type } = reasonsObj[reason];
return (
<>
Function enrollmentStatus
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function enrollmentStatus(state = ENROLLMENT_STATUS_INIT_STATE, action) {
const { response = {}, type } = action;
const {
FETCH_ENROLLMENT_STATUS_STARTED,
FETCH_ENROLLMENT_STATUS_SUCCEEDED,
Function FinancialStatusWarning
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FinancialStatusWarning = () => {
const THIS_YEAR = LAST_YEAR + 1;
const NEXT_YEAR = THIS_YEAR + 1;
return (
<va-alert
Function LoginAlert
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LoginAlert = () => {
const { ID_ME, LOGIN_GOV } = CSP_IDS;
const heading = `Verify your identity with Login.gov or ID.me to change your direct deposit information online`;
return (
<VaAlert status="continue" visible uswds>
Function fileUiSchema
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function fileUiSchema(label, userOptions = {}) {
return {
'ui:title': label,
'ui:field': FileField,
'ui:options': {
Function GetFormHelp
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function GetFormHelp() {
// Is the current page a confirmation page under a CHAMPVA form?
const isChampvaConfirmation = /.*champva.*confirmation(\/)?$/.test(
window.location.href,
);
Function uploadWithInfoComponent
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uploadWithInfoComponent(fileList, category, resources) {
return {
uiSchema: {
...acceptableFileList(fileList || []),
'view:additionalResources': {
Function withAuthorization
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const withAuthorization = (Component, options) => {
const WrappedComponent = props => {
const { appName } = options;
const { router } = props;
const selectCurrentContext = useMemo(makeSelectCurrentContext, []);