JetBrains / kotlin-web-site
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
babelrc
mjs
xsl
npmrc
cfg
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.

main22832 LOC (79%) 388 files
test2416 LOC (8%) 44 files
generated53 LOC (<1%) 1 file
build and deployment272 LOC (<1%) 8 files
other3068 LOC (10%) 131 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 388 files match defined criteria (22,832 LOC, 100.0% vs. main code):
    • 99 *.scss files (6,784 LOC)
    • 74 *.tsx files (4,262 LOC)
    • 71 *.css files (3,814 LOC)
    • 45 *.js files (3,232 LOC)
    • 19 *.jsx files (1,379 LOC)
    • 23 *.py files (1,319 LOC)
    • 31 *.html files (1,132 LOC)
    • 16 *.ts files (490 LOC)
    • 5 *.ftl files (236 LOC)
    • 1 *.xsl files (116 LOC)
    • 2 *.yaml files (45 LOC)
    • 1 *.mjs files (15 LOC)
    • 1 *.xml files (8 LOC)
  • " *.scss" is biggest, containing 29.71% of LOC.
  • " *.xml" is smallest, containing 0.04% of LOC.


*.scss6784 LOC (29%) 99 files
*.tsx4262 LOC (18%) 74 files
*.css3814 LOC (16%) 71 files
*.js3232 LOC (14%) 45 files
*.jsx1379 LOC (6%) 19 files
*.py1319 LOC (5%) 23 files
*.html1132 LOC (4%) 31 files
*.ts490 LOC (2%) 16 files
*.ftl236 LOC (1%) 5 files
*.xsl116 LOC (<1%) 1 file
*.yaml45 LOC (<1%) 2 files
*.mjs15 LOC (<1%) 1 file
*.xml8 LOC (<1%) 1 file
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 ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[.]spec[.]ts".
  • 44 files match defined criteria (2,416 LOC, 10.6% vs. main code):
    • 37 *.ts files (2,205 LOC)
    • 6 *.sh files (208 LOC)
    • 1 *.css files (3 LOC)
  • " *.ts" is biggest, containing 91.27% of LOC.
  • " *.css" is smallest, containing 0.12% of LOC.


*.ts2205 LOC (91%) 37 files
*.sh208 LOC (8%) 6 files
*.css3 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 paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (53 LOC, 0.2% vs. main code). All matches are in *.json files.


*.json53 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[-]lock[.]json".
  • 8 files match defined criteria (272 LOC, 1.2% vs. main code):
    • 1 *.js files (173 LOC)
    • 7 *.sh files (99 LOC)
  • " *.js" is biggest, containing 63.6% of LOC.
  • " *.sh" is smallest, containing 36.4% of LOC.


*.js173 LOC (63%) 1 file
*.sh99 LOC (36%) 7 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 ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]prettierignore".
  • 131 files match defined criteria (3,068 LOC, 13.4% vs. main code):
    • 104 *.svg files (1,900 LOC)
    • 11 *.json files (669 LOC)
    • 14 *.md files (484 LOC)
    • 2 *.txt files (15 LOC)
  • " *.svg" is biggest, containing 61.93% of LOC.
  • " *.txt" is smallest, containing 0.49% of LOC.


*.svg1900 LOC (61%) 104 files
*.json669 LOC (21%) 11 files
*.md484 LOC (15%) 14 files
*.txt15 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 16:39