[Refactor] SonarQube 정적 코드 분석 및 이슈 개선 #11
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
✨ 구현 기능 명세
🎁 PR Point
sonar-scanner 설치
sonar-scanner는 코드를 분석하여 SonarQube server로 넘기기 위한 도구이다. 로컬의 코드를 분석하기 위해서는 필요하기 때문에 설치해줬다.
SonarQube로 정적 코드 분석하여 발견된 이슈 수정
내용이 길어서 Notion 정리 자료🔗 첨부
😭 어려웠던 점
함수 중첩도가 높은 문제를 해결하기 위해 방송 송출/시청 연결 관련 커스텀 훅들을 아예 뜯어서 재구성하는 것이 좀 어려웠던 것 같고, 나머지는 SonarQube 분석 결과 화면에서 원인과 해결 방법을 알려줘서 대부분 쉽게 해결할 수 있었다.