aliyun / aliyun-oss-csharp-sdk
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
csproj
resx
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.

main22263 LOC (47%) 417 files
test18792 LOC (39%) 54 files
generated445 LOC (<1%) 4 files
build and deployment1112 LOC (2%) 2 files
other4431 LOC (9%) 50 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 ".*".
  • 417 files match defined criteria (22,263 LOC, 100.0% vs. main code). All matches are in *.cs files.


*.cs22263 LOC (100%) 417 files
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]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 54 files match defined criteria (18,792 LOC, 84.4% vs. main code):
    • 51 *.cs files (18,521 LOC)
    • 2 *.csproj files (258 LOC)
    • 1 *.xml files (13 LOC)
  • " *.cs" is biggest, containing 98.56% of LOC.
  • " *.xml" is smallest, containing 0.07% of LOC.


*.cs18521 LOC (98%) 51 files
*.csproj258 LOC (1%) 2 files
*.xml13 LOC (<1%) 1 file
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 "[/][/][ ]*".
  • 4 files match defined criteria (445 LOC, 2.0% vs. main code). All matches are in *.cs files.


*.cs445 LOC (100%) 4 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 (1,112 LOC, 5.0% vs. main code). All matches are in *.csproj files.


*.csproj1112 LOC (100%) 2 files
Other Code
csproj
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 50 files match defined criteria (4,431 LOC, 19.9% vs. main code):
    • 44 *.cs files (3,541 LOC)
    • 3 *.md files (418 LOC)
    • 2 *.csproj files (246 LOC)
    • 1 *.txt files (226 LOC)
  • " *.cs" is biggest, containing 79.91% of LOC.
  • " *.txt" is smallest, containing 5.1% of LOC.


*.cs3541 LOC (79%) 44 files
*.md418 LOC (9%) 3 files
*.csproj246 LOC (5%) 2 files
*.txt226 LOC (5%) 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)


2025-05-15 04:53