apache / mynewt-site
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
htaccess
editorconfig
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.

main728235 LOC (65%) 8,409 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment984 LOC (<1%) 41 files
other384106 LOC (34%) 605 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 ".*".
  • 8409 files match defined criteria (728,235 LOC, 100.0% vs. main code):
    • 1,205 *.css files (479,831 LOC)
    • 6,599 *.html files (233,599 LOC)
    • 482 *.js files (7,712 LOC)
    • 82 *.py files (5,904 LOC)
    • 41 *.rdf files (1,189 LOC)
  • " *.css" is biggest, containing 65.89% of LOC.
  • " *.rdf" is smallest, containing 0.16% of LOC.


*.css479831 LOC (65%) 1,205 files
*.html233599 LOC (32%) 6,599 files
*.js7712 LOC (1%) 482 files
*.py5904 LOC (<1%) 82 files
*.rdf1189 LOC (<1%) 41 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".
  • 41 files match defined criteria (984 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh984 LOC (100%) 41 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]htaccess".
  • 605 files match defined criteria (384,106 LOC, 52.7% vs. main code):
    • 482 *.svg files (380,539 LOC)
    • 41 *.md files (3,034 LOC)
    • 82 *.txt files (533 LOC)
  • " *.svg" is biggest, containing 99.07% of LOC.
  • " *.txt" is smallest, containing 0.14% of LOC.


*.svg380539 LOC (99%) 482 files
*.md3034 LOC (<1%) 41 files
*.txt533 LOC (<1%) 82 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:18