azure / sonic-build-web
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.

main1529 LOC (5%) 28 files
test76 LOC (<1%) 3 files
generated11899 LOC (45%) 3 files
build and deployment159 LOC (<1%) 4 files
other12376 LOC (47%) 19 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 ".*".
  • 28 files match defined criteria (1,529 LOC, 100.0% vs. main code):
    • 19 *.js files (1,288 LOC)
    • 7 *.pug files (130 LOC)
    • 1 *.ts files (63 LOC)
    • 1 *.css files (48 LOC)
  • " *.js" is biggest, containing 84.24% of LOC.
  • " *.css" is smallest, containing 3.14% of LOC.


*.js1288 LOC (84%) 19 files
*.pug130 LOC (8%) 7 files
*.ts63 LOC (4%) 1 file
*.css48 LOC (3%) 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]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 3 files match defined criteria (76 LOC, 5.0% vs. main code):
    • 2 *.js files (61 LOC)
    • 1 *.ts files (15 LOC)
  • " *.js" is biggest, containing 80.26% of LOC.
  • " *.ts" is smallest, containing 19.74% of LOC.


*.js61 LOC (80%) 2 files
*.ts15 LOC (19%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 3 files match defined criteria (11,899 LOC, 778.2% vs. main code). All matches are in *.json files.


*.json11899 LOC (100%) 3 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".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 4 files match defined criteria (159 LOC, 10.4% vs. main code). All matches are in *.sh files.


*.sh159 LOC (100%) 4 files
Other Code
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 ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
  • 19 files match defined criteria (12,376 LOC, 809.4% vs. main code):
    • 10 *.json files (12,165 LOC)
    • 9 *.md files (211 LOC)
  • " *.json" is biggest, containing 98.3% of LOC.
  • " *.md" is smallest, containing 1.7% of LOC.


*.json12165 LOC (98%) 10 files
*.md211 LOC (1%) 9 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:13