elastic / connectors
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
com
ini
in
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.

main28548 LOC (34%) 85 files
test44424 LOC (53%) 99 files
generated0 LOC (0%) 0 files
build and deployment349 LOC (<1%) 12 files
other10285 LOC (12%) 45 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 85 files match defined criteria (28,548 LOC, 100.0% vs. main code):
    • 83 *.py files (28,338 LOC)
    • 1 *.yaml files (205 LOC)
    • 1 *.in files (5 LOC)
  • " *.py" is biggest, containing 99.26% of LOC.
  • " *.in" is smallest, containing 0.02% of LOC.


*.py28338 LOC (99%) 83 files
*.yaml205 LOC (<1%) 1 file
*.in5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
com
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
  • 99 files match defined criteria (44,424 LOC, 155.6% vs. main code):
    • 97 *.py files (44,245 LOC)
    • 1 *.sh files (167 LOC)
    • 1 *.com files (12 LOC)
  • " *.py" is biggest, containing 99.6% of LOC.
  • " *.com" is smallest, containing 0.03% of LOC.


*.py44245 LOC (99%) 97 files
*.sh167 LOC (<1%) 1 file
*.com12 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 12 files match defined criteria (349 LOC, 1.2% vs. main code). All matches are in *.sh files.


*.sh349 LOC (100%) 12 files
Other Code
txt
ini
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 ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
  • 45 files match defined criteria (10,285 LOC, 36.0% vs. main code):
    • 10 *.txt files (7,104 LOC)
    • 28 *.json files (2,851 LOC)
    • 6 *.md files (310 LOC)
    • 1 *.ini files (20 LOC)
  • " *.txt" is biggest, containing 69.07% of LOC.
  • " *.ini" is smallest, containing 0.19% of LOC.


*.txt7104 LOC (69%) 10 files
*.json2851 LOC (27%) 28 files
*.md310 LOC (3%) 6 files
*.ini20 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:59