Skip to content

Chore: Also list native files with clang-tidy on android#9164

Open
wisniewskij wants to merge 4 commits intomainfrom
@wisniewskij/lint-everything-on-android
Open

Chore: Also list native files with clang-tidy on android#9164
wisniewskij wants to merge 4 commits intomainfrom
@wisniewskij/lint-everything-on-android

Conversation

@wisniewskij
Copy link
Contributor

@wisniewskij wisniewskij commented Mar 23, 2026

Summary

Previously we would lint only files in "Common" with clang-tidy.

After this PR we also lint native files for android.

Test plan

@wisniewskij wisniewskij requested a review from tjzel March 23, 2026 16:21
"lint:js": "eslint src __tests__ __typetests__ && yarn prettier --check src __tests__ __typetests__",
"lint:android": "../../scripts/validate-android.sh && ./android/gradlew -p android spotlessCheck -q && ../../scripts/cpplint.sh android/src && yarn format:android:cpp --dry-run -Werror && yarn lint:cmake",
"lint:common": "../../scripts/validate-common.sh && ../../scripts/cpplint.sh Common && yarn format:common --dry-run -Werror",
"lint:clang-tidy": "../../scripts/clang-tidy-lint.sh \"Common\"",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will lint both android and apple files during a single run and we don't want that as compile_commands.json are only per single platform - this should be split into several commands.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please make lint-clang-tidy GitHub action triggerable by workflow_dispatch so we could manually dispatch the action to test this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure that's not the case since run-clang-tidy lints strictly only files that are in the compilation database, which is generated per given platform

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please verify it somehow 🙏

@wisniewskij wisniewskij self-assigned this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants