JetBrains / intellij-scala
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
properties
sig
sc
flex
editorconfig
x
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.

main291147 LOC (47%) 4,400 files
test298715 LOC (48%) 2,448 files
generated19406 LOC (3%) 130 files
build and deployment61 LOC (<1%) 1 file
other4690 LOC (<1%) 260 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
flex
sc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 4400 files match defined criteria (291,147 LOC, 100.0% vs. main code):
    • 3,771 *.scala files (261,894 LOC)
    • 265 *.java files (19,636 LOC)
    • 291 *.html files (3,668 LOC)
    • 47 *.xml files (3,551 LOC)
    • 9 *.sbt files (1,140 LOC)
    • 5 *.flex files (1,015 LOC)
    • 10 *.kt files (168 LOC)
    • 2 *.sc files (75 LOC)
  • " *.scala" is biggest, containing 89.95% of LOC.
  • " *.sc" is smallest, containing 0.03% of LOC.


*.scala261894 LOC (89%) 3,771 files
*.java19636 LOC (6%) 265 files
*.html3668 LOC (1%) 291 files
*.xml3551 LOC (1%) 47 files
*.sbt1140 LOC (<1%) 9 files
*.flex1015 LOC (<1%) 5 files
*.kt168 LOC (<1%) 10 files
*.sc75 LOC (<1%) 2 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 ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
  • 2448 files match defined criteria (298,715 LOC, 102.6% vs. main code):
    • 2,396 *.scala files (296,932 LOC)
    • 38 *.java files (1,699 LOC)
    • 14 *.xml files (84 LOC)
  • " *.scala" is biggest, containing 99.4% of LOC.
  • " *.xml" is smallest, containing 0.03% of LOC.


*.scala296932 LOC (99%) 2,396 files
*.java1699 LOC (<1%) 38 files
*.xml84 LOC (<1%) 14 files
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 ".*[/][/] This is a generated file[.] Not intended for manual editing[.].*".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*/src/gen/.*".
    • files with paths like ".*/generated/.*".
  • 130 files match defined criteria (19,406 LOC, 6.7% vs. main code):
    • 100 *.scala files (10,780 LOC)
    • 24 *.java files (7,779 LOC)
    • 6 *.kt files (847 LOC)
  • " *.scala" is biggest, containing 55.55% of LOC.
  • " *.kt" is smallest, containing 4.36% of LOC.


*.scala10780 LOC (55%) 100 files
*.java7779 LOC (40%) 24 files
*.kt847 LOC (4%) 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 ".*/build[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (61 LOC, 0.0% vs. main code). All matches are in *.xml files.


*.xml61 LOC (100%) 1 file
Other Code
properties
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 ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 260 files match defined criteria (4,690 LOC, 1.6% vs. main code):
    • 32 *.properties files (2,201 LOC)
    • 198 *.svg files (1,252 LOC)
    • 14 *.txt files (845 LOC)
    • 13 *.md files (308 LOC)
    • 3 *.json files (84 LOC)
  • " *.properties" is biggest, containing 46.93% of LOC.
  • " *.json" is smallest, containing 1.79% of LOC.


*.properties2201 LOC (46%) 32 files
*.svg1252 LOC (26%) 198 files
*.txt845 LOC (18%) 14 files
*.md308 LOC (6%) 13 files
*.json84 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 16:38