JetBrains / hirschgarten
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
proto
properties
patch
flex
editorconfig
npmrc
cmd
gitattributes
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.

main59821 LOC (44%) 1,130 files
test24640 LOC (18%) 374 files
generated30355 LOC (22%) 36 files
build and deployment281 LOC (<1%) 10 files
other20156 LOC (14%) 157 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
flex
proto
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1130 files match defined criteria (59,821 LOC, 100.0% vs. main code):
    • 1,029 *.kt files (52,360 LOC)
    • 20 *.bzl files (3,412 LOC)
    • 38 *.java files (1,903 LOC)
    • 13 *.py files (920 LOC)
    • 3 *.flex files (494 LOC)
    • 15 *.xml files (352 LOC)
    • 5 *.yaml files (150 LOC)
    • 2 *.proto files (128 LOC)
    • 1 *.cmd files (73 LOC)
    • 2 *.html files (16 LOC)
    • 1 *.cjs files (12 LOC)
    • 1 *.cc files (1 LOC)
  • " *.kt" is biggest, containing 87.53% of LOC.
  • " *.cc" is smallest, containing 0% of LOC.


*.kt52360 LOC (87%) 1,029 files
*.bzl3412 LOC (5%) 20 files
*.java1903 LOC (3%) 38 files
*.py920 LOC (1%) 13 files
*.flex494 LOC (<1%) 3 files
*.xml352 LOC (<1%) 15 files
*.yaml150 LOC (<1%) 5 files
*.proto128 LOC (<1%) 2 files
*.cmd73 LOC (<1%) 1 file
*.html16 LOC (<1%) 2 files
*.cjs12 LOC (<1%) 1 file
*.cc1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/test_.*".
  • 374 files match defined criteria (24,640 LOC, 41.2% vs. main code):
    • 214 *.kt files (21,889 LOC)
    • 66 *.java files (1,459 LOC)
    • 55 *.bzl files (982 LOC)
    • 17 *.scala files (134 LOC)
    • 11 *.xml files (119 LOC)
    • 3 *.go files (22 LOC)
    • 1 *.proto files (16 LOC)
    • 6 *.py files (14 LOC)
    • 1 *.cpp files (5 LOC)
  • " *.kt" is biggest, containing 88.84% of LOC.
  • " *.cpp" is smallest, containing 0.02% of LOC.


*.kt21889 LOC (88%) 214 files
*.java1459 LOC (5%) 66 files
*.bzl982 LOC (3%) 55 files
*.scala134 LOC (<1%) 17 files
*.xml119 LOC (<1%) 11 files
*.go22 LOC (<1%) 3 files
*.proto16 LOC (<1%) 1 file
*.py14 LOC (<1%) 6 files
*.cpp5 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 .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 36 files match defined criteria (30,355 LOC, 50.7% vs. main code). All matches are in *.java files.


*.java30355 LOC (100%) 36 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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 10 files match defined criteria (281 LOC, 0.5% vs. main code):
    • 8 *.sh files (236 LOC)
    • 1 *.yaml files (38 LOC)
    • 1 *.bat files (7 LOC)
  • " *.sh" is biggest, containing 83.99% of LOC.
  • " *.bat" is smallest, containing 2.49% of LOC.


*.sh236 LOC (83%) 8 files
*.yaml38 LOC (13%) 1 file
*.bat7 LOC (2%) 1 file
Other Code
txt
properties
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]json".
  • 157 files match defined criteria (20,156 LOC, 33.7% vs. main code):
    • 107 *.txt files (18,571 LOC)
    • 12 *.kt files (483 LOC)
    • 13 *.md files (471 LOC)
    • 4 *.properties files (401 LOC)
    • 19 *.svg files (201 LOC)
    • 1 *.patch files (23 LOC)
    • 1 *.json files (6 LOC)
  • " *.txt" is biggest, containing 92.14% of LOC.
  • " *.json" is smallest, containing 0.03% of LOC.


*.txt18571 LOC (92%) 107 files
*.kt483 LOC (2%) 12 files
*.md471 LOC (2%) 13 files
*.properties401 LOC (1%) 4 files
*.svg201 LOC (<1%) 19 files
*.patch23 LOC (<1%) 1 file
*.json6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:34