Showing 4,231 of 14,884 total issues
Function handleCompareUpdate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleCompareUpdate = e => {
if (e.target.checked && !compareChecked) {
if (compare.search.loaded.length === 3) {
recordEvent({
event: 'gibct-form-change',
Function fetchSearchByNameResults
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchSearchByNameResults(name, page, filters, version) {
const params = { name, page, ...rubyifyKeys(buildSearchFilters(filters)) };
if (version) {
params.version = version;
}
Function handleCompareUpdate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleCompareUpdate = e => {
if (e.target.checked && !compareChecked) {
if (compareLength === 3) {
recordEvent({
event: 'gibct-form-change',
Function renderMilitaryDetails
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderMilitaryDetails = () => {
const name = 'Your military details';
return (
<AccordionItem
Function vetTecCheckbox
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const vetTecCheckbox = (
vettec,
preferredProvider,
handleVetTecChange,
handlePreferredProviderChange,
Function handleScroll
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleScroll = () => {
const topOffset =
document
.getElementById('estimate-your-benefits-accordion')
?.getBoundingClientRect().top -
Function otherCheckboxes
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function otherCheckboxes(
handleVetTechPreferredProviderChange,
options,
smallScreen,
automatedTest = false,
Function FourthFAQSection
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const FourthFAQSection = () => {
return (
<>
<h3 className="dhp-faq-section-header">Feedback</h3>
<va-accordion
Function render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="calculator-form">
<p>Use the fields below to update your benefits.</p>
{this.renderApprovedProgramsSelector()}
Function editAddressSuccess
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rest.post(`${prefix}/v0/profile/address_validation`, (req, res, ctx) => {
return res(
ctx.json({
addresses: [
{
Function generateAllergyTextContent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateAllergyTextContent = () => {
if (isAcceleratingAllergies) {
return `
${crisisLineHeader}\n\n
${allergyData.name}\n
Function formatAppointmentsContentToText
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const formatAppointmentsContentToText = content => {
const sections = content.results.items;
// Preface text
const { preface } = content.results;
Function convertAdmissionAndDischargeDetails
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const convertAdmissionAndDischargeDetails = record => {
const summary = getNote(record);
const admissionDate = getAdmissionDate(record, summary);
const dischargeDate = getDischargeDate(record, summary);
Function getClaims
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getClaims() {
const startTimestampMs = Date.now();
return dispatch => {
dispatch({ type: FETCH_CLAIMS_PENDING });
Function labAndTestDetails
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const labAndTestDetails = useMemo(() => {
return {
name: 'ANKLE LEFT 3 VIEWS',
category: 'Radiology',
orderedBy: 'DOE, JANE A',
Function imageAlertProcessing
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const imageAlertProcessing = imageRequest => {
const percent =
imageRequest.status === studyJobStatus.NEW
? 0
: imageRequest.percentComplete;
Function LastFilledInfo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LastFilledInfo = rx => {
const { dispStatus, orderedDate, sortedDispensedDate } = rx;
let nonVA = false;
let showLastFilledDate = false;
if (dispStatus === dispStatusObj.nonVA) {
Function generatePDF
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const generatePDF = async formData => {
const transformedFormData = pdfTransform(formData);
const apiSettings = {
mode: 'cors',
Function autoExpandAccordionPanelByUrlHash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function autoExpandAccordionPanelByUrlHash() {
const { hash } = document.location;
if (!hash) {
return;
Function addNewArrayItem
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addNewArrayItem = $form => {
// Get all array types on the current page.
const arrayTypeRoots = $form.find('div[name^="topOfTable_root_"]');
// Find the last entry for each array type, use its index to figure out