-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
cleanup: trim trailing whitespace #11136
cleanup: trim trailing whitespace #11136
Conversation
逆に空行のインデント部分を必ず残すように強制させることってできないかな |
Codecov Report
@@ Coverage Diff @@
## develop #11136 +/- ##
===========================================
- Coverage 77.83% 77.37% -0.47%
===========================================
Files 170 907 +737
Lines 21468 91641 +70173
Branches 498 7551 +7053
===========================================
+ Hits 16710 70903 +54193
- Misses 4758 20738 +15980
|
ただ、意図した数のインデントをあとから付け加えるタイプのフォーマッタがあるかどうかまでは少しわかりません……。 (個人的には空行のインデントはあってもなくてもよくて、とりあえずまちまちな状況さえなくなれば意図しない差分で困ることがないのでうれしいです。) |
🙏 |
* cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
What
行末の意味のない空白文字を削除しました。
Why
別件で編集していたとき、本筋ではない部分で差分が発生することになり気になったため。
Additional info (optional)
たくさんのファイルを編集したことから他のPRとコンフリクトすることが考えられます。私が少し気になっただけですので、不要でしたらこのPRは閉じてしまってください。
.editorconfig
にtrim_trailing_whitespace = true
を書くことで今後このような空白が追加されることを防ぎました。なおMarkdown内では行末の半角空白が改行を意味する場合があるため、この設定は無効化してあります。pugファイルにあるMisskeyのアスキーアートには触れないでおきましたが、pugファイルでの設定無効化は行っていません。そのため、今後pugファイルを編集したときにはエディターによってアスキーアート部分が書き換えられてしまいます。どうすべきか意見を伺いたいです。
Checklist