Showing 172 of 172 total issues
Avoid too many return
statements within this function. Open
return (<div id="aim-classifications"> {/* needed for css specificity */}
<Classifications {...classificationsProps} />
</div>);
Avoid too many return
statements within this function. Open
return x;
Avoid too many return
statements within this function. Open
return errorAlert;
Avoid too many return
statements within this function. Open
return (<RemarksGlossary
remarks={remarks$}
isReadOnly={readMode}
remarkCategories={rmrkCategories$}
userSelections={userSelections}
Avoid too many return
statements within this function. Open
return new Date(hs_date_offered);
Avoid too many return
statements within this function. Open
return bidClassObject;
Avoid too many return
statements within this function. Open
return errorAlert;
Avoid too many return
statements within this function. Open
return new Date();
Avoid too many return
statements within this function. Open
return errorAlert;
Avoid too many return
statements within this function. Open
return x;
Function shouldShowAlert
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
export function shouldShowAlert(bid, { condensedView = false }) {
// TO-DO - Add APPROVED_PROP back in with meanginful information
const alertStatusArray = [DRAFT_PROP, CLOSED_PROP, HAND_SHAKE_ACCEPTED_PROP,
HAND_SHAKE_DECLINED_PROP, DECLINED_PROP, HAND_SHAKE_NEEDS_REGISTER_PROP, SUBMITTED_PROP];
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function PanelMeetingSearchRow
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
const PanelMeetingSearchRow = ({ isCDO, pm, selectAll }) => {
const pmSeqNum = get(pm, 'pmi_pm_seq_num') || FALLBACK;
const remarks = get(pm, 'allRemarks') || [];
const showPanelMeetingsAgendas = usePanelMeetingsAgendas();
const userProfile = useSelector(state => state.userProfile);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function PositionInformation
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
const PositionInformation = ({ assignment = {} }) => {
const assignmentStartDate = assignment.start_date ? formatDate(assignment.start_date) : false;
let assignmentEndDate;
assignmentEndDate = (assignment.status === 'active' && assignment.estimated_end_date) ?
assignment.estimated_end_date : assignment.end_date;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function mapDuplicates
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
export const mapDuplicates = (data = [], propToCheck = 'custom_description', transformFunc) => data.slice().map((p) => {
let p$ = { ...p };
const matching = data.filter(f =>
f[propToCheck] === p$[propToCheck],
) || [];
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function render
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
render() {
const { editType } = this.state;
const { bidderPortfolio, bidderPortfolioIsLoading, cdosLength, pageNumber,
bidderPortfolioHasErrored, pageSize, queryParamUpdate,
classificationsIsLoading, updatePagination, viewType,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function render
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
render() {
const { bidList, deleteBid, isPublic,
bidListHasErrored, bidListIsLoading, bidListToggleHasErrored,
bidListToggleSuccess, submitBidPosition,
submitBidHasErrored, submitBidIsLoading, submitBidSuccess,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function ResultsCondensedCardTop
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
const ResultsCondensedCardTop = ({
position,
isProjectedVacancy,
isRecentlyAvailable,
isTandem,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function render
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
render() {
const { data, isLoading, userProfile } = this.props;
const { editorVisible, headerDropdownVisible } = this.state;
const permissionsNeeded = ['superuser'];
const userPermissions = get(userProfile, 'permission_groups', []);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function BidAuditModal
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
const BidAuditModal = ({ setOpen }) => {
const dispatch = useDispatch();
useEffect(() => {
dispatch(bidAuditFetchCycles());
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function EntryLevelCard
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
const EntryLevelCard = ({ result, id, onEditModeSearch }) => {
const showManageEntryLevelEdit = useManageEntryLevelEdit();
const dispatch = useDispatch();
const pos = result;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"