File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,16 @@ POSIX 명세 때문인데, 그 현상과 POSIX 표준에 대해서 간략히 알
1717### 파일 끝에 개행이 없는 경우의 현상
1818
1919Check Style 의 결과로 ` File does not end with a newline. ` 경고가 발생한다.
20- ![ warning] ( /img/post/clean-code/new-line/check-style-result.png )
20+
21+ <div style = { { textAlign: ' center' }} >
22+ <img src = " /img/post/clean-code/new-line/check-style-result.png" alt = " check-style-result" style = { { display: ' inline-block' }} />
23+ </div >
2124
2225github 에서 ` Pull Request ` 할 때 이상한 마크도 표시되는 것을 볼 수 있다.
2326
24- ![ github-pr] ( /img/post/clean-code/new-line/github-pr.png )
27+ <div style = { { textAlign: ' center' }} >
28+ <img src = " /img/post/clean-code/new-line/github-pr.png" alt = " github-pr" style = { { display: ' inline-block' }} />
29+ </div >
2530
2631하지만, 프로그램을 돌리거나 코드 상에 이상이 있는 것은 전혀 아니다.
2732이는 ` POSIX ` 명세 때문에 경고로 알려주는 것이다.
@@ -68,7 +73,9 @@ Definitions - 3.205 Line : `A sequence of zero or more non- <newline>s plus a te
6873IntelliJ 기준으로 자동으로 마지막 개행을 추가하는 옵션은 default 로 활성화 되어 있다. <br />
6974Preference > Editor > General > On Save > Ensure every saved file ends with a line break
7075
71- ![ intellij-settings.png] ( /img/post/clean-code/new-line/intellij-settings.png )
76+ <div style = { { textAlign: ' center' }} >
77+ <img src = " /img/post/clean-code/new-line/intellij-settings.png" alt = " intellij-settings" style = { { display: ' inline-block' }} />
78+ </div >
7279
7380---
7481
You can’t perform that action at this time.
0 commit comments