This for a few reasons: * The summary becomes the landing page for code quality: https://firefox-source-docs.mozilla.org/tools/static-analysis/summary.html * I don't think we need a full code quality category * Closer to the source-code-doc * All the files at the same place Differential Revision: https://phabricator.services.mozilla.com/D61767
31 lines
669 B
ReStructuredText
31 lines
669 B
ReStructuredText
cpp virtual final
|
|
=================
|
|
|
|
This linter detects the virtual function declarations with multiple specifiers.
|
|
|
|
It matches our coding style:
|
|
Method declarations must use at most one of the following keywords: virtual, override, or final.
|
|
|
|
As this linter uses some simple regular expression, it can miss some declarations.
|
|
|
|
Run Locally
|
|
-----------
|
|
|
|
This linter can be run using mach:
|
|
|
|
.. parsed-literal::
|
|
|
|
$ mach lint --linter cpp-virtual-final <file paths>
|
|
|
|
|
|
Configuration
|
|
-------------
|
|
|
|
This linter is enabled on all C family files.
|
|
|
|
Sources
|
|
-------
|
|
|
|
* `Configuration (YAML) <https://searchfox.org/mozilla-central/source/tools/lint/cpp-virtual-final.yml>`_
|
|
|