Skip to content

feat: ASC-18278 - Implement Sonar Scan #2

feat: ASC-18278 - Implement Sonar Scan

feat: ASC-18278 - Implement Sonar Scan #2

Re-run triggered January 10, 2024 04:20
Status Failure
Total duration 59s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
lint: example/src/App.tsx#L2
Replace `·AmityUiKitProvider,·AmityUiKitSocial·` with `⏎··AmityUiKitProvider,⏎··AmityUiKitSocial,⏎`
lint: example/src/App.tsx#L4
Delete `⏎`
lint: src/components/AddMembersModal/index.tsx#L33
Replace `·visible,·onClose,·onSelect,·initUserList·` with `⏎··visible,⏎··onClose,⏎··onSelect,⏎··initUserList,⏎`
lint: src/components/AddMembersModal/index.tsx#L36
Replace `[]` with `⏎····[]⏎··`
lint: src/components/AddMembersModal/index.tsx#L37
Replace `SelectUserList[]` with `⏎····SelectUserList[]⏎··`
lint: src/components/AddMembersModal/index.tsx#L38
Insert `⏎···`
lint: src/components/AddMembersModal/index.tsx#L40
Insert `⏎···`
lint: src/components/ChooseCategoryModal/index.tsx#L53
'react-hooks/exhaustive-deps' rule is disabled but never reported
lint: src/components/CreatePostModal/index.tsx#L84
'react-hooks/exhaustive-deps' rule is disabled but never reported
lint: src/components/LoadingVideo/index.tsx#L91
'thumbNail' is already declared in the upper scope on line 43 column 3
lint: src/components/LoadingVideo/index.tsx#L126
'react-hooks/exhaustive-deps' rule is disabled but never reported
lint: src/components/MyCommunity/index.tsx#L66
'displayName' is already declared in the upper scope on line 49 column 9
lint: src/components/Social/CommentList/index.tsx#L282
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “CommentList” and pass data as props
lint: src/components/Social/PendingPostList/index.tsx#L164
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “PendingPostList” and pass data as props
lint: src/components/Social/PostList/index.tsx#L428
'postData' is already declared in the upper scope on line 94 column 10
lint: src/components/Social/PostList/index.tsx#L435
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “PostList” and pass data as props
lint: src/components/react-native-image-viewing/dist/ImageViewing.js#L63
'isPlaying' is assigned a value but never used