Skip to content

Add cmake-format linter #12868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add cmake-format linter #12868

wants to merge 6 commits into from

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Jul 25, 2025

This uses the adapter I added to lintrunner-adapters in justinchuby/lintrunner-adapters#117, which was released in the newest lintrunner-adapters release.

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Jul 25, 2025

Stack from ghstack (oldest at bottom):

Copy link

pytorch-bot bot commented Jul 25, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12868

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 04b5196 with merge base 447ac26 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 25, 2025
@swolchok swolchok requested a review from mergennachin July 25, 2025 22:16
[ghstack-poisoned]
@swolchok swolchok added the release notes: none Do not include this in the release notes label Jul 25, 2025
[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

looks like the mass lint run needs to be included in this diff to avoid red required lintrunner CI.

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Jul 25, 2025
This uses the adapter I added to lintrunner-adapters in justinchuby/lintrunner-adapters#117 . Since there hasn't been a release yet, I copied the adapter to our repo; we can get rid of it when there's an upstream release of lintrunner-adapters and we upgrade to it.

ghstack-source-id: 354d2b4
ghstack-comment-id: 3120541492
Pull-Request: #12868
Copy link
Member

@GregoryComer GregoryComer left a comment

Choose a reason for hiding this comment

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

I skimmed through all of the formatted CMake code, though admittedly not in great detail. Looks good to me.

swolchok added a commit that referenced this pull request Jul 26, 2025
This uses the adapter I added to lintrunner-adapters in justinchuby/lintrunner-adapters#117 . Since there hasn't been a release yet, I copied the adapter to our repo; we can get rid of it when there's an upstream release of lintrunner-adapters and we upgrade to it.

ghstack-source-id: f0f4b2e
ghstack-comment-id: 3120541492
Pull-Request: #12868
[ghstack-poisoned]
swolchok added a commit that referenced this pull request Jul 26, 2025
This uses the adapter I added to lintrunner-adapters in justinchuby/lintrunner-adapters#117 . Since there hasn't been a release yet, I copied the adapter to our repo; we can get rid of it when there's an upstream release of lintrunner-adapters and we upgrade to it.

ghstack-source-id: 2a57ed5
ghstack-comment-id: 3120541492
Pull-Request: #12868
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants