Skip to content
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

[tools] Disable cpplint's build/include checks #22264

Merged

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Dec 4, 2024

Towards #20731.

When using --enable_bzlmod=true, the default runfiles layout is not compatible with how cpplint expects things to work. (In particular, the root of our runfiles is named _main instead of drake now.) With some major surgery to our skylark lint rules we could probably get it working, but I don't think this feature is important enough to merit that level of surgery and maintenance. We have clang-format-includes which ensures the self-include statement is always first atop the file, and that seems good enough; forgetting the self-include entirely is not a common failure.


This change is Reviewable

@jwnimmer-tri jwnimmer-tri added priority: low release notes: none This pull request should not be mentioned in the release notes labels Dec 4, 2024
@jwnimmer-tri
Copy link
Collaborator Author

+@rpoyner-tri and +@sherm1 for reviews, please.

FYI @sammy-tri @ggould-tri @xuchenhan-tri @SeanCurtis-TRI in case you would like to weigh in.

Copy link
Member

@sherm1 sherm1 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: LGTM missing from assignee rpoyner-tri(platform)

Copy link
Contributor

@rpoyner-tri rpoyner-tri left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees rpoyner-tri(platform),sherm1(platform)

Copy link
Contributor

@rpoyner-tri rpoyner-tri left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignees rpoyner-tri(platform),sherm1(platform)

@rpoyner-tri rpoyner-tri merged commit f4c19e7 into RobotLocomotion:master Dec 4, 2024
10 checks passed
@jwnimmer-tri jwnimmer-tri deleted the cpplint-no-build-include branch December 4, 2024 18:36
RussTedrake pushed a commit to RussTedrake/drake that referenced this pull request Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low release notes: none This pull request should not be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants