Showing 4,231 of 14,884 total issues
Function appointmentDetails
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const appointmentDetails = testId => {
return (
<div data-testid={testId}>
<div
className="vads-u-margin-top--1p5 vads-u-margin-bottom--1"
Function addRequiredDescriptionsToDisabilitiesBDD
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addRequiredDescriptionsToDisabilitiesBDD = formData => {
if (!isBDDForm || !formData.newDisabilities) {
return formData;
}
Function makeUiSchema
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeUiSchema(itemId) {
return {
'ui:title': ({ formData }) =>
detailsPageBegin(
additionalExposuresPageTitle,
Function postApiData
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
url => {
const localStorageFiles = localStorage.getItem('askVAFiles');
const parsedLocalStoragefiles = JSON.parse(localStorageFiles);
const transformedResponse = {
...sendReply,
Function App
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const App = () => {
const {
TOGGLE_NAMES: { accreditedRepresentativePortalFrontend: appToggleKey },
useToggleLoadingValue,
useToggleValue,
Function newFolder
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const newFolder = folderName => async dispatch => {
try {
const response = await createFolder(folderName);
dispatch({
Function foldersReducer
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const foldersReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Folder.GET_LIST:
return {
...state,
Function ActionButtons
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ActionButtons(props) {
const { eligibleForRequests, facilityId } = props;
const history = useHistory();
const dispatch = useDispatch();
const { requestDateTime } = useSelector(getNewAppointmentFlow);
Function initialSchema
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialSchema() {
let newSchema = initialSchema;
if (filteredClinics.length === 1) {
const clinic = filteredClinics[0];
Function makeHeaderLabel
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const makeHeaderLabel = () => {
const removed = [];
const added = [];
loaded.forEach(loadedCode => {
Function getTab
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getTab = (tabName, label) => {
const activeTab = tabName === tab;
const tabClasses = classNames(
{
'active-search-tab': activeTab,
Function clearAllFilters
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const clearAllFilters = () => {
dispatchFilterChange({
...filters,
schools: true,
excludedSchoolTypes: [
Function InfoDisclaimer
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const InfoDisclaimer = () => {
return (
<div className="border-bottom vads-u-margin-top--3 vads-u-margin-bottom--2 ">
<p
className="vads-u-font-family--sans vads-u-color--gray-dark"
Function AccreditationModalContent
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function AccreditationModalContent() {
return (
<>
<p>
The goal of accreditation is to ensure the education provided by
Function MockAuthButton
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function MockAuthButton() {
const [authType, setAuthType] = useState(CSP_IDS.LOGIN_GOV);
const [mockLoginError, setMockLoginError] = useState('');
return [environments.LOCALHOST, environments.VAGOVDEV].includes(
environment.getRawBuildtype(),
Function BenefitsProfileWrapper
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const BenefitsProfileWrapper = () => {
const { loading, latestAddress } = useData();
const applicantName = latestAddress?.veteranName;
const { profile } = useSelector(state => state.user || {});
const {
Function SignInEmailAlert
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const SignInEmailAlert = () => {
const { label } = useSignInServiceProvider();
const [dismissed, setDismissed] = useSessionStorage(
'dismissedCredentialAlerts',
Function genAndDownloadCCD
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const genAndDownloadCCD = (firstName, lastName) => async dispatch => {
dispatch({ type: Actions.Downloads.GENERATE_CCD });
try {
// GET LIST OF CCDs
const generate = await generateCCD();
Function generatePdf
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async () => {
try {
setDownloadStarted(true);
dispatch(clearAlerts());
Function AddressAuthorizationPolicy
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AddressAuthorizationPolicy = props => {
const { formData } = props;
return (
<div className="vads-u-margin-y--3">