Skip to content

ci: add pre-commit config and fix pre-commit violations#42

Merged
alandtse merged 1 commit into
masterfrom
ci/add-pre-commit-config
May 31, 2026
Merged

ci: add pre-commit config and fix pre-commit violations#42
alandtse merged 1 commit into
masterfrom
ci/add-pre-commit-config

Conversation

@alandtse

Copy link
Copy Markdown
Owner

Summary

  • Adds .pre-commit-config.yaml (mirrors Buffout4's config: clang-format v16, trailing-whitespace, end-of-file-fixer, check-yaml)
  • Fixes the pre-commit.ci - push error on master caused by missing config
  • Excludes .clang-tidy from check-yaml since it uses multi-document YAML intentionally
  • Applies clang-format and trailing-whitespace fixes to 16 files that were out of compliance

Test plan

  • Verify pre-commit.ci passes on this PR
  • Confirm pre-commit.ci - push goes green on master after merge

🤖 Generated with Claude Code

Adds .pre-commit-config.yaml (mirrors Buffout4's config: clang-format v16,
trailing-whitespace, end-of-file-fixer, check-yaml) so pre-commit.ci stops
erroring with "error during ci config". Excludes .clang-tidy from check-yaml
since it intentionally uses multi-document YAML.

Also applies clang-format and trailing-whitespace fixes to the 16 files that
were out of compliance (mostly missing final newlines and alignment tweaks).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@alandtse, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 47 minutes and 31 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1ef7735b-7f0b-4e9b-aef6-4d94f888a50e

📥 Commits

Reviewing files that changed from the base of the PR and between e260e4c and 7b4610d.

📒 Files selected for processing (17)
  • .pre-commit-config.yaml
  • AddressLibDecoder/xmake.lua
  • CommonLibF4/.clang-tidy
  • CommonLibF4/CommonLibF4.natvis
  • CommonLibF4/include/RE/Bethesda/BSMemStorage.h
  • CommonLibF4/include/RE/Bethesda/BSResource/LooseFileStreamBase.h
  • CommonLibF4/include/RE/Bethesda/Misc.h
  • CommonLibF4/include/RE/Bethesda/SCRIPT_OUTPUT.h
  • CommonLibF4/include/REL/Common.h
  • CommonLibF4/include/REL/Pattern.h
  • CommonLibF4/src/RE/Bethesda/BSResource.cpp
  • CommonLibF4/src/RE/Bethesda/BSScript/Object.cpp
  • CommonLibF4/src/RE/Bethesda/BSScript/PackedInstructionStream.cpp
  • CommonLibF4/src/RE/Bethesda/BSScript/Struct.cpp
  • CommonLibF4/src/RE/Bethesda/BSScript/TypeInfo.cpp
  • CommonLibF4/src/RE/Bethesda/BSScript/Variable.cpp
  • CommonLibF4/xmake.lua
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/add-pre-commit-config

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@alandtse
alandtse merged commit ae3e301 into master May 31, 2026
11 checks passed
@alandtse
alandtse deleted the ci/add-pre-commit-config branch May 31, 2026 22:19
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.

2 participants