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
73 changes: 73 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
Language: Cpp
BasedOnStyle: Google

# --- Core Layout ---
ColumnLimit: 120
IndentWidth: 4
Standard: Latest
InsertNewlineAtEOF: true

# --- Includes Management ---
SortIncludes: Never
SortUsingDeclarations: Never

# --- Force POSIX / Linux Line Endings ---
DeriveLineEnding: false
LineEnding: LF

# --- Access Modifiers (public, private, etc.) ---
AccessModifierOffset: -4

# --- Namespace Management ---
NamespaceIndentation: All
FixNamespaceComments: false

# --- Braces (Allman Style + Space) ---
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterCaseLabel: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: true

# --- Spaces ---
SpaceBeforeParens: Always
SpaceAfterTemplateKeyword: true

# --- Assignments & Alignments ---
AlignConsecutiveAssignments:
Enabled: false
AlignConsecutiveDeclarations: false

# --- Switch/Case ---
IndentCaseLabels: true
IndentCaseBlocks: true

# --- Strict Vertical Layout ---
AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false

# --- Function Separation ---
SeparateDefinitionBlocks: Always
MaxEmptyLinesToKeep: 2

# --- Constructor Formatting ---
PackConstructorInitializers: Never
ConstructorInitializerIndentWidth: 0
BreakConstructorInitializers: BeforeComma

# --- Preservation & Comments ---
AlignTrailingComments: true
ReflowComments: true
22 changes: 9 additions & 13 deletions .github/workflows/security.yml → .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
name: security
name: audit

on:
push:
branches: [ main ]

pull_request:
branches: [ main ]

schedule:
- cron: "0 11 * * 0"

workflow_dispatch:

jobs:
scan:
security:
uses: ./.github/workflows/build.yml

secrets: inherit

with:
scan: true

permissions:
contents: read
security-events: write
pull-requests: write
pages: write
id-token: write

secrets: inherit

with:
scan: true
asan: true
Loading
Loading