elastic / rally-tracks
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
ini
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.

main6228 LOC (3%) 79 files
test4251 LOC (2%) 36 files
generated0 LOC (0%) 0 files
build and deployment417 LOC (<1%) 7 files
other185680 LOC (94%) 692 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 ".*".
  • 79 files match defined criteria (6,228 LOC, 100.0% vs. main code):
    • 76 *.py files (6,050 LOC)
    • 1 *.yaml files (88 LOC)
    • 1 *.toml files (56 LOC)
    • 1 *.rb files (34 LOC)
  • " *.py" is biggest, containing 97.14% of LOC.
  • " *.rb" is smallest, containing 0.55% of LOC.


*.py6050 LOC (97%) 76 files
*.yaml88 LOC (1%) 1 file
*.toml56 LOC (<1%) 1 file
*.rb34 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 36 files match defined criteria (4,251 LOC, 68.3% vs. main code). All matches are in *.py files.


*.py4251 LOC (100%) 36 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 7 files match defined criteria (417 LOC, 6.7% vs. main code). All matches are in *.sh files.


*.sh417 LOC (100%) 7 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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 ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
  • 692 files match defined criteria (185,680 LOC, 2981.4% vs. main code):
    • 610 *.json files (181,345 LOC)
    • 51 *.md files (3,018 LOC)
    • 30 *.txt files (1,312 LOC)
    • 1 *.ini files (5 LOC)
  • " *.json" is biggest, containing 97.67% of LOC.
  • " *.ini" is smallest, containing 0% of LOC.


*.json181345 LOC (97%) 610 files
*.md3018 LOC (1%) 51 files
*.txt1312 LOC (<1%) 30 files
*.ini5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:41