Showing 12,848 of 12,848 total issues
Function handleSubmit
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = e => {
e.preventDefault();
const {
facilityType,
Function thirdPartyAppsReducer
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const thirdPartyAppsReducer = (state = initialState, action) => {
switch (action.type) {
case FETCH_RESULTS: {
return {
...state,
Function OmbInfo
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const OmbInfo = () => {
const resBurden = 10;
return (
<va-omb-info
Function transformForSubmit
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function transformForSubmit(formConfig, form) {
const transformedData = JSON.parse(
formsSystemTransformForSubmit(formConfig, form),
);
Function MailingAddressInfoPageTaskYellow
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MailingAddressInfoPageTaskYellow = () => {
const mailingAddress = useSelector(selectVAPMailingAddress);
const showSuccessAlert = window.sessionStorage.getItem(
'onReviewPageContactInfoEdit',
Function mockSearchResults
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mockSearchResults() {
return {
data: [
{
distance: 1.25,
Function enrollmentStatus
has 44 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 useDefaultFormData
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useDefaultFormData = () => {
const { totalRating } = useSelector(state => state.disabilityRating);
const { data: formData } = useSelector(state => state.form);
const featureToggles = useSelector(selectFeatureToggles);
const { dob: veteranDob } = useSelector(selectProfile);
Function facilitiesList
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
facility => {
const processed = processPhoneNumber(facility.attributes.phone.main);
const phone = processed.processed ? (
<va-telephone
contact={processed.phone}
Function Complete
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Complete = props => {
const { router } = props;
const { t } = useTranslation();
const { updateError } = useUpdateError();
const { isLoading, travelPayClaimError } = usePostTravelOnlyClaim({ router });
Function fetchPreCheckIn
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
() => {
api.v2
.getPreCheckInData(token, reload)
.then(json => {
if (json.error) {
Function updateSchema
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSchema: (formData, schema, uiSchema) => {
const { thirdPartyType, personFullName, organizationName } = formData;
let thirdPartyName = 'the third-party';
let labelString = '';
Function PageFieldSummary
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PageFieldSummary = props => {
const { renderedProperties, defaultEditButton, title, updatedPage } = props;
const { allPages } = setupPages(formConfig);
const currentPage = allPages.filter(page => page.key === updatedPage);
const alertPage = allPages.filter(page => page.title === title);
Function MakePayment
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const MakePayment = () => {
useEffect(() => {
recordEvent({
event: 'howToWizard-alert-displayed',
'reason-for-alert': 'make a payment on a debt',
Function alertsReducer
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const alertsReducer = (state = initialState, action) => {
switch (action.type) {
case Actions.Alerts.CLOSE_ALERT:
// Set visibility to false and set ALL alerts to inactive.
return {
Function parseTestFile
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseTestFile(features, code) {
const stack = [];
const ast = parser.parse(code, { sourceType: 'module', plugins: ['jsx'] });
traverse.default(ast, {
enter(path) {
Function transformFormToVARequest
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function transformFormToVARequest(state) {
const facility = getChosenFacilityInfo(state);
const data = getFormData(state);
const typeOfCare = getTypeOfCare(data);
const siteId = getSiteIdForChosenFacility(state);
Function ScheduleCernerPage
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ScheduleCernerPage() {
const dispatch = useDispatch();
const facility = useSelector(getChosenFacilityInfo);
const history = useHistory();
Function submitRequest
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submitRequest(id, cstClaimPhasesEnabled = false) {
return dispatch => {
dispatch({
type: SUBMIT_DECISION_REQUEST,
});
Function onUpdateClicked
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onUpdateClicked = async () => {
const addressState = {
...stateAndZip,
state: stateAndZip.stateCode,
};