Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 0 additions & 63 deletions .gitattributes

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Clang Format

on: [push, pull_request]

jobs:
check-formatting:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run clang-format
uses: DoozyX/clang-format-lint-action@v0.16.2
with:
source: '.'
exclude: './3rdparty ./modules/bglib/include/cmd_def.h ./modules/bglib/src/cmd_def.cpp'
extensions: 'h,c,hpp,cpp'
clangFormatVersion: 16
inplace: False
27 changes: 27 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: C/C++ Static Code Analysis

on: [push, pull_request]

jobs:
cppcheck:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install CppCheck
run: |
sudo -H apt-get update -y
sudo -H apt-get install cppcheck
env:
DEBIAN_FRONTEND: noninteractive
- name: Run Cppcheck
run: cppcheck --std=c++20 --error-exitcode=1 --xml --xml-version=2 --force modules 2>cppcheck_results.xml
- name: Generate Report
if: ${{ failure() }}
run: cppcheck-htmlreport --title=NativeSDK --file=cppcheck_results.xml --report-dir=report
- name: Upload Report
if: ${{ failure() }}
uses: actions/upload-artifact@v1
with:
name: report
path: report
11 changes: 11 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Check Spelling'
on:
pull_request:
push:

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
Loading