Repository navigation
Feat/git integration - #1097
Feat/git integration#1097ddecrulle wants to merge 52 commits into
Quality Gate passed
Annotations
Check warning on line 21 in web/src/ui/pages/account/AccountGitTab/GitForgeCard.tsx
sonarqubecloud / SonarCloud Code Analysis
Invalid group length in numeric value.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaG_-zDAp-xkQtkC9sG2&open=AaG_-zDAp-xkQtkC9sG2&pullRequest=1097
Check warning on line 182 in web/src/core/adapters/gitForge/oauthAuthorization/oauthAuthorization.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaFeu3vDW3Lo4TWsxiEO&open=AaFeu3vDW3Lo4TWsxiEO&pullRequest=1097
Check warning on line 464 in web/src/ui/pages/account/AccountGitTab/GitForgeCard.tsx
sonarqubecloud / SonarCloud Code Analysis
Mark the props of the component as read-only.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZbIvyvqUV94vhyq&open=AaIcFZbIvyvqUV94vhyq&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Prefer `structuredClone(…)` over `JSON.parse(JSON.stringify(…))` to create a deep clone.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaGBr6LU8DvYVMesmw2R&open=AaGBr6LU8DvYVMesmw2R&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Remove this "git_repository" label.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaGBoBRlxN9NJpFvM40J&open=AaGBoBRlxN9NJpFvM40J&pullRequest=1097
Check warning on line 649 in web/src/core/usecases/gitForgesManagement/thunks.test.ts
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(getPersisted()).toBeNull()" over this generic assertion; dedicated matchers read better and report clearer failures.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZXSvyvqUV94vhyH&open=AaIcFZXSvyvqUV94vhyH&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(getUrlInputOfValue({ urlInput: "https://a.org/o/r ", value })).toBeUndefined()" over this generic assertion; dedicated matchers read better and report clearer failures.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIYG_ZfVJkA_IZ-ilyv&open=AaIYG_ZfVJkA_IZ-ilyv&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
`kinds` should be a `Set`, and use `kinds.has()` to check existence or non-existence.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaF9l1FK5uyAeSV0OWDW&open=AaF9l1FK5uyAeSV0OWDW&pullRequest=1097
Check warning on line 104 in web/src/core/ports/OnyxiaApi/GitForgesConfig.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this redundant type alias and replace its occurrences with "GIT_FORGES_EnvValue_ExpectedShape".
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZYJvyvqUV94vhyf&open=AaIcFZYJvyvqUV94vhyf&pullRequest=1097
Check warning on line 32 in web/src/ui/pages/account/AccountGitTab/AccountGitTab.tsx
sonarqubecloud / SonarCloud Code Analysis
Mark the props of the component as read-only.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaFeu3xUW3Lo4TWsxiEU&open=AaFeu3xUW3Lo4TWsxiEU&pullRequest=1097
Check warning on line 267 in web/src/ui/pages/account/AccountGitTab/GitForgeCard.stories.tsx
sonarqubecloud / SonarCloud Code Analysis
Invalid group length in numeric value.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaG_-zCpp-xkQtkC9sGz&open=AaG_-zCpp-xkQtkC9sGz&pullRequest=1097
Check warning on line 164 in web/src/ui/pages/account/AccountGitTab/GitForgeCard.tsx
sonarqubecloud / SonarCloud Code Analysis
Passing a fragment to an HTML element is useless.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaHt4_APYAQc5qJ3-poq&open=AaHt4_APYAQc5qJ3-poq&pullRequest=1097
Check warning on line 177 in web/src/core/adapters/gitForge/bitbucket.ts
sonarqubecloud / SonarCloud Code Analysis
Unexpected `await` inside a loop.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaH5mOqWqaUUHM32Dbn1&open=AaH5mOqWqaUUHM32Dbn1&pullRequest=1097
Check warning on line 289 in web/src/ui/pages/account/AccountGitTab/GitForgeCard.tsx
sonarqubecloud / SonarCloud Code Analysis
Mark the props of the component as read-only.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZbIvyvqUV94vhyp&open=AaIcFZbIvyvqUV94vhyp&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(repositoriesRequest).toBeUndefined()" over this generic assertion; dedicated matchers read better and report clearer failures.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIYG_ZfVJkA_IZ-ilym&open=AaIYG_ZfVJkA_IZ-ilym&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Avoid using `instanceof` for type checking as it can lead to unreliable results.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaGBoBWAxN9NJpFvM40M&open=AaGBoBWAxN9NJpFvM40M&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Mark the props of the component as read-only.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZY-vyvqUV94vhyl&open=AaIcFZY-vyvqUV94vhyl&pullRequest=1097
Check warning on line 195 in web/src/core/usecases/gitAccountUiController/state.ts
sonarqubecloud / SonarCloud Code Analysis
Extract the assignment of "state.cardUiStateByForgeId[forgeId]" from this expression.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZVgvyvqUV94vhyF&open=AaIcFZVgvyvqUV94vhyF&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Mark the props of the component as read-only.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIYG_bPVJkA_IZ-ily6&open=AaIYG_bPVJkA_IZ-ily6&pullRequest=1097
Check warning on line 493 in web/src/core/usecases/gitRepositoryFieldUiController/decoupledLogic.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZXrvyvqUV94vhye&open=AaIcFZXrvyvqUV94vhye&pullRequest=1097
Check warning on line 243 in web/src/core/ports/OnyxiaApi/GitForgesConfig.ts
sonarqubecloud / SonarCloud Code Analysis
Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZYJvyvqUV94vhyg&open=AaIcFZYJvyvqUV94vhyg&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(parseGitConfigStr({ gitConfigStr: "{}" })).toBeUndefined()" over this generic assertion; dedicated matchers read better and report clearer failures.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZXYvyvqUV94vhyP&open=AaIcFZXYvyvqUV94vhyP&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZY8vyvqUV94vhyj&open=AaIcFZY8vyvqUV94vhyj&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Avoid using `instanceof` for type checking as it can lead to unreliable results.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaGBoBRlxN9NJpFvM40L&open=AaGBoBRlxN9NJpFvM40L&pullRequest=1097
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(parseGitConfigStr({ gitConfigStr: "{" })).toBeUndefined()" over this generic assertion; dedicated matchers read better and report clearer failures.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AaIcFZXYvyvqUV94vhyO&open=AaIcFZXYvyvqUV94vhyO&pullRequest=1097