-
-
Notifications
You must be signed in to change notification settings - Fork 195
파일 마지막 라인 브레이크 누락 자동 감지 + 라인 브레이크 추가 수정 #334
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
Conversation
|
||
# list of paths to ignore, uses gitignore syntaxes (executes before any rule) | ||
ignore: | ||
- "*.md" |
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.
md 파일들에도 적용되어도 문제 없을 것 같습니다.
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.
그러면 일이 너무 커지더라고요 ㅋㅋㅋ
@@ -0,0 +1,18 @@ | |||
# 'true' will fix files | |||
autofix: false |
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.
autofix 를 false를 두어도 라인 브레이크가 추가되는걸까요? 아래 rule 에는 enable: true
로 되어있긴한데...
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.
아하 merge가 불가능 하게만 설정을 하신거군요.
제목을 보고 자동 수정 까지 의도하신줄 알았는데 본문을 보니 merge가 불가능하게 까지만 설정을 하신것으로 이해되네요.
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 #329, #333 에 이어서 PR에 마지막 라인 브레이크 누락된 파일이 존재하는지 자동으로 감지해주는 GitHub Actions 작업을 추가합니다! 그새 마지막 라인 브레이크가 없는 파일이 추가로 디폴트 브랜치에 병합이 되어서 함께 수정하였습니다.
만약에 라인 브레이크가 누락된 파일이 있다면 PR 제일 밑에 다음과 같이 실패한 체크가 달리고 병합이 불가능해 질 것입니다.
이미 열려있는 PR에는 rebase하지 않으시면 적용되지 않으니 더 이상 라인 브레이크가 없는 파일이 디폴트 브랜치에 유입되지 않도록 다들 신경 좀 써주시면 감사하겠습니다! 🙏