JetBrains / intellij-sdk-code-samples
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
properties
txt
gitattributes
flex
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.

main4979 LOC (59%) 163 files
test240 LOC (2%) 17 files
generated532 LOC (6%) 6 files
build and deployment1605 LOC (19%) 22 files
other972 LOC (11%) 52 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 ".*".
  • 163 files match defined criteria (4,979 LOC, 100.0% vs. main code):
    • 88 *.java files (3,131 LOC)
    • 43 *.kts files (898 LOC)
    • 22 *.xml files (819 LOC)
    • 5 *.kt files (68 LOC)
    • 1 *.flex files (31 LOC)
    • 3 *.html files (25 LOC)
    • 1 *.yaml files (7 LOC)
  • " *.java" is biggest, containing 62.88% of LOC.
  • " *.yaml" is smallest, containing 0.14% of LOC.


*.java3131 LOC (62%) 88 files
*.kts898 LOC (18%) 43 files
*.xml819 LOC (16%) 22 files
*.kt68 LOC (1%) 5 files
*.flex31 LOC (<1%) 1 file
*.html25 LOC (<1%) 3 files
*.yaml7 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]est/.*".
  • 17 files match defined criteria (240 LOC, 4.8% vs. main code). All matches are in *.java files.


*.java240 LOC (100%) 17 files
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 ".*[.]java" AND any line of content like ".*[/][/] This is a generated file[.] Not intended for manual editing[.].*".
  • 6 files match defined criteria (532 LOC, 10.7% vs. main code). All matches are in *.java files.


*.java532 LOC (100%) 6 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".
    • files with paths like ".*/[.]gitattributes".
  • 22 files match defined criteria (1,605 LOC, 32.2% vs. main code). All matches are in *.bat files.


*.bat1605 LOC (100%) 22 files
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 ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 52 files match defined criteria (972 LOC, 19.5% vs. main code):
    • 25 *.md files (537 LOC)
    • 2 *.txt files (235 LOC)
    • 23 *.properties files (150 LOC)
    • 1 *.json files (47 LOC)
    • 1 *.svg files (3 LOC)
  • " *.md" is biggest, containing 55.25% of LOC.
  • " *.svg" is smallest, containing 0.31% of LOC.


*.md537 LOC (55%) 25 files
*.txt235 LOC (24%) 2 files
*.properties150 LOC (15%) 23 files
*.json47 LOC (4%) 1 file
*.svg3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:12