1014 B
1014 B
cpp-linter-template
專案結構
cpp-linter-template/
├── .clang-tidy # linter 配置檔
├── .clang-format # 格式化配置檔
├── azure-pipelines.yml # Azure DevOps CI/CD 配置
├── CMakeLists.txt # 建構配置
├── README.md # 專案說明
├── docs/ # 文件目錄
│ ├── linter-setup.md # Linter 設定指南
│ └── coding-standards.md # 編碼標準
├── src/ # 原始碼
│ ├── main.cpp # 主程式(含各種測試案例)
│ ├── utils.cpp # 工具函數
│ └── utils.h # 標頭檔
├── tests/ # 測試程式碼
│ └── test_main.cpp # 簡單測試
└── scripts/ # 輔助腳本
├── run-linter.sh # 本地執行 linter
└── setup-hooks.sh # 設定 git hooks