gecko-dev/tools/lint
Aaron Klotz b1e6df55c3 Bug 1715650: Add linter for detecting COM initialization; r=linter-reviewers,andi
This patch adds a new linter that will error when new code mentions any one of
the following strings:

* `CoInitialize`;
* `CoInitializeEx`;
* `OleInitialize`;
* `RoInitialize`;
* `CoUninitialize`;
* `OleUninitialize`; and
* `RoUninitialize`.

Since I don't care about context, and just want to flag code containing these
names, I opted for a `regex` linter.

Yes, the regex does match a few strings beyond the above list (in particular, it
also matches additional strings that end with an `Ex` suffix), but since
functions with those names don't exist anyway (and would be errors in their own
right), I am not concerned about it.

All existing occurrences have been added to the exclusion list, with the
intent of removing most of them over time.

Differential Revision: https://phabricator.services.mozilla.com/D119129
2021-07-06 14:05:42 +00:00
..
android
clang-format Bug 1708592 - Get tools from MOZ_FETCHES_DIR on automation. r=firefox-build-system-reviewers,mhentges 2021-04-30 21:09:11 +00:00
clippy Bug 1709496 - Attribute clippy issues to the specific file where they are. r=sylvestre 2021-05-06 21:17:56 +00:00
cpp
eslint Bug 1515695 - Remove Task.jsm. r=florian,jdescottes 2021-06-17 08:28:02 +00:00
file-perm Bug 1591991 Add lint Fixed count support to linters r=sylvestre 2021-02-08 19:00:10 +00:00
file-whitespace Bug 1591991 Add lint Fixed count support to linters r=sylvestre 2021-02-08 19:00:10 +00:00
fluent-lint Bug 1716551 - Improve Fluent linter behavior with single and double quotes, r=dminor 2021-06-16 15:11:55 +00:00
libpref
license Bug 1591991 Add lint Fixed count support to linters r=sylvestre 2021-02-08 19:00:10 +00:00
perfdocs Bug 1716598 - Use Unix line endings when generating perfdocs. r=perftest-reviewers,Bebe 2021-06-17 13:26:37 +00:00
python Bug 1713683 - Run `setup` function with `lintargs` including log and virtual env binary path. r=ahal 2021-06-02 21:24:49 +00:00
rst
rust Bug 1708592 - Normalize paths when filtering in clippy and rustfmt lints. r=sylvestre 2021-04-30 21:09:12 +00:00
shell
spell Bug 1717447 - mozlint/spell: update to version 2.1.0 r=linter-reviewers,marco DONTBUILD 2021-06-21 15:29:11 +00:00
test Bug 1716598 - Use Unix line endings when generating perfdocs. r=perftest-reviewers,Bebe 2021-06-17 13:26:37 +00:00
tox
wpt Bug 1690398 - Require Python 3 for wpt lint, r=aryx 2021-02-04 12:35:56 +00:00
yamllint_
android-api-lint.yml
android-checkstyle.yml
android-javadoc.yml
android-lint.yml
android-test.yml
black.yml Bug 1714641: Remove usages of vendored "wptserve_py2" library r=jgraham,ahal 2021-06-09 15:48:51 +00:00
clang-format.yml
clippy.yml Bug 1708935 - Don't run clippy on crates that don't build on Linux. r=sylvestre 2021-05-04 09:31:12 +00:00
codespell.yml Bug 1717447 - mozlint/spell: don't run on tools/lint/cpp/mingw-headers.txt r=linter-reviewers,marco DONTBUILD 2021-06-21 15:29:10 +00:00
cpp-virtual-final.yml
eslint.yml
file-perm.yml
file-whitespace.yml Bug 1714641: Remove usages of vendored "wptserve_py2" library r=jgraham,ahal 2021-06-09 15:48:51 +00:00
flake8.yml
fluent-lint.yml Bug 1416149 - Add linter for checking fluent files r=zbraniecki,gregtatum,flod,Gijs,fluent-reviewers,linter-reviewers,sylvestre 2021-02-11 17:35:29 +00:00
hooks.py
hooks_clang_format.py Bug 1699188 - [mozlint] Include jsmin now that mozversioncontrol uses it r=ahal 2021-03-17 18:57:03 +00:00
hooks_js_format.py Bug 1699188 - [mozlint] Include jsmin now that mozversioncontrol uses it r=ahal 2021-03-17 18:57:03 +00:00
l10n.yml
license.yml Bug 1688088 - Update Bing logo for top sites. r=nanj 2021-04-12 15:20:45 +00:00
lintpref.yml
mach_commands.py Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers 2021-05-17 16:15:58 +00:00
mingw-capitalization.yml
mscom-init.yml Bug 1715650: Add linter for detecting COM initialization; r=linter-reviewers,andi 2021-07-06 14:05:42 +00:00
perfdocs.yml Bug 1706627: Migrate static wiki content for AWSY tests to PerfDocs r=perftest-reviewers,sparky 2021-05-11 20:08:08 +00:00
pylint.yml
rejected-words.yml Bug 1713796 - P1: Move nsHostRecord to another file, r=necko-reviewers,valentin 2021-06-16 08:14:10 +00:00
rst.yml
rustfmt.yml Bug 1706824 - Remove old direct-composition example. r=gfx-reviewers,lsalzman 2021-05-04 00:32:41 +00:00
shellcheck.yml
test-manifest-disable.yml Bug 1708293 - [lint] Add a linter to prefer multiline skip-if statements in test manifests, r=releng-reviewers,jmaher 2021-04-29 18:38:59 +00:00
test-manifest-skip-if.yml Bug 1708293 - [lint] Add a linter to prefer multiline skip-if statements in test manifests, r=releng-reviewers,jmaher 2021-04-29 18:38:59 +00:00
wpt.yml
yaml.yml