azure / autorest.go
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
mod
njk
npmignore
gitattributes
txt
snap
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.

main15039 LOC (1%) 79 files
test463835 LOC (58%) 2,522 files
generated0 LOC (0%) 0 files
build and deployment11180 LOC (1%) 3 files
other301118 LOC (38%) 1,490 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
njk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 79 files match defined criteria (15,039 LOC, 100.0% vs. main code):
    • 59 *.ts files (13,582 LOC)
    • 8 *.njk files (876 LOC)
    • 5 *.yaml files (457 LOC)
    • 2 *.js files (63 LOC)
    • 5 *.ps1 files (61 LOC)
  • " *.ts" is biggest, containing 90.31% of LOC.
  • " *.ps1" is smallest, containing 0.41% of LOC.


*.ts13582 LOC (90%) 59 files
*.njk876 LOC (5%) 8 files
*.yaml457 LOC (3%) 5 files
*.js63 LOC (<1%) 2 files
*.ps161 LOC (<1%) 5 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]snap".
    • files with paths like ".*[-]test[-].*".
  • 2522 files match defined criteria (463,835 LOC, 3084.2% vs. main code):
    • 2,511 *.go files (446,095 LOC)
    • 4 *.yaml files (9,159 LOC)
    • 4 *.ts files (6,862 LOC)
    • 1 *.snap files (1,699 LOC)
    • 2 *.js files (20 LOC)
  • " *.go" is biggest, containing 96.18% of LOC.
  • " *.js" is smallest, containing 0% of LOC.


*.go446095 LOC (96%) 2,511 files
*.yaml9159 LOC (1%) 4 files
*.ts6862 LOC (1%) 4 files
*.snap1699 LOC (<1%) 1 file
*.js20 LOC (<1%) 2 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 3 files match defined criteria (11,180 LOC, 74.3% vs. main code). All matches are in *.yaml files.


*.yaml11180 LOC (100%) 3 files
Other Code
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
  • 1490 files match defined criteria (301,118 LOC, 2002.2% vs. main code):
    • 1,359 *.json files (292,169 LOC)
    • 34 *.md files (7,685 LOC)
    • 97 *.mod files (1,264 LOC)
  • " *.json" is biggest, containing 97.03% of LOC.
  • " *.mod" is smallest, containing 0.42% of LOC.


*.json292169 LOC (97%) 1,359 files
*.md7685 LOC (2%) 34 files
*.mod1264 LOC (<1%) 97 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:24