Skip to content

début refacto

début refacto #2802

Triggered via push December 12, 2024 17:08
Status Failure
Total duration 57s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
test: src/components/Filters/CheckboxsFilter/index.tsx#L30
Missing "key" prop for element in iterator
test: src/components/Filters/SelectFilter/index.tsx#L22
Replace `(⏎····<Select⏎······value={inputs}⏎······width={'200px'}⏎······label="Trier·par·:"⏎······items={options}⏎······onchange={setInputs}⏎····/>⏎··)` with `<Select·value={inputs}·width={'200px'}·label="Trier·par·:"·items={options}·onchange={setInputs}·/>`
test: src/components/PatientsBoard/SavedFiltersSection/SavedFilters.tsx#L5
Unexpected empty object pattern
test: src/components/PatientsBoard/SavedFiltersSection/SavedFilters.tsx#L5
Unexpected empty arrow function
test: src/components/PatientsBoard/SavedFiltersSection/index.tsx#L34
Unexpected empty arrow function
test: src/components/PatientsBoard/SearchSection/FilterAction.tsx#L28
Replace `⏎········icon={<FilterList·height="15px"·fill="#FFF"·/>}⏎········onClick={()·=>·setToggleModal(true)}⏎······` with `·icon={<FilterList·height="15px"·fill="#FFF"·/>}·onClick={()·=>·setToggleModal(true)}`
test: src/components/PatientsBoard/index.tsx#L205
Unexpected empty arrow function
test: src/components/ui/Modal/index.tsx#L68
Replace `"test·modal"` with `'test·modal'`
test: src/hooks/filters/useSavedFilters.ts#L62
Replace `·isError:·true,·errorMessage:·"Il·y·a·eu·une·erreur·lors·de·l'enregistrement·du·filtre.·Vérifiez·que·le·nom·n'existe·pas·déjà."` with `⏎········isError:·true,⏎········errorMessage:·"Il·y·a·eu·une·erreur·lors·de·l'enregistrement·du·filtre.·Vérifiez·que·le·nom·n'existe·pas·déjà."⏎·····`
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test: src/components/CreationCohort/ControlPanel/ControlPanel.tsx#L103
'uuid' is assigned a value but never used
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/BiologyForm/index.tsx#L113
React Hook useEffect has a missing dependency: 'currentCriteria'. Either include it or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/BiologyForm/index.tsx#L131
React Hook useEffect has missing dependencies: 'criteriaData.data.biologyData' and 'currentCriteria'. Either include them or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/CcamForm/index.tsx#L74
React Hook useEffect has missing dependencies: 'criteriaData.data.ccamData' and 'currentCriteria'. Either include them or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/Cim10Form/index.tsx#L87
React Hook useEffect has missing dependencies: 'criteriaData.data.cim10Diagnostic' and 'currentCriteria'. Either include them or remove the dependency array. You can also do a functional update 'setCurrentCriteria(c => ...)' if you only need 'currentCriteria' in the 'setCurrentCriteria' call
test: src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/DocumentsForm/DocumentsForm.tsx#L115
React Hook useEffect has missing dependencies: 'defaultValues.search' and 'searchInputError'. Either include them or remove the dependency array. You can also do a functional update 'setSearchInputError(s => ...)' if you only need 'searchInputError' in the 'setSearchInputError' call