twitter / pelikan
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
ini
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.

main42858 LOC (82%) 433 files
test7322 LOC (14%) 31 files
generated0 LOC (0%) 0 files
build and deployment314 LOC (<1%) 11 files
other1475 LOC (2%) 89 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 433 files match defined criteria (42,858 LOC, 100.0% vs. main code):
    • 184 *.rs files (18,134 LOC)
    • 93 *.c files (16,686 LOC)
    • 108 *.h files (6,376 LOC)
    • 41 *.toml files (1,163 LOC)
    • 3 *.py files (332 LOC)
    • 3 *.cmake files (153 LOC)
    • 1 *.in files (14 LOC)
  • " *.rs" is biggest, containing 42.31% of LOC.
  • " *.in" is smallest, containing 0.03% of LOC.


*.rs18134 LOC (42%) 184 files
*.c16686 LOC (38%) 93 files
*.h6376 LOC (14%) 108 files
*.toml1163 LOC (2%) 41 files
*.py332 LOC (<1%) 3 files
*.cmake153 LOC (<1%) 3 files
*.in14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
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/.*".
    • files with paths like ".*/test[.].*".
  • 31 files match defined criteria (7,322 LOC, 17.1% vs. main code):
    • 16 *.c files (6,180 LOC)
    • 9 *.rs files (913 LOC)
    • 6 *.py files (229 LOC)
  • " *.c" is biggest, containing 84.4% of LOC.
  • " *.py" is smallest, containing 3.13% of LOC.


*.c6180 LOC (84%) 16 files
*.rs913 LOC (12%) 9 files
*.py229 LOC (3%) 6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 11 files match defined criteria (314 LOC, 0.7% vs. main code). All matches are in *.sh files.


*.sh314 LOC (100%) 11 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Ee]xamples/.*".
  • 89 files match defined criteria (1,475 LOC, 3.4% vs. main code):
    • 75 *.txt files (816 LOC)
    • 11 *.md files (579 LOC)
    • 2 *.rs files (63 LOC)
    • 1 *.cmake files (17 LOC)
  • " *.txt" is biggest, containing 55.32% of LOC.
  • " *.cmake" is smallest, containing 1.15% of LOC.


*.txt816 LOC (55%) 75 files
*.md579 LOC (39%) 11 files
*.rs63 LOC (4%) 2 files
*.cmake17 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:59