403 Commits
Author SHA1 Message Date
Nika Layzell 266ce1ac80 Bug 2045015 - Remove inaccurate note about <concepts> from docs, r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D304768
2026-06-10 22:15:18 +00:00
Sylvestre Ledru ed312a73d2 Bug 2040162 - Add rumdl Markdown linter to mozlint r=linter-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D301350
2026-05-30 13:11:39 +00:00
Mark Banner c7995fdcc3 Bug 1790711 - Add an ESLint rule to prevent new usages of Preferences.sys.mjs. r=frontend-codestyle-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D301515
2026-05-22 08:39:17 +00:00
Sylvestre Ledru 7e25ae089e Bug 2040162 - Apply rumdl fixes to docs/code-quality r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D301156
2026-05-21 13:42:50 +00:00
Mark Banner c314fd95cd Bug 2041007 - Add missing documentation link for TypeScript best practices document. r=mossop DONTBUILD
Also fix the example of avoiding missing type annotations to not use the generic 'object' which would also be equivalent to 'any'.

Differential Revision: https://phabricator.services.mozilla.com/D301557
2026-05-21 08:13:14 +00:00
Gregory Mierzwinski df61e1661d Bug 1868773 - Update docs to use new perfdocs comand. r=fbilt,perftest-reviewers,mozperftest-reviewers,dom-storage-reviewers,dom-worker-reviewers,ai-platform-reviewers,kshampur,jesup,asuth
This patch takes care of updating all usages of the old perfdocs command to use `./mach perfdocs` instead.

Differential Revision: https://phabricator.services.mozilla.com/D297131
2026-05-05 21:42:48 +00:00
Sylvestre Ledru a2ce5437ce Bug 2024589 - doc: use the :searchfox: macro r=asuth,perftest-reviewers,necko-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,search-reviewers,releng-reviewers,places-reviewers,profiler-reviewers,win-reviewers,omc-reviewers,urlbar-reviewers,permissions-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,layout-reviewers,dom-worker-reviewers,ai-platform-reviewers,niklas,sthompson,janerik,bhearsum,valentin,dshin,sparky,scunnane,canaltinova,hanna_a,handyman,ahal,farre,jteow,emz,nrishel,ohall,dimi,robwu,emilio
Differential Revision: https://phabricator.services.mozilla.com/D288640
2026-04-30 13:28:53 +00:00
Sylvestre Ledru 62b1ca8d05 Bug 2024589 - adjust the code: searchfox.org/mozilla-central is now redirecting to searchfox.org/firefox-main/ r=asuth,perftest-reviewers,necko-reviewers,jgraham,webcompat-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,taskgraph-reviewers,releng-reviewers,desktop-theme-reviewers,win-reviewers,translations-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,profiles-reviewers,dom-worker-reviewers,geckodriver-reviewers,ai-platform-reviewers,Sasha,niklas,manuel,janerik,bhearsum,valentin,twisniewski,nchevobbe,emcminn,webrtc-reviewers,mjf,handyman,mconley,mossop,ahal,sparky,nrishel,robwu,ohall,dimi,hjones
Differential Revision: https://phabricator.services.mozilla.com/D288623
2026-04-30 13:28:49 +00:00
Chris Peterson b6c496bd20 Bug 2033985 - Move USING_ENUM macro into MFBT so it can be used in more code. r=jld,sergesanspaille,spidermonkey-reviewers,anba
1. Move js/src/builtin/intl/UsingEnum.h to mfbt/UsingEnum.h.

2. Rename USING_ENUM to MOZ_USING_ENUM.

3. Since few developers will be using GCC locally, they may forget to list all of the enum's enumerator values and only realize they broke the GCC build after their patch is backed out of autoland. To catch this error sooner, use the GCC macro in DEBUG builds on all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D295756
2026-04-30 05:04:37 +00:00
Sylvestre Ledru 05e7ee23d6 Bug 2023411 - Rewrite license linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille
Implement license check in Rust: validates files contain a recognized
license pattern, adds appropriate headers in fix mode, and checks
toolkit/content/license.html references.

Differential Revision: https://phabricator.services.mozilla.com/D288088
2026-04-24 16:08:45 +00:00
Sylvestre Ledru 0315328b09 Bug 2023411 - Rewrite trojan-source linter in Rust with Python wrapper r=linter-reviewers,ahal,sergesanspaille
Replaces the Python Unicode format-character detection with the
mozcheck Rust binary. Scans for Unicode Cf category characters
(CVE-2021-42572) in parallel using rayon.

This also improves the linter: the previous Python implementation
stopped on the first offending line per file, while the Rust
implementation reports every line containing a disallowed character.

Differential Revision: https://phabricator.services.mozilla.com/D288086
2026-04-24 16:08:41 +00:00
Sylvestre Ledru 98fbb17bc1 Bug 2023411 - Rewrite file-whitespace linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille
Replaces the Python whitespace-checking logic with the mozcheck Rust
binary. Detects and fixes trailing whitespace, missing final newlines,
empty trailing lines, and Windows CRLF line endings. Files are processed
in parallel using rayon.

Differential Revision: https://phabricator.services.mozilla.com/D288085
2026-04-24 16:08:37 +00:00
Sylvestre Ledru f863bc0bf8 Bug 2023411 - Rewrite file-perm linter in Rust with Python wrapper r=linter-reviewers,ahal,sergesanspaille
Replaces the Python permission-checking logic with the mozcheck Rust
binary. Checks executable bits in parallel using rayon, supports
--allow-shebang and --fix modes. Falls back to building from source
locally.

Differential Revision: https://phabricator.services.mozilla.com/D288084
2026-04-24 16:08:33 +00:00
Sylvestre Ledru 95c876dd5b Bug 2023411 - Rewrite rejected-words linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille,ahal
Replaces the built-in regex linter type with an external linter backed by
the mozcheck Rust binary. Files are scanned in parallel using rayon.
The Python wrapper builds mozcheck from source if no pre-built binary
is available.

Differential Revision: https://phabricator.services.mozilla.com/D288083
2026-04-24 16:08:29 +00:00
Sylvestre Ledru d58507b4e3 Bug 2023410 - Add mozcheck Rust crate skeleton with batch mode r=linter-reviewers,ahal
A new in-tree Rust binary (tools/lint/mozcheck/) that provides fast,
parallelized implementations of simple mozlint linters. This commit adds
the project setup and shared JSONL output infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D288081
2026-04-24 16:08:21 +00:00
Silaghi 9cd1694cc6 Revert "Bug 2023410, Bug 2023411 - Add moz-linter CI toolchain task and fetch it in lint jobs r=linter-reviewers,sergesanspaille" for causing lint failures
This reverts commit 03aac63b97.

Revert "Bug 2023411 - Rewrite license linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille"

This reverts commit c29a886b20.

Revert "Bug 2023411 - Rewrite trojan-source linter in Rust with Python wrapper r=linter-reviewers,ahal,sergesanspaille"

This reverts commit a97b716a4b.

Revert "Bug 2023411 - Rewrite file-whitespace linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille"

This reverts commit 45e041167e.

Revert "Bug 2023411 - Rewrite file-perm linter in Rust with Python wrapper r=linter-reviewers,ahal,sergesanspaille"

This reverts commit 13d700d21e.

Revert "Bug 2023411 - Rewrite rejected-words linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille,ahal"

This reverts commit 4450b820ea.

Revert "Bug 2023410 - Add rust linter support to mozlint r=linter-reviewers,ahal"

This reverts commit 2093eacdab.

Revert "Bug 2023410 - Add mozcheck Rust crate skeleton with batch mode r=linter-reviewers,ahal"

This reverts commit 2eb23ab681.
2026-04-23 10:00:10 +00:00
Sylvestre Ledru c29a886b20 Bug 2023411 - Rewrite license linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille
Implement license check in Rust: validates files contain a recognized
license pattern, adds appropriate headers in fix mode, and checks
toolkit/content/license.html references.

Differential Revision: https://phabricator.services.mozilla.com/D288088
2026-04-23 08:00:50 +00:00
Sylvestre Ledru a97b716a4b Bug 2023411 - Rewrite trojan-source linter in Rust with Python wrapper r=linter-reviewers,ahal,sergesanspaille
Replaces the Python Unicode format-character detection with the
mozcheck Rust binary. Scans for Unicode Cf category characters
(CVE-2021-42572) in parallel using rayon.

This also improves the linter: the previous Python implementation
stopped on the first offending line per file, while the Rust
implementation reports every line containing a disallowed character.

Differential Revision: https://phabricator.services.mozilla.com/D288086
2026-04-23 08:00:46 +00:00
Sylvestre Ledru 45e041167e Bug 2023411 - Rewrite file-whitespace linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille
Replaces the Python whitespace-checking logic with the mozcheck Rust
binary. Detects and fixes trailing whitespace, missing final newlines,
empty trailing lines, and Windows CRLF line endings. Files are processed
in parallel using rayon.

Differential Revision: https://phabricator.services.mozilla.com/D288085
2026-04-23 08:00:43 +00:00
Sylvestre Ledru 13d700d21e Bug 2023411 - Rewrite file-perm linter in Rust with Python wrapper r=linter-reviewers,ahal,sergesanspaille
Replaces the Python permission-checking logic with the mozcheck Rust
binary. Checks executable bits in parallel using rayon, supports
--allow-shebang and --fix modes. Falls back to building from source
locally.

Differential Revision: https://phabricator.services.mozilla.com/D288084
2026-04-23 08:00:39 +00:00
Sylvestre Ledru 4450b820ea Bug 2023411 - Rewrite rejected-words linter in Rust with Python wrapper r=linter-reviewers,sergesanspaille,ahal
Replaces the built-in regex linter type with an external linter backed by
the mozcheck Rust binary. Files are scanned in parallel using rayon.
The Python wrapper builds mozcheck from source if no pre-built binary
is available.

Differential Revision: https://phabricator.services.mozilla.com/D288083
2026-04-23 08:00:36 +00:00
Sylvestre Ledru 2eb23ab681 Bug 2023410 - Add mozcheck Rust crate skeleton with batch mode r=linter-reviewers,ahal
A new in-tree Rust binary (tools/lint/mozcheck/) that provides fast,
parallelized implementations of simple mozlint linters. This commit adds
the project setup and shared JSONL output infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D288081
2026-04-23 08:00:29 +00:00
Sylvestre Ledru 76babe304c Bug 2031447 - Document how to enable additional clippy rules in clippy.yml r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D294000
2026-04-21 08:24:35 +00:00
Emilio Cobos Álvarez c1ea090344 Bug 2033242 - Rename ownerDocGlobal to documentGlobal, and use it where appropriate in child actors and remote/. r=firefox-desktop-core-reviewers ,credential-management-reviewers,devtools-reviewers,migration-reviewers,frontend-codestyle-reviewers,ai-platform-reviewers,jdescottes,dimi,dao,Gijs,webidl,smaug
Child actors generally deal with content nodes, and those can be
adopted, in order to preserve behavior, switch to the new
.documentGlobal.

Fix + rename the use-ownerGlobal lint since now it's wrong.
.ownerDocument.defaultView is .documentGlobal, not .ownerGlobal now.

Differential Revision: https://phabricator.services.mozilla.com/D294805
2026-04-20 19:53:06 +00:00
agoloman c6e5fd4dde Revert "Bug 2033242 - Rename ownerDocGlobal to documentGlobal, and use it where appropriate in child actors and remote/. r=firefox-desktop-core-reviewers ,credential-management-reviewers,devtools-reviewers,migration-reviewers,frontend-codestyle-reviewers,ai-platform-reviewers,jdescottes,dimi,dao,Gijs,webidl,smaug" for causing node failures @use-documentGlobal.mjs.
This reverts commit 200837ed3b.
2026-04-20 17:07:56 +00:00
Emilio Cobos Álvarez 200837ed3b Bug 2033242 - Rename ownerDocGlobal to documentGlobal, and use it where appropriate in child actors and remote/. r=firefox-desktop-core-reviewers ,credential-management-reviewers,devtools-reviewers,migration-reviewers,frontend-codestyle-reviewers,ai-platform-reviewers,jdescottes,dimi,dao,Gijs,webidl,smaug
Child actors generally deal with content nodes, and those can be
adopted, in order to preserve behavior, switch to the new
.documentGlobal.

Fix + rename the use-ownerGlobal lint since now it's wrong.
.ownerDocument.defaultView is .documentGlobal, not .ownerGlobal now.

Differential Revision: https://phabricator.services.mozilla.com/D294805
2026-04-20 16:37:30 +00:00
Chris Peterson 6a365bf36b Bug 2031589 - Fix formatting of the coding style guide's Algorithms table. r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D294096
2026-04-16 06:34:39 +00:00
Chris Peterson cd81caf080 Bug 2031589 - Update coding style guide's list of C++ features now allowed with C++20. r=nika,firefox-build-system-reviewers,glandium
* Default member-initializers for bit fields are now supported in C++20.

* [[attributes]] have been used for a while now.

* Concepts are supported in C++20.

* constexpr lambdas have been supported since C++17.

* Designated initializers are supported in C++20.

* std::format (C++20) is not fully supported in GCC libstdc++ until GCC
  13. Use the fmt/format.h library instead.

* Coroutines aren't allowed because Clang doesn't support them on
  Windows.

* using enum is not supported in GCC 10.

Differential Revision: https://phabricator.services.mozilla.com/D294095
2026-04-16 06:34:35 +00:00
Ejiro Oghenekome ab144d7d50 Bug 1910902 - Update sidebar icons and references to use collapsed versions. r=nsharpley,desktop-theme-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D289053
2026-03-26 18:05:15 +00:00
Sylvestre Ledru dafd32a24a Bug 2023419 - Update coding style docs: replace modeline guidance with .editorconfig reference r=emilio DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D287833
2026-03-25 13:09:00 +00:00
dwhisman c4d3821abb Bug 2015129 - Support Nova overrides for design tokens r=desktop-theme-reviewers,frontend-codestyle-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D282483
2026-03-17 19:56:34 +00:00
Sylvestre Ledru e395ead174 Bug 2023419 - remove Emacs/Vim modelines from the examples r=emilio DONTBUILD
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287880
2026-03-17 07:48:48 +00:00
Sylvestre Ledru e82c25717c Bug 2017007 - Fix modeline example in general coding style docs to match actual codebase convention r=emilio DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D287817
2026-03-16 10:56:49 +00:00
Sylvestre Ledru d8c329f668 Bug 1670949 - Remove deprecated mach clang-format code and update docs to use mach lint -l clang-format r=linter-reviewers,geckoview-reviewers,ai4dev-reviewers,suhaib,m_kato,sergesanspaille,ahal
+ add a warning message

Differential Revision: https://phabricator.services.mozilla.com/D287017
2026-03-14 14:21:38 +00:00
dwhisman 304b0cd721 Bug 2017717 - Rename --outline-color-error to --border-color-error r=hjones,desktop-theme-reviewers,omc-reviewers,home-newtab-reviewers,profiles-reviewers,fchasen,mossop,emcminn,maxx
Differential Revision: https://phabricator.services.mozilla.com/D284104
2026-03-13 15:31:55 +00:00
dwhisman 39d81e0c49 Bug 2013342 - Categorize card, popup, and tab tokens as component tokens r=mtigley,extension-reviewers,desktop-theme-reviewers,credential-management-reviewers,tabbrowser-reviewers,omc-reviewers,home-newtab-reviewers,ai-frontend-reviewers,profiles-reviewers,ip-protection-reviewers,janerik,jules,mossop,nsharpley,kpatenio,robwu,emcminn,jlewis,maxx
Differential Revision: https://phabricator.services.mozilla.com/D283723
2026-03-13 15:31:52 +00:00
Alex Hochheiden 0c4007f8c3 Bug 1988790 - Add linter to detect references to Android strings marked for removal (moz:removedIn) r=tthibaud,linter-reviewers,android-reviewers,android-l10n-reviewers,flod,sylvestre,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D286380
2026-03-11 21:40:36 +00:00
dwhisman 996275da9f Bug 2013342 - Rename heading font tokens to be consistent with base font tokens r=mtigley,desktop-theme-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,places-reviewers,omc-reviewers,home-newtab-reviewers,urlbar-reviewers,ai-frontend-reviewers,profiles-reviewers,ip-protection-reviewers,akulyk,kpatenio,nsharpley,chutten,nchevobbe,sclements,mossop,jules,mlucks,emcminn,maxx
Differential Revision: https://phabricator.services.mozilla.com/D281466
2026-03-11 20:43:23 +00:00
Dave Townsend d3162fa3b1 Bug 1744624: Add a lint rule warning about the use of ContentTask.spawn. r=frontend-codestyle-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,tabbrowser-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,home-newtab-reviewers,urlbar-reviewers,dom-worker-reviewers,nchevobbe,edenchuang,mtigley,nsharpley,valentin,Standard8,nbarrett
Also disables the error for remaining uses and removes so old comments referencing ContentTask.spawn.

Differential Revision: https://phabricator.services.mozilla.com/D286261
2026-03-11 17:43:28 +00:00
dwhisman e95262ce02 Bug 2010337 - Consolidate no-non-semantic-token-usage rule into use-design-tokens r=desktop-theme-reviewers,tabbrowser-reviewers,home-newtab-reviewers,ai-frontend-reviewers,accessibility-frontend-reviewers,mconley,sclements,tgiles,sthompson,morgan
This removes the `no-non-semantic-token-usage` rule, which only captured a few dozen errors that are redundant with the `use-design-tokens` rule. It also expands the list of properties we're checking and adjusts the rule's behavior to cover more intended use cases.

Differential Revision: https://phabricator.services.mozilla.com/D279963
2026-02-13 22:19:28 +00:00
Sylvestre Ledru 23630d2488 Bug 2015713 - doc: fix doc warnings in the coding style pages r=marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D283237
2026-02-13 14:46:35 +00:00
Tom Marble 3b3efde701 Bug 2009254 - Test manifest cleanup January 2026 r=ahal,necko-reviewers,webcompat-reviewers,credential-management-reviewers,devtools-reviewers,tabbrowser-reviewers,profiler-reviewers,dom-storage-reviewers,toolkit-telemetry-reviewers,layout-reviewers,dom-worker-reviewers,whimboo,hjones,sthompson,twisniewski,valentin,asuth,dholbert,dimi,ochameau
Updates Test Manifests to new conventions for the upcoming
linter patch in Bug 2004444. These conventions are documented in
   docs/code-quality/lint/linters/test-manifest-toml.rst
which will get published to
  https://firefox-source-docs.mozilla.org/code-quality/lint/linters/test-manifest-toml.html

Summary of changes:
- The order of comparisons/variables is now important in conditional
  expressions. Certain expressions have been edited to reflect this
  order (with no semantic changes).
- The variables which are tested for equality as well as all the flags
  are constrained to a known set (i.e. typos in variable/flag names
  will be caught by the linter)
- Older platforms which are no longer present in the CI infrastructure
  have been deprecated, for example:
   * ``"os == 'linux' && os_version == '18.04'
- Combinations of platforms and flags which are no longer present in
  the CI infrastructure will be removed, for example:
   * ``"os == 'linux' && os_version == '22.04' && asan"``
   * ``"os == 'linux' && os_version == '22.04' && tsan"``
   * ``"os == 'win' && tsan``
- Old platform combination flags and isLinux style flags have been
  deprecated in favor of explicitly checking os, os_version, etc.

NOTE: code changes in this patch are simply to maintain self tests
and do not reflect the updated linter changes.

Signed-off-by: Tom Marble <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D278535
2026-01-21 13:53:31 +00:00
Mark Banner 3667d27bf2 Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in other code. r=mcheang,extension-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,ai-frontend-reviewers,toolkit-telemetry-reviewers,hsohaney,emcminn,robwu,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D272914
2026-01-21 08:05:07 +00:00
Cristina Horotan 105a7d3351 Revert "Bug 2000685 - Fix various tests after moving SearchService to be a singleton. r=mcheang,toolkit-telemetry-reviewers,mstriemer" for causing newtab failure. DONTBUILD
This reverts commit 844b03e2a8.

Revert "Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in other code. r=mcheang,extension-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,ai-frontend-reviewers,toolkit-telemetry-reviewers,hsohaney,emcminn,robwu,Gijs"

This reverts commit 94811f6708.

Revert "Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in urlbar and search code. r=mcheang"

This reverts commit b0f3b3e975.

Revert "Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in newtab code. r=mcheang,home-newtab-reviewers,nbarrett"

This reverts commit 25f775d4a2.

Revert "Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in extensions code. r=mcheang,extension-reviewers,robwu"

This reverts commit 462b01b86a.

Revert "Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in enterprise policies code. r=mcheang"

This reverts commit 7d7bbd910f.

Revert "Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in toolkit search code. r=mcheang"

This reverts commit 66fe0f4123.

Revert "Bug 2000685 - Replace the search service instance with a singleton - initial mechanical changes. r=mcheang,frontend-codestyle-reviewers"

This reverts commit eea6e5a119.
2026-01-20 23:13:49 +00:00
Mark Banner 94811f6708 Bug 2000685 - Replace Services.search with direct loading of the SearchService singleton in other code. r=mcheang,extension-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,ai-frontend-reviewers,toolkit-telemetry-reviewers,hsohaney,emcminn,robwu,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D272914
2026-01-20 22:18:52 +00:00
Jon Oliver 3860fc114e Bug 2005830: consolidate use-size-tokens stylelint rule with use-design-tokens rule r=desktop-theme-reviewers,tabbrowser-reviewers,frontend-codestyle-reviewers,Gijs
- converts use-size-tokens rule to be configured via use-design-tokens rule
- updates size and space tests/docs for use-size-tokens, because some properties use both rules

Differential Revision: https://phabricator.services.mozilla.com/D276304
2026-01-15 18:00:18 +00:00
serge-sans-paille c42d675092 Bug 2009182 - Lint missing header guards r=ahal,linter-reviewers,Standard8
When a file with .h or .hpp extension does not provide a header guard,
fail and/or provide a fix with a standard naming scheme.

Actual linter + test + documentation.

Differential Revision: https://phabricator.services.mozilla.com/D278442
2026-01-15 13:41:22 +00:00
dwhisman 13e3fb82c2 Bug 2007003 - Allow locally defined tokens to use base color tokens r=mkennedy
Differential Revision: https://phabricator.services.mozilla.com/D277238
2026-01-14 18:52:07 +00:00
dwhisman ce553c96b9 Bug 2007010 - Use stylelint warnings to suggest tokens rather than system colors r=akulyk
This updates `use-design-tokens` rules to treat system colors like ButtonFace or CanvasText as allowed, but suggest design tokens to use instead, since they should account for forced colors or high contrast for the most part. These will be warnings rather than errors, and they won't autofix.

Differential Revision: https://phabricator.services.mozilla.com/D277941
2026-01-13 18:09:55 +00:00
Charlotte Wilson a77c602d66 Bug 1911732 - Update coding_style_java.rst with Geckoview (Google) styling info r=m_kato,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D277966
2026-01-13 06:13:45 +00:00