elastic / official-images
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
jl
hx
hy
gitattributes
hs
cfg
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.

main0 LOC (0%) 0 files
test4644 LOC (81%) 195 files
generated0 LOC (0%) 0 files
build and deployment792 LOC (13%) 8 files
other276 LOC (4%) 33 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
hy
cfg
hx
jl
hs
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 195 files match defined criteria (4,644 LOC, ∞% vs. main code):
    • 154 *.sh files (4,120 LOC)
    • 2 *.rb files (170 LOC)
    • 2 *.pl files (87 LOC)
    • 7 *.py files (73 LOC)
    • 3 *.java files (49 LOC)
    • 4 *.php files (33 LOC)
    • 2 *.hy files (26 LOC)
    • 1 *.cfg files (13 LOC)
    • 2 *.hx files (13 LOC)
    • 2 *.jsp files (9 LOC)
    • 2 *.sql files (8 LOC)
    • 2 *.jl files (6 LOC)
    • 1 *.toml files (6 LOC)
    • 1 *.cpp files (5 LOC)
    • 1 *.c files (5 LOC)
    • 1 *.go files (5 LOC)
    • 1 *.erl files (4 LOC)
    • 1 *.rs files (3 LOC)
    • 1 *.dart files (3 LOC)
    • 1 *.exs files (2 LOC)
    • 1 *.js files (1 LOC)
    • 1 *.hs files (1 LOC)
    • 1 *.cmd files (1 LOC)
    • 1 *.swift files (1 LOC)
  • " *.sh" is biggest, containing 88.72% of LOC.
  • " *.swift" is smallest, containing 0.02% of LOC.


*.sh4120 LOC (88%) 154 files
*.rb170 LOC (3%) 2 files
*.pl87 LOC (1%) 2 files
*.py73 LOC (1%) 7 files
*.java49 LOC (1%) 3 files
*.php33 LOC (<1%) 4 files
*.hy26 LOC (<1%) 2 files
*.cfg13 LOC (<1%) 1 file
*.hx13 LOC (<1%) 2 files
*.jsp9 LOC (<1%) 2 files
*.sql8 LOC (<1%) 2 files
*.jl6 LOC (<1%) 2 files
*.toml6 LOC (<1%) 1 file
*.cpp5 LOC (<1%) 1 file
*.c5 LOC (<1%) 1 file
*.go5 LOC (<1%) 1 file
*.erl4 LOC (<1%) 1 file
*.rs3 LOC (<1%) 1 file
*.dart3 LOC (<1%) 1 file
*.exs2 LOC (<1%) 1 file
*.js1 LOC (<1%) 1 file
*.hs1 LOC (<1%) 1 file
*.cmd1 LOC (<1%) 1 file
*.swift1 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 ".*/[.]gitattributes".
  • 8 files match defined criteria (792 LOC, ∞% vs. main code). All matches are in *.sh files.


*.sh792 LOC (100%) 8 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 33 files match defined criteria (276 LOC, ∞% vs. main code):
    • 4 *.md files (188 LOC)
    • 28 *.txt files (83 LOC)
    • 1 *.json files (5 LOC)
  • " *.md" is biggest, containing 68.12% of LOC.
  • " *.json" is smallest, containing 1.81% of LOC.


*.md188 LOC (68%) 4 files
*.txt83 LOC (30%) 28 files
*.json5 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:05