mysql / mysql-js
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
gyp
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.

main27045 LOC (61%) 165 files
test14391 LOC (32%) 187 files
generated0 LOC (0%) 0 files
build and deployment60 LOC (<1%) 1 file
other2537 LOC (5%) 42 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
gyp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 165 files match defined criteria (27,045 LOC, 100.0% vs. main code):
    • 88 *.js files (18,391 LOC)
    • 36 *.cpp files (5,671 LOC)
    • 31 *.h files (2,322 LOC)
    • 5 *.hpp files (412 LOC)
    • 1 *.gyp files (91 LOC)
    • 1 *.yaml files (61 LOC)
    • 2 *.sql files (57 LOC)
    • 1 *.awk files (40 LOC)
  • " *.js" is biggest, containing 68% of LOC.
  • " *.awk" is smallest, containing 0.15% of LOC.


*.js18391 LOC (68%) 88 files
*.cpp5671 LOC (20%) 36 files
*.h2322 LOC (8%) 31 files
*.hpp412 LOC (1%) 5 files
*.gyp91 LOC (<1%) 1 file
*.yaml61 LOC (<1%) 1 file
*.sql57 LOC (<1%) 2 files
*.awk40 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
gyp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 187 files match defined criteria (14,391 LOC, 53.2% vs. main code):
    • 146 *.js files (13,506 LOC)
    • 32 *.sql files (671 LOC)
    • 4 *.cc files (103 LOC)
    • 2 *.cpp files (60 LOC)
    • 1 *.gyp files (24 LOC)
    • 1 *.hpp files (23 LOC)
    • 1 *.h files (4 LOC)
  • " *.js" is biggest, containing 93.85% of LOC.
  • " *.h" is smallest, containing 0.03% of LOC.


*.js13506 LOC (93%) 146 files
*.sql671 LOC (4%) 32 files
*.cc103 LOC (<1%) 4 files
*.cpp60 LOC (<1%) 2 files
*.gyp24 LOC (<1%) 1 file
*.hpp23 LOC (<1%) 1 file
*.h4 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (60 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh60 LOC (100%) 1 file
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 42 files match defined criteria (2,537 LOC, 9.4% vs. main code):
    • 15 *.js files (1,115 LOC)
    • 13 *.md files (975 LOC)
    • 7 *.json files (214 LOC)
    • 1 *.txt files (115 LOC)
    • 4 *.sh files (63 LOC)
    • 2 *.sql files (55 LOC)
  • " *.js" is biggest, containing 43.95% of LOC.
  • " *.sql" is smallest, containing 2.17% of LOC.


*.js1115 LOC (43%) 15 files
*.md975 LOC (38%) 13 files
*.json214 LOC (8%) 7 files
*.txt115 LOC (4%) 1 file
*.sh63 LOC (2%) 4 files
*.sql55 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 19:48