mysql / mysql-shell
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
txt
in
cfg
pub
gitattributes
patch
clang-format
clang-tidy
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.

main477108 LOC (95%) 2,194 files
test12847 LOC (2%) 60 files
generated0 LOC (0%) 0 files
build and deployment862 LOC (<1%) 3 files
other9179 LOC (1%) 84 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
cfg
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2194 files match defined criteria (477,108 LOC, 100.0% vs. main code):
    • 582 *.cc files (211,175 LOC)
    • 703 *.js files (105,781 LOC)
    • 294 *.py files (62,078 LOC)
    • 491 *.h files (48,151 LOC)
    • 19 *.cpp files (17,556 LOC)
    • 32 *.sql files (10,973 LOC)
    • 2 *.g4 files (6,037 LOC)
    • 34 *.cmake files (5,149 LOC)
    • 8 *.xml files (4,074 LOC)
    • 13 *.in files (3,932 LOC)
    • 10 *.inc files (2,139 LOC)
    • 1 *.c files (52 LOC)
    • 1 *.java files (5 LOC)
    • 2 *.cfg files (4 LOC)
    • 2 *.pub files (2 LOC)
  • " *.cc" is biggest, containing 44.26% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.cc211175 LOC (44%) 582 files
*.js105781 LOC (22%) 703 files
*.py62078 LOC (13%) 294 files
*.h48151 LOC (10%) 491 files
*.cpp17556 LOC (3%) 19 files
*.sql10973 LOC (2%) 32 files
*.g46037 LOC (1%) 2 files
*.cmake5149 LOC (1%) 34 files
*.xml4074 LOC (<1%) 8 files
*.in3932 LOC (<1%) 13 files
*.inc2139 LOC (<1%) 10 files
*.c52 LOC (<1%) 1 file
*.java5 LOC (<1%) 1 file
*.cfg4 LOC (<1%) 2 files
*.pub2 LOC (<1%) 2 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 ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 60 files match defined criteria (12,847 LOC, 2.7% vs. main code):
    • 20 *.cc files (6,569 LOC)
    • 24 *.h files (6,107 LOC)
    • 11 *.sql files (137 LOC)
    • 4 *.js files (32 LOC)
    • 1 *.py files (2 LOC)
  • " *.cc" is biggest, containing 51.13% of LOC.
  • " *.py" is smallest, containing 0.02% of LOC.


*.cc6569 LOC (51%) 20 files
*.h6107 LOC (47%) 24 files
*.sql137 LOC (1%) 11 files
*.js32 LOC (<1%) 4 files
*.py2 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
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 ".*/[.]gitattributes".
    • files with paths like ".*/pom[.]xml".
  • 3 files match defined criteria (862 LOC, 0.2% vs. main code). All matches are in *.xml files.


*.xml862 LOC (100%) 3 files
Other Code
txt
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Mm]an/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]patch".
  • 84 files match defined criteria (9,179 LOC, 1.9% vs. main code):
    • 51 *.txt files (4,334 LOC)
    • 1 *.patch files (2,632 LOC)
    • 28 *.json files (1,819 LOC)
    • 4 *.md files (394 LOC)
  • " *.txt" is biggest, containing 47.22% of LOC.
  • " *.md" is smallest, containing 4.29% of LOC.


*.txt4334 LOC (47%) 51 files
*.patch2632 LOC (28%) 1 file
*.json1819 LOC (19%) 28 files
*.md394 LOC (4%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 19:49