-
Notifications
You must be signed in to change notification settings - Fork 11
Remove duplicated comment #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjk7119
self._comment를 '/'로 split한 후 not in 체크해야 하는 것 아닌지 확인부탁드립니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 이 부분을 고민했었는데, 아래의 예시로 Test한 결과 Split을 안해도 될 것 같다고 판단했습니다.

즉, 일부만 포함되어도 기존 문자열에 있는 것으로 판단합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjk7119
comment에 '/' 라인이 포함되어 있으면 잘못 판단할 수 있을 것으로 보이는데.. 해당 경우에는 split해도 문제가 되긴 하겠네요. comment 중복 추가되는 root 원인 판단하여 수정하고 duplicate 체크는 하지 않는 것이 좋을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjk7119
util에서 comment 중복 제거하는 부분은 들어가지 않는 것이 어떨지 의견드립니다. 각 Scanner에서 중복 코멘트가 들어가야 하지 않는다면 Scanner에서 수정되는 것이 맞고, 중복 코멘트가 들어가는 것이 맞는 케이스도 존재할 수 있을 것으로 보입니다.
구분자(\n) 변경 또한 여러줄로 보이면 짧은 코멘트임에도 밑에 줄에 있는 경우 height 조절 전까지 바로 볼 수 없다는 단점이 있고, FL Dependency comment로 direct 패키지 여부 확인 시, '/'로 split하여 확인하고 있기에 Hub 등 많은 곳에서 파생 수정이 필요할 것으로 보입니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
동의하여 해당 PR은 Close하겠습니다.