JetBrains / Grammar-Kit
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
flex
properties
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.

main42457 LOC (75%) 371 files
test1693 LOC (2%) 31 files
generated2706 LOC (4%) 3 files
build and deployment73 LOC (<1%) 1 file
other9621 LOC (17%) 55 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
flex
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 371 files match defined criteria (42,457 LOC, 100.0% vs. main code):
    • 311 *.java files (40,727 LOC)
    • 48 *.html files (739 LOC)
    • 4 *.flex files (495 LOC)
    • 2 *.kts files (217 LOC)
    • 4 *.xml files (162 LOC)
    • 1 *.g files (100 LOC)
    • 1 *.toml files (17 LOC)
  • " *.java" is biggest, containing 95.93% of LOC.
  • " *.toml" is smallest, containing 0.04% of LOC.


*.java40727 LOC (95%) 311 files
*.html739 LOC (1%) 48 files
*.flex495 LOC (1%) 4 files
*.kts217 LOC (<1%) 2 files
*.xml162 LOC (<1%) 4 files
*.g100 LOC (<1%) 1 file
*.toml17 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
flex
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 31 files match defined criteria (1,693 LOC, 4.0% vs. main code):
    • 30 *.java files (1,657 LOC)
    • 1 *.flex files (36 LOC)
  • " *.java" is biggest, containing 97.87% of LOC.
  • " *.flex" is smallest, containing 2.13% of LOC.


*.java1657 LOC (97%) 30 files
*.flex36 LOC (2%) 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 ".*[.]java" AND any line of content like ".*The following code was generated by JFlex.*".
    • files with any line of content like "//[ ]*Generated by .*".
  • 3 files match defined criteria (2,706 LOC, 6.4% vs. main code). All matches are in *.java files.


*.java2706 LOC (100%) 3 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (73 LOC, 0.2% vs. main code). All matches are in *.bat files.


*.bat73 LOC (100%) 1 file
Other Code
txt
properties
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 ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
  • 55 files match defined criteria (9,621 LOC, 22.7% vs. main code):
    • 46 *.txt files (8,590 LOC)
    • 6 *.md files (958 LOC)
    • 2 *.properties files (64 LOC)
    • 1 *.svg files (9 LOC)
  • " *.txt" is biggest, containing 89.28% of LOC.
  • " *.svg" is smallest, containing 0.09% of LOC.


*.txt8590 LOC (89%) 46 files
*.md958 LOC (9%) 6 files
*.properties64 LOC (<1%) 2 files
*.svg9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 16:35