guardian / pluto-core
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
mod
npmrc
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.

main37994 LOC (76%) 442 files
test7899 LOC (15%) 122 files
generated0 LOC (0%) 0 files
build and deployment238 LOC (<1%) 11 files
other3326 LOC (6%) 19 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 ".*".
  • 442 files match defined criteria (37,994 LOC, 100.0% vs. main code):
    • 202 *.scala files (13,868 LOC)
    • 69 *.tsx files (11,056 LOC)
    • 74 *.jsx files (5,329 LOC)
    • 21 *.ts files (1,877 LOC)
    • 13 *.scss files (1,745 LOC)
    • 13 *.less files (1,745 LOC)
    • 4 *.css files (700 LOC)
    • 33 *.sql files (654 LOC)
    • 4 *.py files (575 LOC)
    • 2 *.go files (163 LOC)
    • 2 *.sbt files (114 LOC)
    • 2 *.xml files (112 LOC)
    • 2 *.html files (38 LOC)
    • 1 *.js files (18 LOC)
  • " *.scala" is biggest, containing 36.5% of LOC.
  • " *.js" is smallest, containing 0.05% of LOC.


*.scala13868 LOC (36%) 202 files
*.tsx11056 LOC (29%) 69 files
*.jsx5329 LOC (14%) 74 files
*.ts1877 LOC (4%) 21 files
*.scss1745 LOC (4%) 13 files
*.less1745 LOC (4%) 13 files
*.css700 LOC (1%) 4 files
*.sql654 LOC (1%) 33 files
*.py575 LOC (1%) 4 files
*.go163 LOC (<1%) 2 files
*.sbt114 LOC (<1%) 2 files
*.xml112 LOC (<1%) 2 files
*.html38 LOC (<1%) 2 files
*.js18 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/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*__tests__.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
  • 122 files match defined criteria (7,899 LOC, 20.8% vs. main code):
    • 57 *.scala files (4,303 LOC)
    • 19 *.jsx files (2,089 LOC)
    • 34 *.sql files (735 LOC)
    • 5 *.ts files (511 LOC)
    • 5 *.tsx files (199 LOC)
    • 1 *.py files (51 LOC)
    • 1 *.js files (11 LOC)
  • " *.scala" is biggest, containing 54.48% of LOC.
  • " *.js" is smallest, containing 0.14% of LOC.


*.scala4303 LOC (54%) 57 files
*.jsx2089 LOC (26%) 19 files
*.sql735 LOC (9%) 34 files
*.ts511 LOC (6%) 5 files
*.tsx199 LOC (2%) 5 files
*.py51 LOC (<1%) 1 file
*.js11 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 11 files match defined criteria (238 LOC, 0.6% vs. main code):
    • 10 *.sh files (168 LOC)
    • 1 *.js files (70 LOC)
  • " *.sh" is biggest, containing 70.59% of LOC.
  • " *.js" is smallest, containing 29.41% of LOC.


*.sh168 LOC (70%) 10 files
*.js70 LOC (29%) 1 file
Other Code
properties
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
  • 19 files match defined criteria (3,326 LOC, 8.8% vs. main code):
    • 2 *.svg files (2,672 LOC)
    • 5 *.md files (322 LOC)
    • 5 *.json files (317 LOC)
    • 4 *.properties files (7 LOC)
    • 2 *.txt files (6 LOC)
    • 1 *.mod files (2 LOC)
  • " *.svg" is biggest, containing 80.34% of LOC.
  • " *.mod" is smallest, containing 0.06% of LOC.


*.svg2672 LOC (80%) 2 files
*.md322 LOC (9%) 5 files
*.json317 LOC (9%) 5 files
*.properties7 LOC (<1%) 4 files
*.txt6 LOC (<1%) 2 files
*.mod2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:56