Skip to content
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

chore: テキストファイルの改行コードがLFになるように設定を追加 #291

Merged
merged 4 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@
"esbenp",
"esptool",
"fqbn",
"gitmodules",
"gitsubmodule",
"googletest",
"gtest",
"INTERRUPTIN",
"jidicula",
"LCOV",
"ledc",
"leds",
"mattnotmitt",
"Mbed",
"mdled",
"INTERRUPTIN",
"noninteractive",
"Nucleo",
"pico",
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
18 changes: 18 additions & 0 deletions .github/workflows/editorconfig-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# EditorConfig の設定に従っているかをチェックする
#
name: EditorConfig Checker

on:
push:
pull_request:

jobs:
editorconfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: editorconfig-checker/action-editorconfig-checker@main

# .gitmodules は自動生成されてインデントスタイルが EditorConfig に従わないため除外
# インデントサイズは ClangFormat を使用すると1行が長くなり複数行に分割されたときに改行位置が EditorConfig に従わないため除外
- run: editorconfig-checker -disable-indent-size -exclude '.gitmodules'