elastic / logstash-filter-elastic_integration
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
properties
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.

main5614 LOC (57%) 57 files
test2902 LOC (29%) 30 files
generated0 LOC (0%) 0 files
build and deployment546 LOC (5%) 3 files
other763 LOC (7%) 38 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 ".*".
  • 57 files match defined criteria (5,614 LOC, 100.0% vs. main code):
    • 49 *.java files (3,113 LOC)
    • 6 *.rb files (2,312 LOC)
    • 1 *.yaml files (155 LOC)
    • 1 *.gemspec files (34 LOC)
  • " *.java" is biggest, containing 55.45% of LOC.
  • " *.gemspec" is smallest, containing 0.61% of LOC.


*.java3113 LOC (55%) 49 files
*.rb2312 LOC (41%) 6 files
*.yaml155 LOC (2%) 1 file
*.gemspec34 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 ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 30 files match defined criteria (2,902 LOC, 51.7% vs. main code):
    • 29 *.java files (2,865 LOC)
    • 1 *.sh files (37 LOC)
  • " *.java" is biggest, containing 98.73% of LOC.
  • " *.sh" is smallest, containing 1.27% of LOC.


*.java2865 LOC (98%) 29 files
*.sh37 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".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]gradle".
  • 3 files match defined criteria (546 LOC, 9.7% vs. main code):
    • 2 *.gradle files (475 LOC)
    • 1 *.bat files (71 LOC)
  • " *.gradle" is biggest, containing 87% of LOC.
  • " *.bat" is smallest, containing 13% of LOC.


*.gradle475 LOC (86%) 2 files
*.bat71 LOC (13%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
  • 38 files match defined criteria (763 LOC, 13.6% vs. main code):
    • 32 *.json files (530 LOC)
    • 3 *.md files (220 LOC)
    • 2 *.properties files (9 LOC)
    • 1 *.txt files (4 LOC)
  • " *.json" is biggest, containing 69.46% of LOC.
  • " *.txt" is smallest, containing 0.52% of LOC.


*.json530 LOC (69%) 32 files
*.md220 LOC (28%) 3 files
*.properties9 LOC (1%) 2 files
*.txt4 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:01