Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove section on gnatmetric #1154

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions content/courses/GNAT_Toolchain_Intro/chapters/gnat_tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,48 +279,6 @@ Please refer to the
of the GNAT User's Guide for a more detailed discussion of
:program:`gnatmem`.

gnatmetric
----------

We can use the GNAT metric tool (:program:`gnatmetric`) to compute various
programming metrics, either for individual files or for our complete
project.

For example, we can compute the metrics of the body of package :ada:`P`
above by running :program:`gnatmetric` as follows:

.. code-block:: sh

gnatmetric p.adb

This produces the following output:

.. code-block:: none

Line metrics summed over 1 units
all lines : 13
code lines : 11
comment lines : 0
end-of-line comments : 0
comment percentage : 0.00
blank lines : 2

Average lines in body: 4.00

Element metrics summed over 1 units
all statements : 2
all declarations : 3
logical SLOC : 5

2 subprogram bodies in 1 units

Average cyclomatic complexity: 1.00

Please refer to the
:gnat_ugn_url:`section on gnatmetric <gnat_utility_programs.html#the-gnat-metrics-tool-gnatmetric>`
of the GNAT User's Guide for the many switches available for
:program:`gnatmetric`, including the ability to generate reports in XML
format.

gnatdoc
-------
Expand Down
Loading