Skip to content

Add code quality tooling: clang-format, clang-tidy, ruff - #11

Merged
stmcgovern merged 1 commit into
mainfrom
code-quality
Jun 10, 2026
Merged

stmcgovern merged 1 commit into
mainfrom
code-quality

Conversation

@stmcgovern

Copy link
Copy Markdown
Collaborator

Summary

Format entire codebase and add CI enforcement. Fix two clang-tidy findings.

Config files: .clang-format (LLVM, 4-space), .clang-tidy (bugprone-*), pyproject.toml (ruff)

Developer workflow:

ninja -C build -j30                                    # build
RESOURCE_DIR=/usr/lib/clang/19 bash test/run_tests.sh  # test
bash scripts/fmt.sh                                    # format
bash scripts/lint.sh                                   # verify CI will pass

CI structure:

  • lint job (fast, parallel): clang-format + ruff
  • build-and-test job: clang-tidy after build (--warnings-as-errors)

Bug fixes: narrowing conversion in PreprocessorCallbacks.cpp, dead store in StableAbiAction.cpp

Format entire codebase. Fix two clang-tidy findings: narrowing
conversion in PreprocessorCallbacks.cpp, dead store in
StableAbiAction.cpp.

Config:
- .clang-format (LLVM style, 4-space indent)
- .clang-tidy (bugprone-* checks)
- pyproject.toml (ruff E/F/W/I)

CI structure:
- lint job: clang-format + ruff (fast, runs in parallel)
- build-and-test: clang-tidy after build (--warnings-as-errors)
- test-pip: unchanged (no duplicate quality checks)
@stmcgovern
stmcgovern merged commit bf45c71 into main Jun 10, 2026
3 checks passed
@stmcgovern
stmcgovern deleted the code-quality branch June 10, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant