mysql / mysql-configurator
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
ini
csproj
x
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.

main34684 LOC (87%) 226 files
test312 LOC (<1%) 4 files
generated2950 LOC (7%) 2 files
build and deployment766 LOC (1%) 1 file
other913 LOC (2%) 5 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 ".*".
  • 226 files match defined criteria (34,684 LOC, 100.0% vs. main code):
    • 224 *.cs files (34,476 LOC)
    • 1 *.xml files (186 LOC)
    • 1 *.sql files (22 LOC)
  • " *.cs" is biggest, containing 99.4% of LOC.
  • " *.sql" is smallest, containing 0.06% of LOC.


*.cs34476 LOC (99%) 224 files
*.xml186 LOC (<1%) 1 file
*.sql22 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]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
  • 4 files match defined criteria (312 LOC, 0.9% vs. main code):
    • 3 *.cs files (221 LOC)
    • 1 *.csproj files (91 LOC)
  • " *.cs" is biggest, containing 70.83% of LOC.
  • " *.csproj" is smallest, containing 29.17% of LOC.


*.cs221 LOC (70%) 3 files
*.csproj91 LOC (29%) 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 ".*[.]designer[.](cs|vb)".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 2 files match defined criteria (2,950 LOC, 8.5% vs. main code). All matches are in *.cs files.


*.cs2950 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".
  • 1 file matches defined criteria (766 LOC, 2.2% vs. main code). All matches are in *.csproj files.


*.csproj766 LOC (100%) 1 file
Other Code
ini
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 ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 5 files match defined criteria (913 LOC, 2.6% vs. main code):
    • 2 *.ini files (842 LOC)
    • 3 *.md files (71 LOC)
  • " *.ini" is biggest, containing 92.22% of LOC.
  • " *.md" is smallest, containing 7.78% of LOC.


*.ini842 LOC (92%) 2 files
*.md71 LOC (7%) 3 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)
  • *.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:48