Skip to content

Support linting with depend-on-what-you-use and default-enable it - #2852

Merged
Databean merged 2 commits into
google:mainfrom
Databean:depend_on_what_you_use
Jul 14, 2026
Merged

Support linting with depend-on-what-you-use and default-enable it#2852
Databean merged 2 commits into
google:mainfrom
Databean:depend_on_what_you_use

Conversation

@Databean

Copy link
Copy Markdown
Member

This overlaps with layering_check (already enabled) but additionally validates that all build dependencies are actually necessary. Unlike other linters, errors are reported at bazel build rather than bazel test time.

Validation is enabled by default on all targets, and disabled for targets that are currently non-compliant.

Bug: b/534499070

@Databean
Databean requested a review from jemoreira July 14, 2026 01:40
Databean added 2 commits July 14, 2026 00:29
This overlaps with layering_check (already enabled) but additionally
validates that all build dependencies are actually necessary. Unlike
other linters, errors are reported at `bazel build` rather than `bazel
test` time.

Bug: b/534499070
Non-compliant targets are excluded.

Bug: b/534499070
@Databean
Databean force-pushed the depend_on_what_you_use branch from 8b2bc4f to 99cbc6f Compare July 14, 2026 07:36
@Databean Databean added the kokoro:run Run e2e tests. label Jul 14, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Jul 14, 2026
@Databean
Databean added this pull request to the merge queue Jul 14, 2026
@Databean

Copy link
Copy Markdown
Member Author

Thanks for reviewing!

Merged via the queue into google:main with commit 395b27f Jul 14, 2026
40 of 41 checks passed
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.

3 participants