Review Quality

Top  Previous  Next

 VS   VB6   VBA 

The Review Quality feature allows you to review several areas of your code and forms to find issues that you should fix to improve the quality:

  • Access Keys Review: it allows you to review the access keys of the controls (labels, checkboxes, etc.) of forms, usercontrols, etc. An access key is an underlined character in a text (such as in "Show Using Windows Colors") that, when typing Alt + character, sets the focus to that control (in the case of checkboxes or radio / option buttons), to the next editable control (in the case of labels, assuming that the TabIndex property value is right) or executes the action (in the case of buttons). This feature checks that controls that should have an access key have it, and that an access key is not duplicated. See Access Keys Review Options.
  • Headers Review: it allows you to detect the items that either lack a header or that, having one, it doesn't match any of the headers defined in the Options window, Team Options tab, Headers section. See Headers Review Options.
  • Code Elements Order Review: it allows you to detect the code elements that are not sorted according to the order defined in the Options window, Team Options tab, Code Elements Order section. See Code Elements Order Review Options.
  • Dead Code Review: it allows you to detect some unused declarations in the source code (constants, variables, parameters, methods, etc.). This feature works searching occurrences of a declaration in the source code, but it does not check that the occurrence really belongs to the declaration. This implies that there are some limitations; for example, if you have two overloaded methods, one used and another unused, the feature will be unable to report the unused overloaded method because its name is used in the source code and the number and type of parameters of the call is not checked. See Dead Code Review Options.
  • Line Indenting Review (VB/VBA): it allows you to detect the methods whose lines of code have a wrong indentation (only the first line of a method with a wrong indentation is reported). See Line Indenting Review Options.
  • Nomenclature Rules Review: it allows you to detect the items whose names don't follow the nomenclature rules defined in the Options window, Team Options tab, Quality Review \ Nomenclature Rules Review section. See Nomenclature Rules Review Options.
  • Programming Rules Review: it allows you to detect the items which don't follow the programming rules defined in the Options window, Team Options tab, Quality Review \ Programming Rules Review section. See Programming Rules Review Options.
  • Spell Checker: it allows you to review the spelling of the Text / Caption property of controls, text of message boxes, etc. This review requires Microsoft Word installed on your computer. See Spell Checker Options.
  • TabIndex Review: it allows you to review the TabIndex property of the controls of forms, usercontrols, etc., checking if it has the correct value for each control. To find if a form or usercontrol contains controls with the wrong TabIndex value, MZ-Tools compares the order of the controls sorted by their current TabIndex value with the order of the controls sorted by the theoretical TabIndex value that they should have according to the same algorithm used by TabIndex Assistant. To fix easily an error with the TabIndex property of a control, you can use that assistant. See TabIndex Review Options.

MZ-Tools offers the following ways execute the Review Quality feature:

  • The MZ-Tools | Review Quality... menu.
  • The Review Quality button on the MZ-Tools - Main toolbar.
  • In Visual Studio 2015 and higher, the keyboard shortcut associated with the MZTools.ReviewQuality command.
  • In Visual Studio 2013 and lower, the keyboard shortcut associated with the MZTools8.ReviewQuality command.
  • In VB6 / VBA, the keyboard shortcut associated with the Review Quality feature.

When you invoke this feature, a window is shown that allows you to select the scope of the operation and the reviews to execute:

ReviewQuality

The results are shown in a Result Window:

ResultsOfReviewQuality

Each result shows the review (between brackets), optionally the reviewed item and review Id, and the review description.

The Review Quality feature can be launched automatically before a build (in Visual Studio only in Release configuration, not in Debug configuration). This is customizable in the Options window, Team Options tab, Quality Review section.

Remarks:

  • Ensure that the source code can be compiled without errors before running this feature.
  • In Visual Studio, the Access Keys Review, Spell Checker and TabIndex Review only works with Windows Forms forms, not with WPF, Web, Silverlight or Smart Device forms.

See Also:

Result Window

Quality Review Options

Access Keys Review Options

Headers Review Options

Headers Options

Code Elements Order Review Options

Code Elements Order Options

Dead Code Review Options

Nomenclature Rules Review Options

Programming Rules Review Options

Spell Checker Options

TabIndex Review Options

Keyboard Shortcuts Options