Skip to content
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
5 changes: 3 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
BasedOnStyle: Google
Language: Cpp
AlignEscapedNewlinesLeft: false
AccessModifierOffset: -2
AlignEscapedNewlines: Right
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
Expand Down
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,21 @@ trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# handled by clang-format
[*.{h,c}]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

# image format
[*.ase]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ on:
permissions:
contents: read
jobs:
check-formatting-all:
name: Check Formatting (All)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Set up node
uses: actions/setup-node@v6.2.0
with:
node-version: lts/*
- name: Check formatting
run: npx editorconfig-checker
check-formatting-c:
name: Check Formatting (C)
runs-on: ubuntu-latest
Expand All @@ -14,7 +27,7 @@ jobs:
- name: Check formatting
uses: jidicula/clang-format-action@v4.16.0
with:
clang-format-version: 18
clang-format-version: 21
check-formatting-markdown:
name: Check Formatting (Markdown)
runs-on: ubuntu-latest
Expand Down
20 changes: 10 additions & 10 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[submodule "sgdk"]
path = externals/sgdk
url = https://github.com/Stephane-D/SGDK.git
branch = master
ignore = dirty
shallow = true
path = externals/sgdk
url = https://github.com/Stephane-D/SGDK.git
branch = master
ignore = dirty
shallow = true
[submodule "sgcc"]
path = externals/sgcc
url = https://github.com/devpow112/sgcc.git
branch = main
ignore = dirty
shallow = true
path = externals/sgcc
url = https://github.com/devpow112/sgcc.git
branch = main
ignore = dirty
shallow = true