From 2f72b038532694264cf34669e5ad8bd43092cc19 Mon Sep 17 00:00:00 2001 From: Tengu712 Date: Fri, 19 Sep 2025 00:25:44 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9C=80=E5=A4=A7200=E8=A1=8C=E3=82=92?= =?UTF-8?q?=E5=AE=88=E3=82=8B=E3=81=9F=E3=82=81=E3=81=AE=E3=82=B9=E3=83=86?= =?UTF-8?q?=E3=83=83=E3=83=97=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-macos.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 5b7cfd80..16e2b7fb 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -19,6 +19,16 @@ jobs: - name: install meson run: pip install meson + - name: Check file line limits + run: | + for file in $(find src/ -name "*.cpp" -o -name "*.hpp"); do + lines=$(wc -l < "$file") + if [ "$lines" -gt 200 ]; then + echo "ERROR: $file has $lines lines (limit: 200)" + exit 1 + fi + done + - name: Cache vcpkg packages id: cache-vcpkg uses: actions/cache@v4 From 1746909887d7608afed11031a4c7c6e42dd07951 Mon Sep 17 00:00:00 2001 From: Tengu712 Date: Fri, 19 Sep 2025 00:26:17 +0900 Subject: [PATCH 2/4] docs --- docs/CODING_CONVENTIONS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/CODING_CONVENTIONS.md b/docs/CODING_CONVENTIONS.md index b7a74b75..000f405c 100644 --- a/docs/CODING_CONVENTIONS.md +++ b/docs/CODING_CONVENTIONS.md @@ -24,6 +24,10 @@ 原則1行最大120文字。 タブ文字のせいで一見すると120文字を超えていることもあるが、面倒臭いので無視。 +## 200 Row + +必ず1ファイル最大200行。 + ## auto `auto`が使えるなら使う。 From e6172c59237a3e6cd13a6b9c3542ff76697f45fe Mon Sep 17 00:00:00 2001 From: Tengu712 Date: Fri, 19 Sep 2025 00:29:49 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=E3=81=8A=E8=A9=A6=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/utils.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/graphics/utils.cpp b/src/graphics/utils.cpp index efb6ad2d..f4b14394 100644 --- a/src/graphics/utils.cpp +++ b/src/graphics/utils.cpp @@ -191,4 +191,11 @@ void uploadImage( } } + + + + + + + } // namespace graphics From 1fb7e90865ddd6d569092593d093d099383d120c Mon Sep 17 00:00:00 2001 From: Tengu712 Date: Fri, 19 Sep 2025 00:36:40 +0900 Subject: [PATCH 4/4] =?UTF-8?q?Revert=20"=E3=81=8A=E8=A9=A6=E3=81=97"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e6172c59237a3e6cd13a6b9c3542ff76697f45fe. --- src/graphics/utils.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/graphics/utils.cpp b/src/graphics/utils.cpp index f4b14394..efb6ad2d 100644 --- a/src/graphics/utils.cpp +++ b/src/graphics/utils.cpp @@ -191,11 +191,4 @@ void uploadImage( } } - - - - - - - } // namespace graphics