Skip to content

Commit fe71071

Browse files
authored
Merge pull request #120 from ModOrganizer2/dev/formatting-and-ci
Formatting and CI
2 parents 6b51c17 + d7061cc commit fe71071

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+19983
-21884
lines changed

.clang-format

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# We'll use defaults from the LLVM style, but with 4 columns indentation.
3+
BasedOnStyle: LLVM
4+
IndentWidth: 4
5+
---
6+
Language: Cpp
7+
# Force pointers to the type for C++.
8+
DerivePointerAlignment: false
9+
PointerAlignment: Left
10+
AlignConsecutiveAssignments: true
11+
AllowShortFunctionsOnASingleLine: Inline
12+
AllowShortIfStatementsOnASingleLine: Never
13+
AllowShortLambdasOnASingleLine: Empty
14+
AlwaysBreakTemplateDeclarations: Yes
15+
AccessModifierOffset: -4
16+
AlignTrailingComments: true
17+
SpacesBeforeTrailingComments: 2
18+
NamespaceIndentation: All
19+
MaxEmptyLinesToKeep: 1
20+
BreakBeforeBraces: Stroustrup
21+
ColumnLimit: 88
22+
IncludeBlocks: Preserve
23+
IncludeCategories:
24+
- Regex: '^"pch.h"$'
25+
Priority: -1
26+
SortPriority: -1

.git-blame-ignore-revs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d0913d07d33929d7b753a3a09a0dac70e5befbc1

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.cpp text eol=crlf
7+
*.h text eol=crlf

.github/workflows/build.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build Mob
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-2022
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Build Mob
15+
shell: pwsh
16+
run: ./bootstrap.ps1 -Verbose

.github/workflows/linting.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint Mob
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Run clang-format
14+
uses: jidicula/[email protected]
15+
with:
16+
clang-format-version: "16"
17+
check-path: "."
18+
exclude-regex: "third-party"

0 commit comments

Comments
 (0)