mysql / mysql-connector-net
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
aspx
x
asax
ini
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.

main56711 LOC (36%) 443 files
test70220 LOC (45%) 277 files
generated26064 LOC (16%) 26 files
build and deployment371 LOC (<1%) 5 files
other459 LOC (<1%) 13 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 ".*".
  • 443 files match defined criteria (56,711 LOC, 100.0% vs. main code):
    • 431 *.cs files (55,186 LOC)
    • 1 *.xml files (1,339 LOC)
    • 11 *.sql files (186 LOC)
  • " *.cs" is biggest, containing 97.31% of LOC.
  • " *.sql" is smallest, containing 0.33% of LOC.


*.cs55186 LOC (97%) 431 files
*.xml1339 LOC (2%) 1 file
*.sql186 LOC (<1%) 11 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
aspx
asax
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 277 files match defined criteria (70,220 LOC, 123.8% vs. main code):
    • 254 *.cs files (63,158 LOC)
    • 7 *.sql files (6,304 LOC)
    • 10 *.csproj files (703 LOC)
    • 4 *.aspx files (52 LOC)
    • 1 *.asax files (2 LOC)
    • 1 *.bat files (1 LOC)
  • " *.cs" is biggest, containing 89.94% of LOC.
  • " *.bat" is smallest, containing 0% of LOC.


*.cs63158 LOC (89%) 254 files
*.sql6304 LOC (8%) 7 files
*.csproj703 LOC (1%) 10 files
*.aspx52 LOC (<1%) 4 files
*.asax2 LOC (<1%) 1 file
*.bat1 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 "[/][/][ ]*".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.]designer[.](cs|vb)".
  • 26 files match defined criteria (26,064 LOC, 46.0% vs. main code). All matches are in *.cs files.


*.cs26064 LOC (100%) 26 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 ".*[.]bat".
  • 5 files match defined criteria (371 LOC, 0.7% vs. main code). All matches are in *.csproj files.


*.csproj371 LOC (100%) 5 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Dd]ocumentation/.*".
  • 13 files match defined criteria (459 LOC, 0.8% vs. main code):
    • 5 *.txt files (176 LOC)
    • 4 *.md files (142 LOC)
    • 3 *.json files (100 LOC)
    • 1 *.ini files (41 LOC)
  • " *.txt" is biggest, containing 38.34% of LOC.
  • " *.ini" is smallest, containing 8.93% of LOC.


*.txt176 LOC (38%) 5 files
*.md142 LOC (30%) 4 files
*.json100 LOC (21%) 3 files
*.ini41 LOC (8%) 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)
  • *.xml files are analyzed with XmlAnalyzer:
    • 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)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.sql files are analyzed with SqlAnalyzer:
    • 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)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2025-05-09 19:49