JetBrains / code-analytics-examples
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
csproj
clang-tidy
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.

main1512 LOC (94%) 43 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment28 LOC (1%) 3 files
other53 LOC (3%) 3 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 43 files match defined criteria (1,512 LOC, 100.0% vs. main code):
    • 28 *.cpp files (1,382 LOC)
    • 2 *.php files (46 LOC)
    • 2 *.cs files (17 LOC)
    • 1 *.py files (17 LOC)
    • 1 *.java files (12 LOC)
    • 1 *.rs files (9 LOC)
    • 1 *.go files (8 LOC)
    • 1 *.toml files (7 LOC)
    • 1 *.js files (5 LOC)
    • 4 *.yaml files (5 LOC)
    • 1 *.rb files (4 LOC)
  • " *.cpp" is biggest, containing 91.4% of LOC.
  • " *.rb" is smallest, containing 0.26% of LOC.


*.cpp1382 LOC (91%) 28 files
*.php46 LOC (3%) 2 files
*.cs17 LOC (1%) 2 files
*.py17 LOC (1%) 1 file
*.java12 LOC (<1%) 1 file
*.rs9 LOC (<1%) 1 file
*.go8 LOC (<1%) 1 file
*.toml7 LOC (<1%) 1 file
*.js5 LOC (<1%) 1 file
*.yaml5 LOC (<1%) 4 files
*.rb4 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
  • 3 files match defined criteria (28 LOC, 1.9% vs. main code):
    • 2 *.csproj files (23 LOC)
    • 1 *.gradle files (5 LOC)
  • " *.csproj" is biggest, containing 82.14% of LOC.
  • " *.gradle" is smallest, containing 17.86% of LOC.


*.csproj23 LOC (82%) 2 files
*.gradle5 LOC (17%) 1 file
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (53 LOC, 3.5% vs. main code):
    • 2 *.txt files (40 LOC)
    • 1 *.md files (13 LOC)
  • " *.txt" is biggest, containing 75.47% of LOC.
  • " *.md" is smallest, containing 24.53% of LOC.


*.txt40 LOC (75%) 2 files
*.md13 LOC (24%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:12