Code Explorer Options Dialog

Applies to TestComplete 14.71, last modified on April 22, 2021

The Code Explorer Options dialog holds settings that affect the code metrics displayed in the Code Explorer panel. To call the dialog:

  • Right-click somewhere in the Code Explorer and choose Panel Options from the context menu.

-- or --

  • Select Tools | Options from the TestComplete main menu and then select Panels | Code Explorer from the tree on the left of the subsequent Options dialog.

The following options are available:

  • Report about routines that -- The options in this group specify recommended code metrics for script routines. If a routine’s particular metric goes beyond the recommended limit, that routine will be reported in the appropriate issue category under the [Code metrics] node in the Code Explorer.

    • Contain more than ... source lines (including empty line) - Specifies the maximum recommended number of lines in a script routine. Default is 30. Routines whose line count exceeds the specified value are considered as too long and are reported in the Long Routines category.

    • Have more than ... parameters - Specifies the maximum recommended number of parameters of script routines. Default is 6. Routines whose parameter count exceeds the specified value are considered as too complicated and are reported in the Long Param List category.

    • Use more than ... local variables - Specifies the maximum recommended number of local variables defined within a script routine. Default is 8. Routines where the number of local variables is greater than the specified value are considered as too complicated and are reported in the Too Many Variables category.

    • Contain too few commented lines (fewer than ... percent) - Specifies the minimum recommended percent of comment statements in a script routine. Default is 20%. Routines where the comment percentage is lower than the specified value are considered as poorly commented and are reported in the Too Few Comments category.

    • Have too many commented lines (more than ... percent) - Specifies the maximum recommended percent of comment statements in a script routine. Default is 40%. Routines whose comment percentage exceeds the specified value are considered as overcommented and are reported in the Too Many Comments category.

See Also

TestComplete Options
About Code Explorer
Code Metrics

Highlight search results