epam / ketcher
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
snap
txt
eslintignore
prettierignore
stylelintignore
babelrc
gitattributes
mjs
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.

main102091 LOC (38%) 1,205 files
test138275 LOC (52%) 658 files
generated8547 LOC (3%) 2 files
build and deployment46 LOC (<1%) 1 file
other14933 LOC (5%) 266 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1205 files match defined criteria (102,091 LOC, 100.0% vs. main code):
    • 821 *.ts files (69,161 LOC)
    • 208 *.tsx files (15,670 LOC)
    • 54 *.js files (7,966 LOC)
    • 37 *.jsx files (4,504 LOC)
    • 79 *.less files (4,224 LOC)
    • 3 *.css files (387 LOC)
    • 2 *.html files (174 LOC)
    • 1 *.mjs files (5 LOC)
  • " *.ts" is biggest, containing 67.74% of LOC.
  • " *.mjs" is smallest, containing 0% of LOC.


*.ts69161 LOC (67%) 821 files
*.tsx15670 LOC (15%) 208 files
*.js7966 LOC (7%) 54 files
*.jsx4504 LOC (4%) 37 files
*.less4224 LOC (4%) 79 files
*.css387 LOC (<1%) 3 files
*.html174 LOC (<1%) 2 files
*.mjs5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*__tests__.*".
  • 658 files match defined criteria (138,275 LOC, 135.4% vs. main code):
    • 364 *.ts files (83,763 LOC)
    • 216 *.rdf files (46,379 LOC)
    • 25 *.snap files (5,560 LOC)
    • 42 *.tsx files (2,266 LOC)
    • 8 *.js files (292 LOC)
    • 3 *.sh files (15 LOC)
  • " *.ts" is biggest, containing 60.58% of LOC.
  • " *.sh" is smallest, containing 0.01% of LOC.


*.ts83763 LOC (60%) 364 files
*.rdf46379 LOC (33%) 216 files
*.snap5560 LOC (4%) 25 files
*.tsx2266 LOC (1%) 42 files
*.js292 LOC (<1%) 8 files
*.sh15 LOC (<1%) 3 files
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 ".*/package[-]lock[.]json".
  • 2 files match defined criteria (8,547 LOC, 8.4% vs. main code). All matches are in *.json files.


*.json8547 LOC (100%) 2 files
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 ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (46 LOC, 0.0% vs. main code). All matches are in *.js files.


*.js46 LOC (100%) 1 file
Other Code
txt
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 ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*/[.]gitignore".
  • 266 files match defined criteria (14,933 LOC, 14.6% vs. main code):
    • 37 *.json files (11,571 LOC)
    • 17 *.md files (1,333 LOC)
    • 172 *.svg files (870 LOC)
    • 10 *.tsx files (613 LOC)
    • 7 *.ts files (233 LOC)
    • 19 *.txt files (200 LOC)
    • 1 *.js files (47 LOC)
    • 2 *.css files (45 LOC)
    • 1 *.html files (21 LOC)
  • " *.json" is biggest, containing 77.49% of LOC.
  • " *.html" is smallest, containing 0.14% of LOC.


*.json11571 LOC (77%) 37 files
*.md1333 LOC (8%) 17 files
*.svg870 LOC (5%) 172 files
*.tsx613 LOC (4%) 10 files
*.ts233 LOC (1%) 7 files
*.txt200 LOC (1%) 19 files
*.js47 LOC (<1%) 1 file
*.css45 LOC (<1%) 2 files
*.html21 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 15:35