fix: 增加对N的判断,避免N为负数或0导致不通过 #10956
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: clang-format-linter | |
| on: | |
| push: | |
| paths: | |
| - solution/** | |
| - lcs/** | |
| - lcp/** | |
| - lcof2/** | |
| - lcof/** | |
| - lcci/** | |
| - basic/** | |
| pull_request: | |
| paths: | |
| - solution/** | |
| - lcs/** | |
| - lcp/** | |
| - lcof2/** | |
| - lcof/** | |
| - lcci/** | |
| - basic/** | |
| concurrency: | |
| group: ${{github.workflow}} - ${{github.ref}} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DoozyX/clang-format-lint-action@v0.17 | |
| with: | |
| source: '.' | |
| extensions: 'c,cpp,java' | |
| clangFormatVersion: 16 |