apache / mynewt-nimble
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
ld
cmd
cfg
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.

main166562 LOC (82%) 600 files
test27362 LOC (13%) 58 files
generated0 LOC (0%) 0 files
build and deployment56 LOC (<1%) 5 files
other7697 LOC (3%) 38 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
ld
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 600 files match defined criteria (166,562 LOC, 100.0% vs. main code):
    • 294 *.c files (133,169 LOC)
    • 290 *.h files (29,203 LOC)
    • 9 *.py files (2,158 LOC)
    • 1 *.cfg files (850 LOC)
    • 1 *.rb files (824 LOC)
    • 2 *.ld files (214 LOC)
    • 1 *.cc files (104 LOC)
    • 2 *.cmd files (40 LOC)
  • " *.c" is biggest, containing 79.95% of LOC.
  • " *.cmd" is smallest, containing 0.02% of LOC.


*.c133169 LOC (79%) 294 files
*.h29203 LOC (17%) 290 files
*.py2158 LOC (1%) 9 files
*.cfg850 LOC (<1%) 1 file
*.rb824 LOC (<1%) 1 file
*.ld214 LOC (<1%) 2 files
*.cc104 LOC (<1%) 1 file
*.cmd40 LOC (<1%) 2 files
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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/testing[.].*".
  • 58 files match defined criteria (27,362 LOC, 16.4% vs. main code):
    • 50 *.c files (26,787 LOC)
    • 8 *.h files (575 LOC)
  • " *.c" is biggest, containing 97.9% of LOC.
  • " *.h" is smallest, containing 2.1% of LOC.


*.c26787 LOC (97%) 50 files
*.h575 LOC (2%) 8 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 ".*/[.]gitignore".
  • 5 files match defined criteria (56 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh56 LOC (100%) 5 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Dd]ocumentation/.*".
  • 38 files match defined criteria (7,697 LOC, 4.6% vs. main code):
    • 7 *.h files (4,895 LOC)
    • 11 *.c files (1,352 LOC)
    • 17 *.md files (1,175 LOC)
    • 1 *.rst files (246 LOC)
    • 2 *.txt files (29 LOC)
  • " *.h" is biggest, containing 63.6% of LOC.
  • " *.txt" is smallest, containing 0.38% of LOC.


*.h4895 LOC (63%) 7 files
*.c1352 LOC (17%) 11 files
*.md1175 LOC (15%) 17 files
*.rst246 LOC (3%) 1 file
*.txt29 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:22