SIMSBIOHUB-400: BioHub Dataset & Security Feature Branch #460
lint-format.yml
on: pull_request
Checkout and cache target branch
9s
Running Linter and Formatter
1m 51s
Annotations
1 error and 10 warnings
Running Linter and Formatter
Process completed with exit code 1.
|
Running Linter and Formatter:
api/src/repositories/submission-repository.ts#L1082
'datasetId' is defined but never used
|
Running Linter and Formatter:
app/src/components/layout/header/Header.tsx#L17
Replace `Link·as·RouterLink·}·from·'react-router-dom';⏎import·{·useState·}·from·'react` with `useState·}·from·'react';⏎import·{·Link·as·RouterLink·}·from·'react-router-dom`
|
|
Running Linter and Formatter:
app/src/components/layout/header/UserControls.tsx#L7
Replace `SYSTEM_IDENTITY_SOURCE·}·from·'hooks/useKeycloakWrapper` with `useAuthStateContext·}·from·'hooks/useAuthStateContext`
|
Running Linter and Formatter:
app/src/components/layout/header/UserControls.tsx#L8
Replace `useAuthStateContext·}·from·'hooks/useAuthStateContext` with `SYSTEM_IDENTITY_SOURCE·}·from·'hooks/useKeycloakWrapper`
|
Running Linter and Formatter:
app/src/components/security/SecuritiesDialog.tsx#L33
React Hook useEffect has missing dependencies: 'props.features' and 'submissionContext?.submissionFeatureRulesDataLoader'. Either include them or remove the dependency array
|
Running Linter and Formatter:
app/src/components/security/SecurityRuleForm.tsx#L37
React Hook useEffect has a missing dependency: 'submissionContext?.submissionFeatureRulesDataLoader.data?.length'. Either include it or remove the dependency array
|
Running Linter and Formatter:
app/src/contexts/submissionContext.tsx#L70
React Hook useMemo has missing dependencies: 'securityRulesDataLoader' and 'submissionFeatureRulesDataLoader'. Either include them or remove the dependency array
|
Running Linter and Formatter:
app/src/utils/Utils.test.ts#L3
Insert `SYSTEM_IDENTITY_SOURCE·}·from·'hooks/useKeycloakWrapper';⏎import·{·`
|
Running Linter and Formatter:
app/src/utils/Utils.test.ts#L20
Delete `';⏎import·{·SYSTEM_IDENTITY_SOURCE·}·from·'hooks/useKeycloakWrapper`
|