scitools.com

← Metric catalog

Files 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.

Files

API ID: CountDeclFile
Languages: Ada, Assembly, Basic, C#, C++, Fortran, Java, Jovial, Pascal, Python, Rust, VHDL, Web
Targets: Architectures, Project

Number of files.

Counts every file in the project or architecture, regardless of language.

For example, this directory:


test/c/
  cohesion.cpp
  csvExportBigNumbers.cpp
  friend.cpp
  io.cpp
  knots.cpp
  paths.cpp
  pond.cpp
  sample.cpp
  vehicles.cpp
  classes.cpp
  class_macro.h

has 11 files, so CountDeclFile = 11 for a project or architecture covering it.

See Code Files and Header Files for the C/C++-specific breakdown by file type.

Targets By Language: Configuration: