2 Commits
Author SHA1 Message Date
cdesouza-chromium c31f01cfc2 [include-what-you-use] Initial tooling (#36508)
This PR introduces the basic tooling to have `include-what-you-use` run
against the brave codebase in maintainance mode. This manual regular
runs that cover more and more of the codebase.

Bug: https://github.com/brave/brave-browser/issues/42212
2026-05-19 18:59:55 +01:00
cdesouza-chromium 48803a3f6b [presubmit] Warn on TS error suppressions with no reason (#35589)
This PR adds a presubmit check to require authors to provide a reason
for using suppresion tags for the TS compiler, these being:

- `@ts-ignore`: Suppresses the error on the next line.
- `@ts-expect-error`: Suppresses the error, but alerts if not error.

Additionally, and educational warning is being added to make sure that
authors consider the use `@ts-expect-error` when appropriate, as
`@ts-ignore` is more permissive, and can become quietly obsolete.

Resolves https://github.com/brave/brave-browser/issues/54575
2026-04-16 19:20:39 +01:00