diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-07-05 22:55:40 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-07-07 14:11:49 +0200 |
commit | 0a42d1e94ba9c35f2518f0fe08d3bf6eef8ff081 (patch) | |
tree | 10fa11cc7216c1817f332212bd811e9842c93c6b /bin/gla11y | |
parent | 7221994b9b29659d3290e95eee92b1a3f80c2b7e (diff) |
gla11y: Document global variables
Change-Id: Ic8ed50bdff182bab1104b5a22e667aadfd25c684
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97982
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'bin/gla11y')
-rwxr-xr-x | bin/gla11y | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/bin/gla11y b/bin/gla11y index d29ee4ac62cc..f2dfbbdf81b2 100755 --- a/bin/gla11y +++ b/bin/gla11y @@ -247,34 +247,83 @@ widgets_labels = [ progname = os.path.basename(sys.argv[0]) +# This dictionary contains the set of suppression lines as read from the +# suppression file(s). It is merely indexed by the text of the suppresion line +# and contains whether the suppressions was unused. suppressions = {} + +# This dictionary is indexed like suppressions and returns a "file:line" string +# to report where in the suppression file the suppression was read suppressions_to_line = {} + +# This dictionary is similar to the suppressions dictionary, but for false +# positives rather than suppressions false_positives = {} + +# This dictionary is indexed by the xml id and returns the element object. ids = {} +# This dictionary is indexed by the xml id and returns whether several objects +# have the same id. ids_dup = {} + +# This dictionary is indexed by the xml id of an element A and returns the list +# of objects which are labelled-by A. labelled_by_elm = {} + +# This dictionary is indexed by the xml id of an element A and returns the list +# of objects which are label-for A. label_for_elm = {} + +# This dictionary is indexed by the xml id of an element A and returns the list +# of objects which have a mnemonic-for A. mnemonic_for_elm = {} +# Possibly a file name to put generated suppression lines in gen_suppr = None +# The corresponding opened file gen_supprfile = None +# A prefix to remove from file names in the generated suppression lines suppr_prefix = "" + +# Possibly an opened file in which our output should also be written to. outfile = None +# Whether -p option was set, i.e. print XML class path instead of line number in +# the output pflag = False +# Whether we should warn about labels which are orphan warn_orphan_labels = True +# Number of errors errors = 0 +# Number of suppressed errors errexists = 0 +# Number of warnings warnings = 0 +# Number of suppressed warnings warnexists = 0 +# Number of fatal errors fatals = 0 +# Number of suppressed fatal errors fatalexists = 0 -enables = [ ] +# List of warnings and errors which are fatal +# +# Format of each element: (enabled, type, class) +# See the is_enabled function: the list is traversed completely, each element +# can specify whether it enables or disables the warning, possibly the type of +# warning to be enabled/disabled, possibly the class of XML element for which it +# should be enabled. +# +# This mechanism matches the semantic of the parameters on the command line, +# each of which refining the semantic set by the previous parameters dofatals = [ ] +# List of warnings and errors which are enabled +# Same format as dofatals +enables = [ ] + # buffers all printed output, so it isn't split in parallel builds output_buffer = "" |