JetBrains / guide
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
gitattributes
eslintignore
prettierignore
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.

main9982 LOC (12%) 134 files
test2066 LOC (2%) 57 files
generated9 LOC (<1%) 1 file
build and deployment18 LOC (<1%) 2 files
other69913 LOC (85%) 2,187 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 ".*".
  • 134 files match defined criteria (9,982 LOC, 100.0% vs. main code):
    • 74 *.tsx files (6,145 LOC)
    • 27 *.ts files (2,176 LOC)
    • 19 *.yaml files (707 LOC)
    • 5 *.scss files (512 LOC)
    • 9 *.js files (442 LOC)
  • " *.tsx" is biggest, containing 61.56% of LOC.
  • " *.js" is smallest, containing 4.43% of LOC.


*.tsx6145 LOC (61%) 74 files
*.ts2176 LOC (21%) 27 files
*.yaml707 LOC (7%) 19 files
*.scss512 LOC (5%) 5 files
*.js442 LOC (4%) 9 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 ".*/vitest[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[-]tests/.*".
    • 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/.*".
  • 57 files match defined criteria (2,066 LOC, 20.7% vs. main code):
    • 23 *.ts files (1,114 LOC)
    • 33 *.tsx files (930 LOC)
    • 1 *.js files (22 LOC)
  • " *.ts" is biggest, containing 53.92% of LOC.
  • " *.js" is smallest, containing 1.06% of LOC.


*.ts1114 LOC (53%) 23 files
*.tsx930 LOC (45%) 33 files
*.js22 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 any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 1 file matches defined criteria (9 LOC, 0.1% vs. main code). All matches are in *.svg files.


*.svg9 LOC (100%) 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 ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (18 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh18 LOC (100%) 2 files
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 ".*[.]json".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
  • 2187 files match defined criteria (69,913 LOC, 700.4% vs. main code):
    • 1,783 *.md files (61,712 LOC)
    • 128 *.json files (2,139 LOC)
    • 29 *.txt files (1,330 LOC)
    • 107 *.tsx files (1,290 LOC)
    • 21 *.svg files (1,126 LOC)
    • 50 *.ts files (780 LOC)
    • 12 *.py files (504 LOC)
    • 18 *.html files (360 LOC)
    • 20 *.css files (282 LOC)
    • 2 *.yaml files (162 LOC)
    • 9 *.rst files (122 LOC)
    • 7 *.js files (79 LOC)
    • 1 *.bat files (27 LOC)
  • " *.md" is biggest, containing 88.27% of LOC.
  • " *.bat" is smallest, containing 0.04% of LOC.


*.md61712 LOC (88%) 1,783 files
*.json2139 LOC (3%) 128 files
*.txt1330 LOC (1%) 29 files
*.tsx1290 LOC (1%) 107 files
*.svg1126 LOC (1%) 21 files
*.ts780 LOC (1%) 50 files
*.py504 LOC (<1%) 12 files
*.html360 LOC (<1%) 18 files
*.css282 LOC (<1%) 20 files
*.yaml162 LOC (<1%) 2 files
*.rst122 LOC (<1%) 9 files
*.js79 LOC (<1%) 7 files
*.bat27 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:29