Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Early Warning System: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
m (fixed markup)
m (Use QUIP template.)
 
(35 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Developing_Qt::QA]]
[[Category:Developing_Qt::QA]]
[[Category:Tools]]


Once a new review is created or an old review has been updated, the Early Warning System kicks in, by watching for new patch reviews to process.
Once a new review is created or an old review has been updated, the Early Warning System kicks in, by watching for new patch reviews to process.
Line 7: Line 8:
If you get a -1 from a review bot, please ensure you look at the issues noted by the bot, and upload a new version. The review bots will then automatically review the update and give you feedback.
If you get a -1 from a review bot, please ensure you look at the issues noted by the bot, and upload a new version. The review bots will then automatically review the update and give you feedback.


== Sanity Bot ==
==Sanity Bot==


This bot runs the '''Simple Sanitizer''' (see below) for the Gerrit server. It does two additional checks:
This bot runs the '''Simple Sanitizer''' (see below) for the Gerrit server. It does two additional checks:


# '''Work In Progress push check.''' This is meant to avoid that somebody accidentally submits something you marked for later cleanup. It checks for the strings "WIP" and "***" in the summary line.
#'''Work In Progress push check.''' This is meant to avoid that somebody accidentally submits something you marked for later cleanup. It checks for the strings "WIP" and "***" in the summary line.
# '''A check about touching certain files.''' Some files are considered "endangered" - seemingly innocuous modifications almost always turn out to be bogus when not done by one of a few experts. Touching other files may require followup changes, e.g., documentation updates after GUI changes. The bot automatically invites relevant reviewers.
#'''A check about touching certain files.''' Some files are considered "endangered" - seemingly innocuous modifications almost always turn out to be bogus when not done by one of a few experts. Touching other files may require followup changes, e.g., documentation updates after GUI changes. The bot automatically invites relevant reviewers.


The bot's verdict is a recommendation, and may be overridden by every Approver. However, don't ignore it unless you have a ''really'' good reason. "I need to get this done '''now'''" is not a valid reason. Neither is "I cannot be bothered to understand what it wants from me". If there is any doubt, discuss alternatives with somebody appropriate. Each override needs to come with a justifying comment on Gerrit.
The bot's verdict is a recommendation, and may be overridden by every Approver. However, don't ignore it unless you have a ''really'' good reason. "I need to get this done '''now'''" is not a valid reason. Neither is "I cannot be bothered to understand what it wants from me". If there is any doubt, discuss alternatives with somebody appropriate. Each override needs to come with a justifying comment on Gerrit.


=== The Simple Sanitizer ===
===The Simple Sanitizer===


The sanitizer script is available from the "qtrepotools repository":https://qt.gitorious.org/qt/qtrepotools.
The sanitizer script is available from the [https://code.qt.io/cgit/qt/qtrepotools.git qtrepotools repository].
Every contributor should install it locally in every repository. See the <tt>qtrepotools/git-hooks/git_post_commit_hook</tt> script (it contains installation instructions).
Every contributor should install it locally in every repository. See the <tt>qtrepotools/git-hooks/git_post_commit_hook</tt> script (it contains installation instructions).


It does the following checks:
It does the following checks:
# '''The line ending check.''' We are developing in a heterogeneous environment with both Unix and Windows machines. Therefore it is imperative to have all files in the repository in the canonical LF-only format. Windows users need to set the git option <tt>core.autocrlf</tt> to <tt>true</tt> to automatically get CRLF line endings which are suitable for the native tools.
 
# '''Conflict marker check.''' Unless you are adding a text file which contains the patterns on purpose, you most probably botched a merge/rebase.
#'''The line ending check.''' We are developing in a heterogeneous environment with both Unix and Windows machines. Therefore it is imperative to have all files in the repository in the canonical LF-only format. Windows users need to set the git option <tt>core.autocrlf</tt> to <tt>true</tt> to automatically get CRLF line endings which are suitable for the native tools.
# '''Generated file check.''' Don't commit generated files- they bloat the repository and create spurious changes. If a file is generated but you don't know how to automate the build process, ask an expert.
#'''Conflict marker check.''' Unless you are adding a text file which contains the patterns on purpose, you most probably botched a merge/rebase.
# '''Backup file check.''' Don't commit backup files, for hopefully obvious reasons.
#'''Generated file check.''' Don't commit generated files- they bloat the repository and create spurious changes. If a file is generated but you don't know how to automate the build process, ask an expert.
# '''Copyright header check.''' Source files must declare copyright (unless they are very small). They should also name a licence, but the check does not cover that.
#'''Backup file check.''' Don't commit backup files, for hopefully obvious reasons.
# '''Check for project/config files of alien build systems.''' As we are using qmake, these will in most cases fall under the "generated file" rule anyway.
#'''Copyright header check.''' Source files must declare copyright (unless they are very small). They should also name a licence, but the check does not cover that.
# '''Big file addition check.''' Think three times whether you ''really'' need that huge media file, test binary or screenshot. As we are using git, such mistakes are not correctable - once you added a huge file, everyone who clones the repository will have to pay for it with network traffic and disk space for all times. Source code files are exempt from the check at all; for the rest it is a bit paranoid (it will complain about anything bigger than 50 KiB or an instantaneous file growth over 150% if the file is bigger than 20 KiB).
#'''Check for project/config files of alien build systems.''' As we are using qmake, these will in most cases fall under the "generated file" rule anyway.
# '''Huge file addition check.''' If you trigger that one, you almost certainly did something wrong. This blocks submission; ask an admin.
#'''Big file addition check.''' Think three times whether you ''really'' need that huge media file, test binary or screenshot. As we are using git, such mistakes are not correctable - once you added a huge file, everyone who clones the repository will have to pay for it with network traffic and disk space for all times. Source code files are exempt from the check at all; for the rest it is a bit paranoid (it will complain about anything bigger than 50 KiB or an instantaneous file growth over 150% if the file is bigger than 20 KiB).
# '''Some simple checks on the commit message:'''
#'''Huge file addition check.''' If you trigger that one, you almost certainly did something wrong. This blocks submission; ask an admin.
## Compliance with "the expected structure":http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html.
#'''Header file extension check.''' By convention, all header files should have an ".h" extension in Qt.
## That reverts are properly explained, which follows directly from the [[Commit Policy]] point 8.2.
#'''Some simple checks on the commit message:'''
## That the author email address does not reflect an unconfigured git setup.
##Compliance with [http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html the expected structure].
## That the author real name looks reasonable. Use proper capitalization and periods after initials.
##That reverts are properly explained, which follows directly from the [[Commit Policy]] point 8.2.
### Exceptions can be requested, but must be reasonably justified.
##That the author email address does not reflect an unconfigured git setup.
## That the summary does not refer to JIRA issues. Use Task-number footers for that. If the reader needs to know which issue a commit refers to, they most definitely should read more than just the commit summary anyway.
##That the author real name looks reasonable. Use proper capitalization and periods after initials.
## That no Reviewed-by footers have been manually added, as they would stay behind even if the mentioned person did not actually make a review.
##*Exceptions can be requested, but must be reasonably justified.
## That no Signed-off-by footers have been added, as they are redundant with the act of signing the "CLA":http://qt.io/legal.html (advisory only).
##That the summary is between 7 and 70 characters long. Up to 120 characters are accepted grudgingly.
## That there is an empty line before the footers.
##That the summary does not end with a period. Summaries are titles, and titles do not end with periods.
## That there are no empty lines between footers. The footers (including any "(cherry picked from …)" lines) should form one tidy set-off block. If you are getting an empty line before the automatically added Change-Id line, you are most probably using a bad commit-msg hook - get a fresh copy from our Gerrit, or use the one from our "qtrepotools repository":http://qt.gitorious.org/qt/qtrepotools/blobs/master/git-hooks/gerrit_commit_msg_hook. If you are using the "Qt supermodule":https://qt.gitorious.org/qt/qt5/, you can run <code>init-repository -f —force-hooks</code> to update your hooks.
##That the summary is in an [http://chris.beams.io/posts/git-commit/#imperative imperative mood], i.e. "spoken or written as if giving a command or instruction".
## That footers are not followed by more non-footer text.
##That the summary does not refer to JIRA issues. Use Task-number footers for that. If the reader needs to know which issue a commit refers to, they most definitely should read more than just the commit summary anyway.
##* The "Conflicts:" section in merge commits will trigger this. Move the section above the footers.
##That no Reviewed-by footers have been manually added, as they would stay behind even if the mentioned person did not actually make a review.
## That "JIRA issues":https://bugreports.qt.io/ are not referenced by URL. URLs make the commit messages noisy and unnecessarily bind them to the current location of the bug tracker. Use the Task-number footer according to the "commit template":http://qt.gitorious.org/qt/qt5/blobs/stable/.commit-template to make "Gerrit":https://codereview.qt.io/ automatically link issues.
##That no Signed-off-by footers have been added, as they are redundant with the act of signing the [http://qt.io/legal.html CLA] (advisory only).
## That other commits are not referenced by Gerrit Change-Id or URL. Change-Ids have the disadvantage of introducing an unnecessary indirection when browsing history. URLs are also noisy, non-relocatable, and make off-line lookup impossible. Use the SHA1 of the commit that has been actually merged (the automatically added new PatchSet seen in Gerrit Changes).
##That the Pick-to footer points to reasonable branches for the repo to which the change has been submitted.
## That [ChangeLog] is correctly formed if present:
##That the Pick-to footer contains the latest feature branch if latest-1 is specified when committing to dev.
### That the tag is camel-cased, and does not try to be a footer.
##That a cherry-pick isn't into a branch that will later be merged into the branch it comes from
### That the paragraph is preceeded and followed by an empty line.
##*You can set the <kbd>sanity.''repo-name''.with-pickbot</kbd> git config option [[Branch Guidelines#Suppressing warnings against cherry-picks|to suppress this check]] in your own repositories for modules that cherry-pick back to old branches rather than merging up from them.
### That tags don't mention JIRA issues. Use Task-number footers for that.
##That changes outside a repo's principal branch (usually "dev") don't omit the Pick-to footer.
### That tags don't mention the current repository, as that's redundant.
##*See [[Branch Guidelines#How to cherry-pick|Branch Guidelines &rarr; "How to cherry-pick"]] for more information on the Pick-to footer.
### That the last tag is followed by a space (or line break), for tidyness.
##That there is an empty line before the footers.
# '''Some simple checks for incorrect use of Apple brands/trademarks/terminology:'''
##That there are no empty lines between footers. The footers (including any "(cherry picked from …)" lines) should form one tidy set-off block. If you are getting an empty line before the automatically added Change-Id line, you are most probably using a bad commit-msg hook - get a fresh copy from our Gerrit, or use the one from our [https://code.qt.io/cgit/qt/qtrepotools.git/blobs/master/git-hooks/gerrit_commit_msg_hook qtrepotools repository]. If you are using the [https://code.qt.io/cgit/qt/qt5.git/ Qt supermodule], you can run <tt>init-repository -f --force-hooks</tt> to update your hooks.
## That the author is aware that the define Q_OS_MAC and qmake scope mac refer to both the OS X and iOS operating systems, since it is commonly mistaken to refer only to OS X.
##That footers are not followed by more non-footer text.
## That the OS X operating system is correctly named in all instances. OS X is the name of Apple's Darwin-based flagship Desktop operating system and is a trademark; while the 'X' is pronounced as 'ten' and did and does refer to the major version number of the operating system, this is always ignored when writing out the full product name, for example "OS X 10.9 Mavericks", never "OS 10.9 Mavericks". The operating system was formerly named "Mac OS X" but was changed to "OS X" in 2012 with the release of Mountain Lion. Many Apple marketing materials "backported" this name change to Lion as well. Whether a bump to major version 11 would have any impact on this cannot be determined until that happens, if it ever does. Terms such as "Mac", "Macintosh", "Mac OS", "Mac OS X", "OSX", etc., with any combination of spacing and punctuation, should '''not''' be used to refer to the operating system. Note that the hardware platform on which OS X runs is correctly termed "Mac" or "Macintosh". To re-emphasize, '''ONLY''' use "OS X" to refer to the software, and '''ONLY''' use "Mac" or "Macintosh" to refer to the hardware.
##*The "Conflicts:" section in merge commits will trigger this. Move the section above the footers.
## That the deprecated define <tt>Q_OS_MACX</tt> and qmake scope <tt>macx</tt> (or similar deprecated constructs such as <tt>defined(Q_OS_MAC) &amp;&amp; !defined(Q_OS_IOS)</tt> and <tt>mac:!ios</tt>) are not being used. Their respective replacements, <tt>Q_OS_OSX</tt> and <tt>osx</tt> should be used instead. Note that some uses of <tt>macx</tt> in a qmake file may still be valid, for example <tt>macx-</tt> or <tt>macx*</tt> in reference to certain mkspecs (which cannot be renamed for backwards compatibility reasons).
##That [https://bugreports.qt.io/ JIRA issues] are not referenced by URL. URLs make the commit messages noisy and unnecessarily bind them to the current location of the bug tracker. Use the Task-number footer according to the [https://code.qt.io/cgit/qt/qt5.git/tree/.commit-template commit template] to make [https://codereview.qt-project.org/ Gerrit] automatically link issues.
# '''A check for common spelling mistakes.'''
##That other commits are not referenced by Gerrit Change-Id or URL. Change-Ids have the disadvantage of introducing an unnecessary indirection when browsing history. URLs are also noisy, non-relocatable, and make off-line lookup impossible. Use the SHA1 of the commit that has been actually merged (the automatically added new PatchSet seen in Gerrit Changes).
# '''Check for mixing whitespace and non-whitespace changes.''' As implied by the "don't mix unrelated changes" [[Commit_Policy|rule]], a commit may contain only whitespace changes or "proper" changes (with whitespace cleanups only on already changed lines, and, as an exception, additions and removals of empty lines). This helps to ensure the usefulness of <tt>git blame</tt> (note that a clean history is better than using <tt>git blame -w</tt>, as the latter will also hide significant whitespace changes). A negative verdict may be overridden if it is a false positive resulting from imperfect heuristics, in particular if the change is fixing coding style issues beyond mere whitespace cleanup.
##That [ChangeLog] is correctly formed if present (see {{QUIP|17}}):
# '''Various whitespace abuse checks.''' Tabs in files they are not approved in, trailing whitespace, missing newline at end of file, etc.
###That the tag is camel-cased, and does not try to be a footer.
# '''Some simple [[Qt Coding Style|coding style]] checks.''' (currently advisory only)
###That the paragraph is preceeded and followed by an empty line.
###That tags don't mention JIRA issues. Use Task-number footers for that.
###That tags don't mention the current repository, as that's redundant.
###That the last tag is followed by a space (or line break), for tidyness.
###Warn if a line starts with a square-bracketed term but lacks initial [ChangeLog].
#'''Some simple checks for incorrect use of Apple brands/trademarks/terminology:'''
##That the deprecated defines <tt>Q_OS_MAC</tt>, <tt>Q_OS_MACX</tt>, and <tt>Q_OS_OSX</tt> are not being used. Use <tt>Q_OS_MACOS</tt> to refer to ''macOS'', Apple's desktop operating system, or <tt>Q_OS_DARWIN</tt> to refer to all Apple platforms.
##That the macOS operating system is correctly named in all instances. '''ONLY''' use "macOS" to refer to the desktop operating system. The operating system was formerly named "OS X" but was changed to "macOS" in 2016 with the release of macOS 10.12 Sierra. Terms such as "Mac", "Macintosh", "Mac OS", "Mac OS X", "OS X", etc., with any combination of spacing and punctuation, should '''not''' be used to refer to the operating system. Note that the hardware platform on which macOS runs is correctly termed "Mac" or "Macintosh". Also note that when referring to the operating system in the documentation (source), the QDoc macro <tt>\macos</tt> can be used; it expands to the correct name "macOS".
##That the deprecated qmake scopes <tt>mac</tt>, <tt>macx</tt> , and <tt>osx</tt> are not being used. Their replacements, <tt>macos</tt> (when referring to the desktop operating system) and <tt>darwin</tt> (when referring to all Apple platforms), should be used instead. Note that some uses of <tt>macx</tt> in a qmake file may still be valid, for example <tt>macx-</tt> or <tt>macx*</tt> in reference to certain mkspecs (which cannot be renamed for backwards compatibility reasons).
#'''Checks for additions or edits of QT_DEPRECATED_ macros.''' If a new deprecation is being added, be sure that you've also prepared patches for any necessary adjustments in other modules. (see: [[Deprecation]])
#'''A check for common spelling mistakes.'''
#'''A check for malformed PNG images.'''  You can test images for format defects using the <tt>identify</tt> command, from the ImageMagick package.  In particular, some tools create PNG images with a bogus "sRGB chunk" that can readily be removed using:
#::<kbd>$ pngcrush -ow -brute -rem allb -reduce image.png</kbd>
#:(It may be necessary to add a <tt>-force</tt> if this wouldn't reduce the file size much.)  While this doesn't catch every PNG formatting defect, it deals with the common cases. For images with more stubborn defects,
#::<kbd>$ optipng -o7 strip all image.png</kbd>
#:may help.  If this last reports that it found "recoverable errors", it'll suggest passing it the <tt>-fix</tt> option; be sure to check the result actually looks like what you started with.
#'''Check for mixing whitespace and non-whitespace changes.''' As implied by the "don't mix unrelated changes" [[Commit_Policy|rule]], a commit may contain only whitespace changes or "proper" changes (with whitespace cleanups only on already changed lines, and, as an exception, additions and removals of empty lines). This helps to ensure the usefulness of <tt>git blame</tt> (note that a clean history is better than using <tt>git blame -w</tt>, as the latter will also hide significant whitespace changes). A negative verdict may be overridden if it is a false positive resulting from imperfect heuristics, in particular if the change is fixing coding style issues beyond mere whitespace cleanup.
#'''Various whitespace abuse checks.''' Tabs in files they are not approved in, trailing whitespace, missing newline at end of file, etc.
#'''Some simple [[Qt Coding Style|coding style]] checks.''' (currently advisory only)
 
Bugs and feature requests can be filed [https://bugreports.qt.io/issues/?jql=project%20%3D%20QTQAINFRA%20AND%20component%20%3D%20%22Sanity%20Bot%22 in JIRA].

Latest revision as of 12:30, 12 July 2023


Once a new review is created or an old review has been updated, the Early Warning System kicks in, by watching for new patch reviews to process.

This system is basically a collection of bots that will run a wide array of tests on the patch. The crucial part about these tests is that they should all be quick to run, 5-10 minutes or perhaps even less. The idea is not to catch all errors, but to get immediate/early feedback on a patch.

If you get a -1 from a review bot, please ensure you look at the issues noted by the bot, and upload a new version. The review bots will then automatically review the update and give you feedback.

Sanity Bot

This bot runs the Simple Sanitizer (see below) for the Gerrit server. It does two additional checks:

  1. Work In Progress push check. This is meant to avoid that somebody accidentally submits something you marked for later cleanup. It checks for the strings "WIP" and "***" in the summary line.
  2. A check about touching certain files. Some files are considered "endangered" - seemingly innocuous modifications almost always turn out to be bogus when not done by one of a few experts. Touching other files may require followup changes, e.g., documentation updates after GUI changes. The bot automatically invites relevant reviewers.

The bot's verdict is a recommendation, and may be overridden by every Approver. However, don't ignore it unless you have a really good reason. "I need to get this done now" is not a valid reason. Neither is "I cannot be bothered to understand what it wants from me". If there is any doubt, discuss alternatives with somebody appropriate. Each override needs to come with a justifying comment on Gerrit.

The Simple Sanitizer

The sanitizer script is available from the qtrepotools repository. Every contributor should install it locally in every repository. See the qtrepotools/git-hooks/git_post_commit_hook script (it contains installation instructions).

It does the following checks:

  1. The line ending check. We are developing in a heterogeneous environment with both Unix and Windows machines. Therefore it is imperative to have all files in the repository in the canonical LF-only format. Windows users need to set the git option core.autocrlf to true to automatically get CRLF line endings which are suitable for the native tools.
  2. Conflict marker check. Unless you are adding a text file which contains the patterns on purpose, you most probably botched a merge/rebase.
  3. Generated file check. Don't commit generated files- they bloat the repository and create spurious changes. If a file is generated but you don't know how to automate the build process, ask an expert.
  4. Backup file check. Don't commit backup files, for hopefully obvious reasons.
  5. Copyright header check. Source files must declare copyright (unless they are very small). They should also name a licence, but the check does not cover that.
  6. Check for project/config files of alien build systems. As we are using qmake, these will in most cases fall under the "generated file" rule anyway.
  7. Big file addition check. Think three times whether you really need that huge media file, test binary or screenshot. As we are using git, such mistakes are not correctable - once you added a huge file, everyone who clones the repository will have to pay for it with network traffic and disk space for all times. Source code files are exempt from the check at all; for the rest it is a bit paranoid (it will complain about anything bigger than 50 KiB or an instantaneous file growth over 150% if the file is bigger than 20 KiB).
  8. Huge file addition check. If you trigger that one, you almost certainly did something wrong. This blocks submission; ask an admin.
  9. Header file extension check. By convention, all header files should have an ".h" extension in Qt.
  10. Some simple checks on the commit message:
    1. Compliance with the expected structure.
    2. That reverts are properly explained, which follows directly from the Commit Policy point 8.2.
    3. That the author email address does not reflect an unconfigured git setup.
    4. That the author real name looks reasonable. Use proper capitalization and periods after initials.
      • Exceptions can be requested, but must be reasonably justified.
    5. That the summary is between 7 and 70 characters long. Up to 120 characters are accepted grudgingly.
    6. That the summary does not end with a period. Summaries are titles, and titles do not end with periods.
    7. That the summary is in an imperative mood, i.e. "spoken or written as if giving a command or instruction".
    8. That the summary does not refer to JIRA issues. Use Task-number footers for that. If the reader needs to know which issue a commit refers to, they most definitely should read more than just the commit summary anyway.
    9. That no Reviewed-by footers have been manually added, as they would stay behind even if the mentioned person did not actually make a review.
    10. That no Signed-off-by footers have been added, as they are redundant with the act of signing the CLA (advisory only).
    11. That the Pick-to footer points to reasonable branches for the repo to which the change has been submitted.
    12. That the Pick-to footer contains the latest feature branch if latest-1 is specified when committing to dev.
    13. That a cherry-pick isn't into a branch that will later be merged into the branch it comes from
      • You can set the sanity.repo-name.with-pickbot git config option to suppress this check in your own repositories for modules that cherry-pick back to old branches rather than merging up from them.
    14. That changes outside a repo's principal branch (usually "dev") don't omit the Pick-to footer.
    15. That there is an empty line before the footers.
    16. That there are no empty lines between footers. The footers (including any "(cherry picked from …)" lines) should form one tidy set-off block. If you are getting an empty line before the automatically added Change-Id line, you are most probably using a bad commit-msg hook - get a fresh copy from our Gerrit, or use the one from our qtrepotools repository. If you are using the Qt supermodule, you can run init-repository -f --force-hooks to update your hooks.
    17. That footers are not followed by more non-footer text.
      • The "Conflicts:" section in merge commits will trigger this. Move the section above the footers.
    18. That JIRA issues are not referenced by URL. URLs make the commit messages noisy and unnecessarily bind them to the current location of the bug tracker. Use the Task-number footer according to the commit template to make Gerrit automatically link issues.
    19. That other commits are not referenced by Gerrit Change-Id or URL. Change-Ids have the disadvantage of introducing an unnecessary indirection when browsing history. URLs are also noisy, non-relocatable, and make off-line lookup impossible. Use the SHA1 of the commit that has been actually merged (the automatically added new PatchSet seen in Gerrit Changes).
    20. That [ChangeLog] is correctly formed if present (see QUIP 17):
      1. That the tag is camel-cased, and does not try to be a footer.
      2. That the paragraph is preceeded and followed by an empty line.
      3. That tags don't mention JIRA issues. Use Task-number footers for that.
      4. That tags don't mention the current repository, as that's redundant.
      5. That the last tag is followed by a space (or line break), for tidyness.
      6. Warn if a line starts with a square-bracketed term but lacks initial [ChangeLog].
  11. Some simple checks for incorrect use of Apple brands/trademarks/terminology:
    1. That the deprecated defines Q_OS_MAC, Q_OS_MACX, and Q_OS_OSX are not being used. Use Q_OS_MACOS to refer to macOS, Apple's desktop operating system, or Q_OS_DARWIN to refer to all Apple platforms.
    2. That the macOS operating system is correctly named in all instances. ONLY use "macOS" to refer to the desktop operating system. The operating system was formerly named "OS X" but was changed to "macOS" in 2016 with the release of macOS 10.12 Sierra. Terms such as "Mac", "Macintosh", "Mac OS", "Mac OS X", "OS X", etc., with any combination of spacing and punctuation, should not be used to refer to the operating system. Note that the hardware platform on which macOS runs is correctly termed "Mac" or "Macintosh". Also note that when referring to the operating system in the documentation (source), the QDoc macro \macos can be used; it expands to the correct name "macOS".
    3. That the deprecated qmake scopes mac, macx , and osx are not being used. Their replacements, macos (when referring to the desktop operating system) and darwin (when referring to all Apple platforms), should be used instead. Note that some uses of macx in a qmake file may still be valid, for example macx- or macx* in reference to certain mkspecs (which cannot be renamed for backwards compatibility reasons).
  12. Checks for additions or edits of QT_DEPRECATED_ macros. If a new deprecation is being added, be sure that you've also prepared patches for any necessary adjustments in other modules. (see: Deprecation)
  13. A check for common spelling mistakes.
  14. A check for malformed PNG images. You can test images for format defects using the identify command, from the ImageMagick package. In particular, some tools create PNG images with a bogus "sRGB chunk" that can readily be removed using:
    $ pngcrush -ow -brute -rem allb -reduce image.png
    (It may be necessary to add a -force if this wouldn't reduce the file size much.) While this doesn't catch every PNG formatting defect, it deals with the common cases. For images with more stubborn defects,
    $ optipng -o7 strip all image.png
    may help. If this last reports that it found "recoverable errors", it'll suggest passing it the -fix option; be sure to check the result actually looks like what you started with.
  15. Check for mixing whitespace and non-whitespace changes. As implied by the "don't mix unrelated changes" rule, a commit may contain only whitespace changes or "proper" changes (with whitespace cleanups only on already changed lines, and, as an exception, additions and removals of empty lines). This helps to ensure the usefulness of git blame (note that a clean history is better than using git blame -w, as the latter will also hide significant whitespace changes). A negative verdict may be overridden if it is a false positive resulting from imperfect heuristics, in particular if the change is fixing coding style issues beyond mere whitespace cleanup.
  16. Various whitespace abuse checks. Tabs in files they are not approved in, trailing whitespace, missing newline at end of file, etc.
  17. Some simple coding style checks. (currently advisory only)

Bugs and feature requests can be filed in JIRA.