apache / nuttx-apps
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
patch
bas
mk
in
zig
nims
nim
cfg
nimble
l
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.

main273822 LOC (66%) 1,614 files
test16284 LOC (3%) 178 files
generated0 LOC (0%) 0 files
build and deployment1474 LOC (<1%) 20 files
other119543 LOC (29%) 1,136 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
l
nims
in
nimble
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1614 files match defined criteria (273,822 LOC, 100.0% vs. main code):
    • 903 *.c files (204,111 LOC)
    • 186 *.cxx files (34,446 LOC)
    • 371 *.h files (21,650 LOC)
    • 124 *.hxx files (8,642 LOC)
    • 1 *.l files (1,921 LOC)
    • 8 *.py files (1,413 LOC)
    • 6 *.cmake files (795 LOC)
    • 1 *.css files (159 LOC)
    • 2 *.hpp files (141 LOC)
    • 2 *.cc files (133 LOC)
    • 2 *.html files (133 LOC)
    • 1 *.nims files (124 LOC)
    • 6 *.in files (101 LOC)
    • 1 *.nimble files (53 LOC)
  • " *.c" is biggest, containing 74.54% of LOC.
  • " *.nimble" is smallest, containing 0.02% of LOC.


*.c204111 LOC (74%) 903 files
*.cxx34446 LOC (12%) 186 files
*.h21650 LOC (7%) 371 files
*.hxx8642 LOC (3%) 124 files
*.l1921 LOC (<1%) 1 file
*.py1413 LOC (<1%) 8 files
*.cmake795 LOC (<1%) 6 files
*.css159 LOC (<1%) 1 file
*.hpp141 LOC (<1%) 2 files
*.cc133 LOC (<1%) 2 files
*.html133 LOC (<1%) 2 files
*.nims124 LOC (<1%) 1 file
*.in101 LOC (<1%) 6 files
*.nimble53 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 ".*[-]tests/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/UnitTests?/.*".
  • 178 files match defined criteria (16,284 LOC, 5.9% vs. main code):
    • 119 *.c files (11,467 LOC)
    • 36 *.cxx files (3,862 LOC)
    • 18 *.hxx files (749 LOC)
    • 4 *.h files (116 LOC)
    • 1 *.py files (90 LOC)
  • " *.c" is biggest, containing 70.42% of LOC.
  • " *.py" is smallest, containing 0.55% of LOC.


*.c11467 LOC (70%) 119 files
*.cxx3862 LOC (23%) 36 files
*.hxx749 LOC (4%) 18 files
*.h116 LOC (<1%) 4 files
*.py90 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
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".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]bat".
  • 20 files match defined criteria (1,474 LOC, 0.5% vs. main code):
    • 12 *.sh files (697 LOC)
    • 7 *.mk files (686 LOC)
    • 1 *.bat files (91 LOC)
  • " *.sh" is biggest, containing 47.29% of LOC.
  • " *.bat" is smallest, containing 6.17% of LOC.


*.sh697 LOC (47%) 12 files
*.mk686 LOC (46%) 7 files
*.bat91 LOC (6%) 1 file
Other Code
txt
patch
bas
zig
nim
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 1136 files match defined criteria (119,543 LOC, 43.7% vs. main code):
    • 366 *.c files (73,275 LOC)
    • 501 *.txt files (23,762 LOC)
    • 94 *.patch files (14,699 LOC)
    • 76 *.h files (3,396 LOC)
    • 8 *.md files (1,928 LOC)
    • 13 *.cxx files (874 LOC)
    • 52 *.bas files (473 LOC)
    • 6 *.rs files (369 LOC)
    • 2 *.zig files (237 LOC)
    • 2 *.css files (140 LOC)
    • 1 *.d files (96 LOC)
    • 2 *.cmake files (87 LOC)
    • 4 *.html files (55 LOC)
    • 2 *.sh files (46 LOC)
    • 1 *.nim files (38 LOC)
    • 2 *.toml files (36 LOC)
    • 1 *.py files (12 LOC)
    • 2 *.php files (12 LOC)
    • 1 *.swift files (8 LOC)
  • " *.c" is biggest, containing 61.3% of LOC.
  • " *.swift" is smallest, containing 0.01% of LOC.


*.c73275 LOC (61%) 366 files
*.txt23762 LOC (19%) 501 files
*.patch14699 LOC (12%) 94 files
*.h3396 LOC (2%) 76 files
*.md1928 LOC (1%) 8 files
*.cxx874 LOC (<1%) 13 files
*.bas473 LOC (<1%) 52 files
*.rs369 LOC (<1%) 6 files
*.zig237 LOC (<1%) 2 files
*.css140 LOC (<1%) 2 files
*.d96 LOC (<1%) 1 file
*.cmake87 LOC (<1%) 2 files
*.html55 LOC (<1%) 4 files
*.sh46 LOC (<1%) 2 files
*.nim38 LOC (<1%) 1 file
*.toml36 LOC (<1%) 2 files
*.py12 LOC (<1%) 1 file
*.php12 LOC (<1%) 2 files
*.swift8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:03