mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
b1e6df55c3
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 |
||
---|---|---|
.. | ||
android | ||
clang-format | ||
clippy | ||
cpp | ||
eslint | ||
file-perm | ||
file-whitespace | ||
fluent-lint | ||
libpref | ||
license | ||
perfdocs | ||
python | ||
rst | ||
rust | ||
shell | ||
spell | ||
test | ||
tox | ||
wpt | ||
yamllint_ | ||
android-api-lint.yml | ||
android-checkstyle.yml | ||
android-javadoc.yml | ||
android-lint.yml | ||
android-test.yml | ||
black.yml | ||
clang-format.yml | ||
clippy.yml | ||
codespell.yml | ||
cpp-virtual-final.yml | ||
eslint.yml | ||
file-perm.yml | ||
file-whitespace.yml | ||
flake8.yml | ||
fluent-lint.yml | ||
hooks_clang_format.py | ||
hooks_js_format.py | ||
hooks.py | ||
l10n.yml | ||
license.yml | ||
lintpref.yml | ||
mach_commands.py | ||
mingw-capitalization.yml | ||
mscom-init.yml | ||
perfdocs.yml | ||
pylint.yml | ||
rejected-words.yml | ||
rst.yml | ||
rustfmt.yml | ||
shellcheck.yml | ||
test-manifest-disable.yml | ||
test-manifest-skip-if.yml | ||
wpt.yml | ||
yaml.yml |