feat: ASC-18278 - Implement Sonar Scan #2
Annotations
10 errors and 10 warnings
Lint files:
example/src/App.tsx#L2
Replace `·AmityUiKitProvider,·AmityUiKitSocial·` with `⏎··AmityUiKitProvider,⏎··AmityUiKitSocial,⏎`
|
Lint files:
example/src/App.tsx#L4
Delete `⏎`
|
Lint files:
src/components/AddMembersModal/index.tsx#L33
Replace `·visible,·onClose,·onSelect,·initUserList·` with `⏎··visible,⏎··onClose,⏎··onSelect,⏎··initUserList,⏎`
|
Lint files:
src/components/AddMembersModal/index.tsx#L36
Replace `[]` with `⏎····[]⏎··`
|
Lint files:
src/components/AddMembersModal/index.tsx#L37
Replace `SelectUserList[]` with `⏎····SelectUserList[]⏎··`
|
Lint files:
src/components/AddMembersModal/index.tsx#L38
Insert `⏎···`
|
Lint files:
src/components/AddMembersModal/index.tsx#L40
Insert `⏎···`
|
|
|
|
Lint files:
src/components/ChooseCategoryModal/index.tsx#L53
'react-hooks/exhaustive-deps' rule is disabled but never reported
|
Lint files:
src/components/CreatePostModal/index.tsx#L84
'react-hooks/exhaustive-deps' rule is disabled but never reported
|
Lint files:
src/components/LoadingVideo/index.tsx#L91
'thumbNail' is already declared in the upper scope on line 43 column 3
|
Lint files:
src/components/LoadingVideo/index.tsx#L126
'react-hooks/exhaustive-deps' rule is disabled but never reported
|
Lint files:
src/components/MyCommunity/index.tsx#L66
'displayName' is already declared in the upper scope on line 49 column 9
|
Lint files:
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 files:
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 files:
src/components/Social/PostList/index.tsx#L428
'postData' is already declared in the upper scope on line 94 column 10
|
Lint files:
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 files:
src/components/react-native-image-viewing/dist/ImageViewing.js#L63
'isPlaying' is assigned a value but never used
|
The logs for this run have expired and are no longer available.
Loading