azure / data-api-builder
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
csproj
props
gitattributes
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.

main33167 LOC (25%) 294 files
test61104 LOC (47%) 194 files
generated0 LOC (0%) 0 files
build and deployment332 LOC (<1%) 8 files
other33326 LOC (26%) 157 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 294 files match defined criteria (33,167 LOC, 100.0% vs. main code):
    • 287 *.cs files (32,835 LOC)
    • 4 *.ps1 files (233 LOC)
    • 2 *.props files (79 LOC)
    • 1 *.bash files (20 LOC)
  • " *.cs" is biggest, containing 99% of LOC.
  • " *.bash" is smallest, containing 0.06% of LOC.


*.cs32835 LOC (98%) 287 files
*.ps1233 LOC (<1%) 4 files
*.props79 LOC (<1%) 2 files
*.bash20 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/TestData/.*".
  • 194 files match defined criteria (61,104 LOC, 184.2% vs. main code):
    • 174 *.cs files (57,482 LOC)
    • 4 *.sql files (1,907 LOC)
    • 5 *.gql files (816 LOC)
    • 8 *.js files (696 LOC)
    • 2 *.csproj files (143 LOC)
    • 1 *.ps1 files (60 LOC)
  • " *.cs" is biggest, containing 94.07% of LOC.
  • " *.ps1" is smallest, containing 0.1% of LOC.


*.cs57482 LOC (94%) 174 files
*.sql1907 LOC (3%) 4 files
*.gql816 LOC (1%) 5 files
*.js696 LOC (1%) 8 files
*.csproj143 LOC (<1%) 2 files
*.ps160 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 8 files match defined criteria (332 LOC, 1.0% vs. main code):
    • 7 *.csproj files (283 LOC)
    • 1 *.sh files (49 LOC)
  • " *.csproj" is biggest, containing 85.24% of LOC.
  • " *.sh" is smallest, containing 14.76% of LOC.


*.csproj283 LOC (85%) 7 files
*.sh49 LOC (14%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 157 files match defined criteria (33,326 LOC, 100.5% vs. main code):
    • 25 *.json files (16,833 LOC)
    • 118 *.txt files (15,633 LOC)
    • 5 *.sql files (386 LOC)
    • 7 *.md files (328 LOC)
    • 2 *.sh files (146 LOC)
  • " *.json" is biggest, containing 50.51% of LOC.
  • " *.sh" is smallest, containing 0.44% of LOC.


*.json16833 LOC (50%) 25 files
*.txt15633 LOC (46%) 118 files
*.sql386 LOC (1%) 5 files
*.md328 LOC (<1%) 7 files
*.sh146 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:17