JetBrains / sample_rails_app
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
ru
rake
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.

main1835 LOC (68%) 113 files
test669 LOC (25%) 26 files
generated0 LOC (0%) 0 files
build and deployment15 LOC (<1%) 3 files
other157 LOC (5%) 6 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
rake
ru
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 113 files match defined criteria (1,835 LOC, 100.0% vs. main code):
    • 59 *.rb files (857 LOC)
    • 34 *.erb files (426 LOC)
    • 8 *.scss files (264 LOC)
    • 3 *.html files (182 LOC)
    • 6 *.js files (93 LOC)
    • 1 *.rake files (10 LOC)
    • 1 *.ru files (2 LOC)
    • 1 *.css files (1 LOC)
  • " *.rb" is biggest, containing 46.7% of LOC.
  • " *.css" is smallest, containing 0.05% of LOC.


*.rb857 LOC (46%) 59 files
*.erb426 LOC (23%) 34 files
*.scss264 LOC (14%) 8 files
*.html182 LOC (9%) 3 files
*.js93 LOC (5%) 6 files
*.rake10 LOC (<1%) 1 file
*.ru2 LOC (<1%) 1 file
*.css1 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 ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 26 files match defined criteria (669 LOC, 36.5% vs. main code):
    • 25 *.rb files (666 LOC)
    • 1 *.js files (3 LOC)
  • " *.rb" is biggest, containing 99.55% of LOC.
  • " *.js" is smallest, containing 0.45% of LOC.


*.rb666 LOC (99%) 25 files
*.js3 LOC (<1%) 1 file
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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (15 LOC, 0.8% vs. main code). All matches are in *.js files.


*.js15 LOC (100%) 3 files
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 ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
  • 6 files match defined criteria (157 LOC, 8.6% vs. main code):
    • 3 *.md files (102 LOC)
    • 1 *.svg files (35 LOC)
    • 1 *.json files (19 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 64.97% of LOC.
  • " *.txt" is smallest, containing 0.64% of LOC.


*.md102 LOC (64%) 3 files
*.svg35 LOC (22%) 1 file
*.json19 LOC (12%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2026-01-18 17:08