Skip to content

Fix all highest level [5] cpplint errors - #7808

Merged
fayev-g merged 6 commits into
youtube:mainfrom
fayev-g:cpplint
Oct 31, 2025
Merged

fayev-g merged 6 commits into
youtube:mainfrom
fayev-g:cpplint

Conversation

@fayev-g

@fayev-g fayev-g commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator

The cpplint tool (Google C++ style) was added in C25 and cherry-picked into main (m138) in #7783. This PR fixes all highest level [5] errors that exist in the codebase. (In theory your PRs shouldn't be blocked by errors in files you don't touch.) These errors are mostly header guard, missing copyright, missing header inclusion, and syntax errors (missing terminating newline).

Bug: 456554108

@fayev-g
fayev-g requested review from a team as code owners October 31, 2025 01:07
@fayev-g
fayev-g requested a review from andrewsavage1 October 31, 2025 01:07
@fayev-g

fayev-g commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator Author

Will follow up with addressing [4] errors.

@fayev-g
fayev-g requested review from kaidokert and kjyoun October 31, 2025 01:10
Comment thread starboard/extension/feature_config.h Resolved
@fayev-g
fayev-g enabled auto-merge (squash) October 31, 2025 05:54

@andrewsavage1 andrewsavage1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems like good cleanup, but making changes like this in the main branch when we are developing in multiple branches (main, 26.android, and 26.eap) can be annoying when cherry-picking isn't clean. Would you be able to check if #7783 and then this change apply cleanly to the 26.eap branch as well?

Comment thread cobalt/shell/app/resource.h Resolved
@fayev-g

fayev-g commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator Author

This seems like good cleanup, but making changes like this in the main branch when we are developing in multiple branches (main, 26.android, and 26.eap) can be annoying when cherry-picking isn't clean. Would you be able to check if #7783 and then this change apply cleanly to the 26.eap branch as well?

Discussed offline. I tried cherry-picking but there are a lot of files that don't exist in 26.android and 26.eap. We think it will be easier to just run cpplint on those branches separately. The lint errors that get fixed at [5] should generally be straightforward - like incorrect header guards and random semicolons in places.

@fayev-g
fayev-g requested a review from johnxwork October 31, 2025 17:05
@fayev-g
fayev-g merged commit a9dd14d into youtube:main Oct 31, 2025
1 check passed
@fayev-g
fayev-g deleted the cpplint branch November 3, 2025 17:11
fayev-g added a commit that referenced this pull request Nov 4, 2025
Enable `cpplint` and fix all [5] errors, bringing this branch to parity
with `main` (m138). This will reduce merge commit friction between
`26.eap` and `main`. Errors are mostly header guard and basic formatting
errors. Follow up from #7808,
where we'd prefer not to just cherry-pick that PR since some files don't
exist in 26.eap (e.g. starboard/version.h).

Bug: 455923882
johnxwork pushed a commit that referenced this pull request Nov 5, 2025
Enable `cpplint` and fix all [5] errors, bringing this branch to parity
with `main` (m138). (Similar change has been submitted for 26.eap.) This
will reduce merge commit friction between `26.android` and `main`.
Errors are mostly header guard and basic formatting errors. Follow up
from #7808, where we'd prefer not
to just cherry-pick that PR since some files don't exist in 26.android
(e.g. starboard/link_receiver.cc).

Bug: 455923882
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.

5 participants