Showing 3,724 of 12,675 total issues
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 handleSelectionChange
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSelectionChange = selection => {
const highestRankTemp =
typeof selection === 'string' ? selection : selection.key;
if (selection.key)
setRank(`${selection.key.toUpperCase()} - ${selection.value}`);
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 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 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 getBlueButtonReportData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getBlueButtonReportData = () => async dispatch => {
try {
const response = await getDataForBlueButton();
dispatch({
type: Actions.LabsAndTests.GET_LIST,
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 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 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 ui:description
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'ui:description': () => {
return (
<div className="vads-u-margin-y--3">
<va-accordion uswds bordered open-single>
<va-accordion-item
Function AutoSSO
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AutoSSO(props) {
const {
authenticatedWithOAuth,
hasCalledKeepAlive,
transactionId,
Function onSearch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const onSearch = componentState => {
const savedSuggestions = componentState?.savedSuggestions || [];
const suggestions = componentState?.suggestions || [];
const searchTerm = componentState?.inputValue;
const validSuggestions =
Function onSuggestionSubmit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onSuggestionSubmit = (index, componentState) => {
const savedSuggestions = componentState?.savedSuggestions || [];
const suggestions = componentState?.suggestions || [];
const inputValue = componentState?.inputValue;
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
Function onSuggestionSubmit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const onSuggestionSubmit = (index, componentState) => {
const savedSuggestions = componentState?.savedSuggestions || [];
const suggestions = componentState?.suggestions || [];
const searchTerm = componentState?.inputValue;
Function onInputSubmit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onInputSubmit = componentState => {
const savedSuggestions = componentState?.savedSuggestions || [];
const suggestions = componentState?.suggestions || [];
const inputValue = componentState?.inputValue;
const validSuggestions =
Function overrideAnimations
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function overrideAnimations(client) {
const styles = `* {
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
Function updateFormDataAddress
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const updateFormDataAddress = (
oldFormData,
formData,
path,
index = null, // this is included in the path, but added as
Function replaceSchema
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
replaceSchema: (formData, schema, _uiSchema, index, path) => {
if (schema.maxLength) {
cityMaxLength = schema.maxLength;
}
const addressPath = getAddressPath(path); // path is ['address', 'currentField']