anthropics / anthropic-sdk-csharp
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
props
editorconfig
  • 9 extensions are included in analyses: cs, csproj, md, json, yaml, gitignore, props, txt, 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.

main193658 LOC (48%) 1,088 files
test203275 LOC (50%) 969 files
generated0 LOC (0%) 0 files
build and deployment202 LOC (<1%) 9 files
other2627 LOC (<1%) 53 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 ".*".
  • 1088 files match defined criteria (193,658 LOC, 100.0% vs. main code). All matches are in *.cs files.


*.cs193658 LOC (100%) 1,088 files
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]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 969 files match defined criteria (203,275 LOC, 105.0% vs. main code):
    • 968 *.cs files (203,248 LOC)
    • 1 *.csproj files (27 LOC)
  • " *.cs" is biggest, containing 99.99% of LOC.
  • " *.csproj" is smallest, containing 0.01% of LOC.


*.cs203248 LOC (99%) 968 files
*.csproj27 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
editorconfig
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*[.]props".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 9 files match defined criteria (202 LOC, 0.1% vs. main code):
    • 6 *.csproj files (136 LOC)
    • 1 *.editorconfig files (29 LOC)
    • 1 *.props files (29 LOC)
    • 1 *.gitignore files (8 LOC)
  • " *.csproj" is biggest, containing 67.33% of LOC.
  • " *.gitignore" is smallest, containing 3.96% of LOC.


*.csproj136 LOC (67%) 6 files
*.editorconfig29 LOC (14%) 1 file
*.props29 LOC (14%) 1 file
*.gitignore8 LOC (3%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 53 files match defined criteria (2,627 LOC, 1.4% vs. main code):
    • 19 *.cs files (1,350 LOC)
    • 10 *.md files (930 LOC)
    • 19 *.csproj files (226 LOC)
    • 5 *.json files (121 LOC)
  • " *.cs" is biggest, containing 51.39% of LOC.
  • " *.json" is smallest, containing 4.61% of LOC.


*.cs1350 LOC (51%) 19 files
*.md930 LOC (35%) 10 files
*.csproj226 LOC (8%) 19 files
*.json121 LOC (4%) 5 files
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)


2026-06-24 10:46