scitools.com

← Metric catalog

Modules is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Modules

API IDCountDeclModule
TargetsArchitectures Files Functions Modules Project Subprograms
LanguagesFortran Jovial Pascal
CategoriesContents
CostLookup

Number of modules.

For example:

MODULE sample_mod
  IMPLICIT NONE
CONTAINS
  SUBROUTINE mod_internal_sub(x)
    INTEGER, INTENT(IN) :: x
    PRINT *, x
  END SUBROUTINE mod_internal_sub
END MODULE sample_mod

sample.f90 declares one MODULE, sample_mod, so CountDeclModule = 1 for this file.

See Program Units for the combined count across modules, block data units, and subprograms.

Targets By Language: