apache / mynewt-mcumgr
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
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.

main5802 LOC (66%) 86 files
test1135 LOC (12%) 17 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1841 LOC (20%) 32 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 86 files match defined criteria (5,802 LOC, 100.0% vs. main code):
    • 31 *.c files (4,611 LOC)
    • 27 *.h files (905 LOC)
    • 28 *.yml files (286 LOC)
  • " *.c" is biggest, containing 79.47% of LOC.
  • " *.yml" is smallest, containing 4.93% of LOC.


*.c4611 LOC (79%) 31 files
*.h905 LOC (15%) 27 files
*.yml286 LOC (4%) 28 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]est/.*".
    • files with paths like ".*/test_.*".
  • 17 files match defined criteria (1,135 LOC, 19.6% vs. main code):
    • 15 *.c files (1,094 LOC)
    • 1 *.h files (28 LOC)
    • 1 *.yml files (13 LOC)
  • " *.c" is biggest, containing 96.39% of LOC.
  • " *.yml" is smallest, containing 1.15% of LOC.


*.c1094 LOC (96%) 15 files
*.h28 LOC (2%) 1 file
*.yml13 LOC (1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
  • 32 files match defined criteria (1,841 LOC, 31.7% vs. main code):
    • 6 *.c files (863 LOC)
    • 6 *.md files (321 LOC)
    • 12 *.txt files (292 LOC)
    • 1 *.rst files (189 LOC)
    • 4 *.yml files (116 LOC)
    • 2 *.h files (48 LOC)
    • 1 *.yaml files (12 LOC)
  • " *.c" is biggest, containing 46.88% of LOC.
  • " *.yaml" is smallest, containing 0.65% of LOC.


*.c863 LOC (46%) 6 files
*.md321 LOC (17%) 6 files
*.txt292 LOC (15%) 12 files
*.rst189 LOC (10%) 1 file
*.yml116 LOC (6%) 4 files
*.h48 LOC (2%) 2 files
*.yaml12 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:04