azure / azure-dev
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
snap
txt
proto
csproj
razor
gitattributes
cmd
properties
wxs
mod
vcxproj
props
wixproj
nuspec
vscodeignore
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.

main117662 LOC (53%) 982 files
test45160 LOC (20%) 314 files
generated22483 LOC (10%) 10 files
build and deployment1813 LOC (<1%) 30 files
other32322 LOC (14%) 161 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
wxs
vcxproj
wixproj
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 982 files match defined criteria (117,662 LOC, 100.0% vs. main code):
    • 533 *.go files (82,392 LOC)
    • 142 *.ps1 files (16,659 LOC)
    • 113 *.ts files (5,058 LOC)
    • 23 *.py files (2,785 LOC)
    • 37 *.tf files (2,321 LOC)
    • 29 *.java files (1,958 LOC)
    • 23 *.cs files (1,614 LOC)
    • 18 *.proto files (1,209 LOC)
    • 12 *.js files (981 LOC)
    • 11 *.tsx files (720 LOC)
    • 19 *.yaml files (583 LOC)
    • 3 *.css files (290 LOC)
    • 1 *.psm1 files (263 LOC)
    • 3 *.wxs files (248 LOC)
    • 3 *.cpp files (224 LOC)
    • 1 *.vcxproj files (97 LOC)
    • 2 *.xml files (86 LOC)
    • 1 *.wixproj files (62 LOC)
    • 4 *.cmd files (44 LOC)
    • 2 *.h files (33 LOC)
    • 1 *.toml files (20 LOC)
    • 1 *.html files (15 LOC)
  • " *.go" is biggest, containing 70.02% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.go82392 LOC (70%) 533 files
*.ps116659 LOC (14%) 142 files
*.ts5058 LOC (4%) 113 files
*.py2785 LOC (2%) 23 files
*.tf2321 LOC (1%) 37 files
*.java1958 LOC (1%) 29 files
*.cs1614 LOC (1%) 23 files
*.proto1209 LOC (1%) 18 files
*.js981 LOC (<1%) 12 files
*.tsx720 LOC (<1%) 11 files
*.yaml583 LOC (<1%) 19 files
*.css290 LOC (<1%) 3 files
*.psm1263 LOC (<1%) 1 file
*.wxs248 LOC (<1%) 3 files
*.cpp224 LOC (<1%) 3 files
*.vcxproj97 LOC (<1%) 1 file
*.xml86 LOC (<1%) 2 files
*.wixproj62 LOC (<1%) 1 file
*.cmd44 LOC (<1%) 4 files
*.h33 LOC (<1%) 2 files
*.toml20 LOC (<1%) 1 file
*.html15 LOC (<1%) 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]est/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 314 files match defined criteria (45,160 LOC, 38.4% vs. main code):
    • 282 *.go files (43,315 LOC)
    • 7 *.ps1 files (758 LOC)
    • 18 *.ts files (724 LOC)
    • 3 *.sh files (227 LOC)
    • 2 *.py files (120 LOC)
    • 2 *.java files (16 LOC)
  • " *.go" is biggest, containing 95.91% of LOC.
  • " *.java" is smallest, containing 0.04% of LOC.


*.go43315 LOC (95%) 282 files
*.ps1758 LOC (1%) 7 files
*.ts724 LOC (1%) 18 files
*.sh227 LOC (<1%) 3 files
*.py120 LOC (<1%) 2 files
*.java16 LOC (<1%) 2 files
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".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 10 files match defined criteria (22,483 LOC, 19.1% vs. main code):
    • 8 *.json files (22,423 LOC)
    • 2 *.py files (60 LOC)
  • " *.json" is biggest, containing 99.73% of LOC.
  • " *.py" is smallest, containing 0.27% of LOC.


*.json22423 LOC (99%) 8 files
*.py60 LOC (<1%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • 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 ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 30 files match defined criteria (1,813 LOC, 1.5% vs. main code):
    • 23 *.sh files (1,312 LOC)
    • 2 *.xml files (342 LOC)
    • 3 *.csproj files (68 LOC)
    • 1 *.js files (65 LOC)
    • 1 *.nuspec files (26 LOC)
  • " *.sh" is biggest, containing 72.37% of LOC.
  • " *.nuspec" is smallest, containing 1.43% of LOC.


*.sh1312 LOC (72%) 23 files
*.xml342 LOC (18%) 2 files
*.csproj68 LOC (3%) 3 files
*.js65 LOC (3%) 1 file
*.nuspec26 LOC (1%) 1 file
Other Code
txt
mod
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]vscodeignore".
    • files with paths like ".*/go[.]mod".
  • 161 files match defined criteria (32,322 LOC, 27.5% vs. main code):
    • 80 *.json files (27,836 LOC)
    • 64 *.md files (4,116 LOC)
    • 13 *.txt files (154 LOC)
    • 1 *.mod files (118 LOC)
    • 1 *.svg files (76 LOC)
    • 2 *.properties files (22 LOC)
  • " *.json" is biggest, containing 86.12% of LOC.
  • " *.properties" is smallest, containing 0.07% of LOC.


*.json27836 LOC (86%) 80 files
*.md4116 LOC (12%) 64 files
*.txt154 LOC (<1%) 13 files
*.mod118 LOC (<1%) 1 file
*.svg76 LOC (<1%) 1 file
*.properties22 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:30