epam / nfstrace
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
txt
in
x
plt
tex
clang-format
gitmodules
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main43243 LOC (87%) 176 files
test1673 LOC (3%) 14 files
generated3947 LOC (7%) 2 files
build and deployment357 LOC (<1%) 2 files
other415 LOC (<1%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
x
in
plt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 176 files match defined criteria (43,243 LOC, 100.0% vs. main code):
    • 60 *.cpp files (26,567 LOC)
    • 104 *.h files (11,389 LOC)
    • 3 *.x files (4,941 LOC)
    • 5 *.cmake files (167 LOC)
    • 2 *.in files (125 LOC)
    • 2 *.plt files (54 LOC)
  • " *.cpp" is biggest, containing 61.44% of LOC.
  • " *.plt" is smallest, containing 0.12% of LOC.


*.cpp26567 LOC (61%) 60 files
*.h11389 LOC (26%) 104 files
*.x4941 LOC (11%) 3 files
*.cmake167 LOC (<1%) 5 files
*.in125 LOC (<1%) 2 files
*.plt54 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 14 files match defined criteria (1,673 LOC, 3.9% vs. main code):
    • 10 *.cpp files (1,648 LOC)
    • 4 *.in files (25 LOC)
  • " *.cpp" is biggest, containing 98.51% of LOC.
  • " *.in" is smallest, containing 1.49% of LOC.


*.cpp1648 LOC (98%) 10 files
*.in25 LOC (1%) 4 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with any line of content like "//[ ]*Generated by .*".
  • 2 files match defined criteria (3,947 LOC, 9.1% vs. main code). All matches are in *.h files.


*.h3947 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (357 LOC, 0.8% vs. main code). All matches are in *.sh files.


*.sh357 LOC (100%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 15 files match defined criteria (415 LOC, 1.0% vs. main code):
    • 13 *.txt files (268 LOC)
    • 2 *.md files (147 LOC)
  • " *.txt" is biggest, containing 64.58% of LOC.
  • " *.md" is smallest, containing 35.42% of LOC.


*.txt268 LOC (64%) 13 files
*.md147 LOC (35%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:09