azure / api-management-developer-portal
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
liquid
gitattributes
txt
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.

main57311 LOC (88%) 966 files
test4064 LOC (6%) 66 files
generated0 LOC (0%) 0 files
build and deployment773 LOC (1%) 21 files
other2960 LOC (4%) 63 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
liquid
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 966 files match defined criteria (57,311 LOC, 100.0% vs. main code):
    • 591 *.ts files (27,204 LOC)
    • 137 *.tsx files (15,737 LOC)
    • 105 *.scss files (8,041 LOC)
    • 91 *.html files (3,666 LOC)
    • 18 *.js files (1,489 LOC)
    • 24 *.liquid files (1,174 LOC)
  • " *.ts" is biggest, containing 47.47% of LOC.
  • " *.liquid" is smallest, containing 2.05% of LOC.


*.ts27204 LOC (47%) 591 files
*.tsx15737 LOC (27%) 137 files
*.scss8041 LOC (14%) 105 files
*.html3666 LOC (6%) 91 files
*.js1489 LOC (2%) 18 files
*.liquid1174 LOC (2%) 24 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 ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/e2e/.*".
  • 66 files match defined criteria (4,064 LOC, 7.1% vs. main code). All matches are in *.ts files.


*.ts4064 LOC (100%) 66 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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 21 files match defined criteria (773 LOC, 1.3% vs. main code):
    • 10 *.js files (699 LOC)
    • 9 *.bat files (66 LOC)
    • 2 *.sh files (8 LOC)
  • " *.js" is biggest, containing 90.43% of LOC.
  • " *.sh" is smallest, containing 1.03% of LOC.


*.js699 LOC (90%) 10 files
*.bat66 LOC (8%) 9 files
*.sh8 LOC (1%) 2 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 63 files match defined criteria (2,960 LOC, 5.2% vs. main code):
    • 16 *.json files (2,412 LOC)
    • 15 *.ts files (277 LOC)
    • 6 *.md files (133 LOC)
    • 23 *.svg files (123 LOC)
    • 3 *.html files (15 LOC)
  • " *.json" is biggest, containing 81.49% of LOC.
  • " *.html" is smallest, containing 0.51% of LOC.


*.json2412 LOC (81%) 16 files
*.ts277 LOC (9%) 15 files
*.md133 LOC (4%) 6 files
*.svg123 LOC (4%) 23 files
*.html15 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:43