elastic / integrations
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
hbs
txt
s
properties
mod
hcl
tpl
policy
ini
cmd
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.

main145860 LOC (8%) 1,491 files
test2052 LOC (<1%) 12 files
generated0 LOC (0%) 0 files
build and deployment1007 LOC (<1%) 37 files
other1673697 LOC (91%) 4,382 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hbs
s
tpl
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1491 files match defined criteria (145,860 LOC, 100.0% vs. main code):
    • 1,353 *.hbs files (137,798 LOC)
    • 43 *.go files (4,809 LOC)
    • 50 *.tf files (1,813 LOC)
    • 12 *.yaml files (569 LOC)
    • 10 *.xml files (273 LOC)
    • 2 *.jsp files (267 LOC)
    • 4 *.py files (175 LOC)
    • 11 *.s files (91 LOC)
    • 1 *.tpl files (36 LOC)
    • 2 *.toml files (13 LOC)
    • 1 *.policy files (13 LOC)
    • 2 *.sql files (3 LOC)
  • " *.hbs" is biggest, containing 94.47% of LOC.
  • " *.sql" is smallest, containing 0% of LOC.


*.hbs137798 LOC (94%) 1,353 files
*.go4809 LOC (3%) 43 files
*.tf1813 LOC (1%) 50 files
*.yaml569 LOC (<1%) 12 files
*.xml273 LOC (<1%) 10 files
*.jsp267 LOC (<1%) 2 files
*.py175 LOC (<1%) 4 files
*.s91 LOC (<1%) 11 files
*.tpl36 LOC (<1%) 1 file
*.toml13 LOC (<1%) 2 files
*.policy13 LOC (<1%) 1 file
*.sql3 LOC (<1%) 2 files
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 ".*[-]test[-].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_test[.].*".
  • 12 files match defined criteria (2,052 LOC, 1.4% vs. main code). All matches are in *.go files.


*.go2052 LOC (100%) 12 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 37 files match defined criteria (1,007 LOC, 0.7% vs. main code):
    • 36 *.sh files (945 LOC)
    • 1 *.xml files (62 LOC)
  • " *.sh" is biggest, containing 93.84% of LOC.
  • " *.xml" is smallest, containing 6.16% of LOC.


*.sh945 LOC (93%) 36 files
*.xml62 LOC (6%) 1 file
Other Code
txt
properties
mod
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
  • 4382 files match defined criteria (1,673,697 LOC, 1147.5% vs. main code):
    • 4,127 *.json files (1,646,885 LOC)
    • 197 *.svg files (22,206 LOC)
    • 32 *.txt files (3,625 LOC)
    • 11 *.properties files (424 LOC)
    • 4 *.mod files (241 LOC)
    • 6 *.md files (211 LOC)
    • 4 *.java files (101 LOC)
    • 1 *.ini files (4 LOC)
  • " *.json" is biggest, containing 98.4% of LOC.
  • " *.ini" is smallest, containing 0% of LOC.


*.json1646885 LOC (98%) 4,127 files
*.svg22206 LOC (1%) 197 files
*.txt3625 LOC (<1%) 32 files
*.properties424 LOC (<1%) 11 files
*.mod241 LOC (<1%) 4 files
*.md211 LOC (<1%) 6 files
*.java101 LOC (<1%) 4 files
*.ini4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:55