elastic / elasticsearch-sql-odbc
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
vcxproj
m4
in
filters
pro
adb
csproj
gitattributes
fsx
mak
mk
ads
editorconfig
cmakein
com
resx
props
fsproj
targets
s
pri
el
proto
mms
sas
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.

main209654 LOC (66%) 719 files
test75202 LOC (23%) 457 files
generated9561 LOC (3%) 3 files
build and deployment4124 LOC (1%) 32 files
other15197 LOC (4%) 76 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
vcxproj
adb
in
com
ads
cmakein
filters
fsx
fsproj
sas
mms
pro
proto
props
pri
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 719 files match defined criteria (209,654 LOC, 100.0% vs. main code):
    • 282 *.c files (156,543 LOC)
    • 280 *.h files (23,394 LOC)
    • 31 *.vcxproj files (13,257 LOC)
    • 13 *.pl files (2,910 LOC)
    • 23 *.cs files (2,543 LOC)
    • 25 *.cmake files (2,508 LOC)
    • 6 *.adb files (1,186 LOC)
    • 11 *.in files (1,181 LOC)
    • 4 *.pas files (1,016 LOC)
    • 5 *.inc files (991 LOC)
    • 2 *.com files (882 LOC)
    • 3 *.ads files (715 LOC)
    • 2 *.cmakein files (511 LOC)
    • 2 *.cc files (470 LOC)
    • 13 *.filters files (439 LOC)
    • 4 *.fsx files (361 LOC)
    • 1 *.cpp files (216 LOC)
    • 1 *.yaml files (111 LOC)
    • 1 *.xml files (95 LOC)
    • 1 *.fsproj files (88 LOC)
    • 1 *.sas files (54 LOC)
    • 1 *.toml files (50 LOC)
    • 1 *.mms files (38 LOC)
    • 3 *.pro files (32 LOC)
    • 1 *.proto files (30 LOC)
    • 1 *.props files (19 LOC)
    • 1 *.pri files (14 LOC)
  • " *.c" is biggest, containing 74.67% of LOC.
  • " *.pri" is smallest, containing 0.01% of LOC.


*.c156543 LOC (74%) 282 files
*.h23394 LOC (11%) 280 files
*.vcxproj13257 LOC (6%) 31 files
*.pl2910 LOC (1%) 13 files
*.cs2543 LOC (1%) 23 files
*.cmake2508 LOC (1%) 25 files
*.adb1186 LOC (<1%) 6 files
*.in1181 LOC (<1%) 11 files
*.pas1016 LOC (<1%) 4 files
*.inc991 LOC (<1%) 5 files
*.com882 LOC (<1%) 2 files
*.ads715 LOC (<1%) 3 files
*.cmakein511 LOC (<1%) 2 files
*.cc470 LOC (<1%) 2 files
*.filters439 LOC (<1%) 13 files
*.fsx361 LOC (<1%) 4 files
*.cpp216 LOC (<1%) 1 file
*.yaml111 LOC (<1%) 1 file
*.xml95 LOC (<1%) 1 file
*.fsproj88 LOC (<1%) 1 file
*.sas54 LOC (<1%) 1 file
*.toml50 LOC (<1%) 1 file
*.mms38 LOC (<1%) 1 file
*.pro32 LOC (<1%) 3 files
*.proto30 LOC (<1%) 1 file
*.props19 LOC (<1%) 1 file
*.pri14 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
adb
in
pro
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 ".*_test[.].*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
  • 457 files match defined criteria (75,202 LOC, 35.9% vs. main code):
    • 295 *.c files (35,588 LOC)
    • 38 *.pl files (9,767 LOC)
    • 46 *.py files (8,672 LOC)
    • 29 *.cc files (8,117 LOC)
    • 13 *.pm files (5,323 LOC)
    • 6 *.cpp files (3,016 LOC)
    • 12 *.h files (2,100 LOC)
    • 3 *.sh files (1,119 LOC)
    • 5 *.inc files (848 LOC)
    • 1 *.adb files (340 LOC)
    • 1 *.cs files (217 LOC)
    • 2 *.in files (60 LOC)
    • 6 *.pro files (35 LOC)
  • " *.c" is biggest, containing 47.32% of LOC.
  • " *.pro" is smallest, containing 0.05% of LOC.


*.c35588 LOC (47%) 295 files
*.pl9767 LOC (12%) 38 files
*.py8672 LOC (11%) 46 files
*.cc8117 LOC (10%) 29 files
*.pm5323 LOC (7%) 13 files
*.cpp3016 LOC (4%) 6 files
*.h2100 LOC (2%) 12 files
*.sh1119 LOC (1%) 3 files
*.inc848 LOC (1%) 5 files
*.adb340 LOC (<1%) 1 file
*.cs217 LOC (<1%) 1 file
*.in60 LOC (<1%) 2 files
*.pro35 LOC (<1%) 6 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](cxx|cpp|c|hxx|hpp|h)" AND any line of content like "[ ]*[*][ ]*Generated automatically by[ ]*.*".
  • 3 files match defined criteria (9,561 LOC, 4.6% vs. main code). All matches are in *.h files.


*.h9561 LOC (100%) 3 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
mk
mak
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]mak".
    • files with paths like ".*[.]mk".
  • 32 files match defined criteria (4,124 LOC, 2.0% vs. main code):
    • 9 *.bat files (2,541 LOC)
    • 11 *.sh files (565 LOC)
    • 6 *.csproj files (473 LOC)
    • 2 *.mk files (351 LOC)
    • 4 *.mak files (194 LOC)
  • " *.bat" is biggest, containing 61.61% of LOC.
  • " *.mak" is smallest, containing 4.7% of LOC.


*.bat2541 LOC (61%) 9 files
*.sh565 LOC (13%) 11 files
*.csproj473 LOC (11%) 6 files
*.mk351 LOC (8%) 2 files
*.mak194 LOC (4%) 4 files
Other Code
txt
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 76 files match defined criteria (15,197 LOC, 7.2% vs. main code):
    • 41 *.txt files (5,945 LOC)
    • 2 *.json files (3,402 LOC)
    • 10 *.c files (2,920 LOC)
    • 17 *.md files (2,325 LOC)
    • 1 *.html files (543 LOC)
    • 1 *.rst files (31 LOC)
    • 2 *.h files (26 LOC)
    • 2 *.pro files (5 LOC)
  • " *.txt" is biggest, containing 39.12% of LOC.
  • " *.pro" is smallest, containing 0.03% of LOC.


*.txt5945 LOC (39%) 41 files
*.json3402 LOC (22%) 2 files
*.c2920 LOC (19%) 10 files
*.md2325 LOC (15%) 17 files
*.html543 LOC (3%) 1 file
*.rst31 LOC (<1%) 1 file
*.h26 LOC (<1%) 2 files
*.pro5 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:43