azure / azure-migrate-export
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
resx
csproj
cmd
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.

main16204 LOC (90%) 141 files
test159 LOC (<1%) 3 files
generated124 LOC (<1%) 2 files
build and deployment552 LOC (3%) 2 files
other904 LOC (5%) 14 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 ".*".
  • 141 files match defined criteria (16,204 LOC, 100.0% vs. main code):
    • 140 *.cs files (16,063 LOC)
    • 1 *.html files (141 LOC)
  • " *.cs" is biggest, containing 99.13% of LOC.
  • " *.html" is smallest, containing 0.87% of LOC.


*.cs16063 LOC (99%) 140 files
*.html141 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 ".*/[Tt]ests/.*".
  • 3 files match defined criteria (159 LOC, 1.0% vs. main code):
    • 1 *.csproj files (106 LOC)
    • 2 *.cs files (53 LOC)
  • " *.csproj" is biggest, containing 66.67% of LOC.
  • " *.cs" is smallest, containing 33.33% of LOC.


*.csproj106 LOC (66%) 1 file
*.cs53 LOC (33%) 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 ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 2 files match defined criteria (124 LOC, 0.8% vs. main code). All matches are in *.cs files.


*.cs124 LOC (100%) 2 files
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 ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (552 LOC, 3.4% vs. main code). All matches are in *.csproj files.


*.csproj552 LOC (100%) 2 files
Other Code
txt
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 ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
  • 14 files match defined criteria (904 LOC, 5.6% vs. main code):
    • 13 *.md files (895 LOC)
    • 1 *.txt files (9 LOC)
  • " *.md" is biggest, containing 99% of LOC.
  • " *.txt" is smallest, containing 1% of LOC.


*.md895 LOC (99%) 13 files
*.txt9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.cs files are analyzed with CSharpAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on namespace heuristics)
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis


2025-05-06 22:36