azure / azure-linux-extensions
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
in
mod
xsd
asc
spec
gitmodules
gitattributes
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.

main107514 LOC (87%) 650 files
test7715 LOC (6%) 102 files
generated0 LOC (0%) 0 files
build and deployment1577 LOC (1%) 41 files
other5487 LOC (4%) 76 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
asc
spec
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 650 files match defined criteria (107,514 LOC, 100.0% vs. main code):
    • 352 *.py files (77,988 LOC)
    • 113 *.cc files (16,600 LOC)
    • 122 *.hh files (5,541 LOC)
    • 9 *.c files (1,662 LOC)
    • 10 *.h files (1,428 LOC)
    • 5 *.cpp files (1,362 LOC)
    • 3 *.go files (651 LOC)
    • 2 *.js files (576 LOC)
    • 2 *.ps1 files (474 LOC)
    • 10 *.sql files (388 LOC)
    • 13 *.xml files (332 LOC)
    • 1 *.htm files (243 LOC)
    • 2 *.xsd files (193 LOC)
    • 2 *.asc files (36 LOC)
    • 1 *.spec files (26 LOC)
    • 3 *.in files (14 LOC)
  • " *.py" is biggest, containing 72.54% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.py77988 LOC (72%) 352 files
*.cc16600 LOC (15%) 113 files
*.hh5541 LOC (5%) 122 files
*.c1662 LOC (1%) 9 files
*.h1428 LOC (1%) 10 files
*.cpp1362 LOC (1%) 5 files
*.go651 LOC (<1%) 3 files
*.js576 LOC (<1%) 2 files
*.ps1474 LOC (<1%) 2 files
*.sql388 LOC (<1%) 10 files
*.xml332 LOC (<1%) 13 files
*.htm243 LOC (<1%) 1 file
*.xsd193 LOC (<1%) 2 files
*.asc36 LOC (<1%) 2 files
*.spec26 LOC (<1%) 1 file
*.in14 LOC (<1%) 3 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_.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_tests[.].*".
  • 102 files match defined criteria (7,715 LOC, 7.2% vs. main code):
    • 89 *.py files (7,339 LOC)
    • 1 *.c files (194 LOC)
    • 7 *.sh files (107 LOC)
    • 4 *.xml files (62 LOC)
    • 1 *.ps1 files (13 LOC)
  • " *.py" is biggest, containing 95.13% of LOC.
  • " *.ps1" is smallest, containing 0.17% of LOC.


*.py7339 LOC (95%) 89 files
*.c194 LOC (2%) 1 file
*.sh107 LOC (1%) 7 files
*.xml62 LOC (<1%) 4 files
*.ps113 LOC (<1%) 1 file
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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
  • 41 files match defined criteria (1,577 LOC, 1.5% vs. main code). All matches are in *.sh files.


*.sh1577 LOC (100%) 41 files
Other Code
txt
patch
mod
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]patch".
  • 76 files match defined criteria (5,487 LOC, 5.1% vs. main code):
    • 18 *.md files (2,365 LOC)
    • 31 *.json files (1,509 LOC)
    • 21 *.txt files (1,453 LOC)
    • 4 *.patch files (155 LOC)
    • 2 *.mod files (5 LOC)
  • " *.md" is biggest, containing 43.1% of LOC.
  • " *.mod" is smallest, containing 0.09% of LOC.


*.md2365 LOC (43%) 18 files
*.json1509 LOC (27%) 31 files
*.txt1453 LOC (26%) 21 files
*.patch155 LOC (2%) 4 files
*.mod5 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:11