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

main151741 LOC (82%) 750 files
test25584 LOC (13%) 54 files
generated0 LOC (0%) 0 files
build and deployment53 LOC (<1%) 5 files
other6818 LOC (3%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 750 files match defined criteria (151,741 LOC, 100.0% vs. main code):
    • 274 *.c files (121,140 LOC)
    • 267 *.h files (21,680 LOC)
    • 195 *.yml files (5,235 LOC)
    • 9 *.py files (2,158 LOC)
    • 1 *.rb files (824 LOC)
    • 1 *.cfg files (560 LOC)
    • 1 *.cc files (104 LOC)
    • 2 *.cmd files (40 LOC)
  • " *.c" is biggest, containing 79.83% of LOC.
  • " *.cmd" is smallest, containing 0.03% of LOC.


*.c121140 LOC (79%) 274 files
*.h21680 LOC (14%) 267 files
*.yml5235 LOC (3%) 195 files
*.py2158 LOC (1%) 9 files
*.rb824 LOC (<1%) 1 file
*.cfg560 LOC (<1%) 1 file
*.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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 54 files match defined criteria (25,584 LOC, 16.9% vs. main code):
    • 44 *.c files (25,007 LOC)
    • 6 *.h files (526 LOC)
    • 4 *.yml files (51 LOC)
  • " *.c" is biggest, containing 97.74% of LOC.
  • " *.yml" is smallest, containing 0.2% of LOC.


*.c25007 LOC (97%) 44 files
*.h526 LOC (2%) 6 files
*.yml51 LOC (<1%) 4 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 (53 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh53 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 ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[Ee]xamples/.*".
  • 39 files match defined criteria (6,818 LOC, 4.5% vs. main code):
    • 9 *.h files (3,373 LOC)
    • 6 *.txt files (1,383 LOC)
    • 16 *.md files (1,125 LOC)
    • 7 *.c files (691 LOC)
    • 1 *.rst files (246 LOC)
  • " *.h" is biggest, containing 49.47% of LOC.
  • " *.rst" is smallest, containing 3.61% of LOC.


*.h3373 LOC (49%) 9 files
*.txt1383 LOC (20%) 6 files
*.md1125 LOC (16%) 16 files
*.c691 LOC (10%) 7 files
*.rst246 LOC (3%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:03