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: CountDeclFileLanguages: 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:- Ada: Project
- Basic: Project
- C#: Project
- C++: Project
- Fortran: Project
- Java: Project
- Jovial: Project
- Pascal: Project
- Python: Project
- Rust: Project
- VHDL: Project
- Web: Project
- For projects and architectures, this metric is enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show aggregated file metrics" option.
- For projects and architectures, this metric is enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show default summary metrics" option.